/**
 * Main Stylesheet
 * THE BOYS #2003/2005 Friends Community Website
 */

/* ==================== Variables ==================== */
:root {
    --primary-color: #030596;
    --secondary-color: #00D4FF;
    --body-bg: #FFFFFF;
    --light-bg: #F5F7FF;
    --text-color: #202124;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --footer-bg: #030596;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
}

/* ==================== Global Styles ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--body-bg);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
}

/* ==================== Ticker ==================== */
.ticker-wrap {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 0;
    overflow: hidden;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ticker {
    display: inline-block;
    white-space: nowrap;
    animation: ticker 30s linear infinite;
    width: 100%;
}

.ticker:hover {
    animation-play-state: paused;
}

@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

.ticker__item {
    font-size: 15px;
    font-weight: 600;
    padding: 0 30px;
    display: inline-block;
}

/* ==================== Top Bar ==================== */
.top-bar {
    background-color: #030596;
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
}

.top-bar-contact span {
    margin-right: 20px;
    color: white;
}

.top-bar-contact i {
    margin-right: 5px;
    color: #00D4FF;
}

.top-bar-links a {
    margin-left: 15px;
    color: white;
    font-size: 13px;
}

.top-bar-links a:hover {
    color: #00D4FF;
}

/* ==================== User Dropdown ==================== */
.user-dropdown {
    position: relative;
    display: inline-block;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.user-profile:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #00D4FF;
}

.user-avatar-placeholder {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #00D4FF;
    color: #030596;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    border: 2px solid #00D4FF;
}

.user-name {
    font-size: 13px;
    font-weight: 500;
    color: white;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-profile i.bi-chevron-down {
    font-size: 12px;
    color: #00D4FF;
}

.user-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    min-width: 180px;
    padding: 10px 0;
    display: none;
    z-index: 1000;
    margin-top: 5px;
}

.user-menu.show {
    display: block;
    animation: fadeInDown 0.3s ease;
}

.user-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: var(--text-color);
    font-size: 14px;
    transition: all 0.3s ease;
}

.user-menu a:hover {
    background: #030596;
    color: white;
}

.user-menu a i {
    font-size: 16px;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== Main Header ==================== */
.main-header {
    background-color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo h1 {
    font-size: 24px;
    color: var(--primary-color);
    margin: 0;
    font-weight: 700;
}

.logo h1 span {
    color: var(--secondary-color);
    font-size: 18px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    max-width: 50px;
    max-height: 50px;
    object-fit: contain;
}

.logo-text h1 {
    font-size: 18px;
    color: var(--primary-color);
    margin: 0;
    font-weight: 700;
    line-height: 1.2;
}

.search-box {
    position: relative;
}

.search-box .input-group {
    border-radius: 25px;
    overflow: hidden;
}

.search-box .form-control {
    border: 2px solid var(--border-color);
    border-radius: 25px 0 0 25px;
    padding: 12px 20px;
    font-size: 14px;
}

.search-box .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: none;
}

.search-box .btn-primary {
    background-color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 0 25px 25px 0;
    padding: 0 20px;
}

.search-box .btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0 0 10px 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

.search-suggestions .suggestion-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
}

.search-suggestions .suggestion-item:hover {
    background-color: var(--light-bg);
}

.search-suggestions .suggestion-item:last-child {
    border-bottom: none;
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    color: white;
}

/* ==================== Navigation ==================== */
.navbar {
    background-color: var(--primary-color);
    padding: 0;
}

.navbar-dark .navbar-nav .nav-link {
    color: white;
    padding: 15px 20px;
    font-weight: 500;
    font-size: 15px;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    background-color: var(--secondary-color);
    color: white;
}

.navbar-toggler {
    border: none;
    color: white;
}

/* ==================== Hero Slider ==================== */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-slide {
    position: relative;
    height: 100%;
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.2));
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 14px;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-content .btn {
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 25px;
    font-weight: 500;
}

.swiper-button-next,
.swiper-button-prev {
    color: white;
}

.swiper-pagination-bullet-active {
    background: var(--secondary-color);
}

/* ==================== Section Styles ==================== */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.section-light {
    background-color: var(--light-bg);
}

/* ==================== Welcome Section ==================== */
.welcome-section {
    text-align: center;
}

.welcome-section h2 {
    font-size: 42px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.welcome-section p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 30px;
}

/* ==================== Friend Cards ==================== */
.friend-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    height: 100%;
}

.friend-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.friend-card-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.friend-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.friend-card-content {
    padding: 20px;
}

.friend-card-content h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.friend-card-content .nickname {
    color: var(--secondary-color);
    font-size: 14px;
    margin-bottom: 10px;
}

.friend-card-content .profession {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 10px;
}

.friend-card-content .location {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 15px;
}

.friend-card-content .location i {
    margin-right: 5px;
}

.friend-card-content .biography {
    color: var(--text-color);
    font-size: 14px;
    margin-bottom: 15px;
    max-height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.friend-card-content .btn {
    width: 100%;
    border-radius: 25px;
}

/* ==================== Picnic Section ==================== */
.picnic-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.picnic-card-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.picnic-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.picnic-card-content {
    padding: 25px;
}

.picnic-card-content h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.picnic-card-content .date {
    color: var(--secondary-color);
    font-size: 16px;
    margin-bottom: 10px;
}

.picnic-card-content .location {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 15px;
}

.picnic-card-content .description {
    color: var(--text-color);
    font-size: 14px;
    margin-bottom: 20px;
}

/* ==================== Countdown Timer ==================== */
.countdown-timer {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 40px 0;
    border-radius: 15px;
    margin-bottom: 30px;
}

.countdown-timer h3 {
    color: white;
    text-align: center;
    margin-bottom: 30px;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.countdown-item {
    text-align: center;
    color: white;
}

.countdown-item .number {
    font-size: 48px;
    font-weight: 700;
    display: block;
}

.countdown-item .label {
    font-size: 14px;
    text-transform: uppercase;
}

/* ==================== Service Cards ==================== */
.service-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    height: 100%;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.service-card .icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
}

/* ==================== Gallery ==================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(3, 5, 150, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.gallery-item .overlay i {
    color: white;
    font-size: 32px;
}

/* ==================== Statistics ==================== */
.statistics-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 60px 0;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-item .number {
    font-size: 48px;
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}

.stat-item .label {
    font-size: 16px;
    text-transform: uppercase;
}

/* ==================== Contact Form ==================== */
.contact-form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.contact-form .form-control {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 15px;
    margin-bottom: 20px;
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: none;
}

.contact-form .btn {
    width: 100%;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 500;
}

/* ==================== Auth Forms (Login/Register) ==================== */
.auth-section {
    background-color: #f5f7ff;
}

.auth-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: none;
}

.auth-card .card-body {
    padding: 40px;
}

.auth-card .form-control {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.auth-card .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(3, 5, 150, 0.1);
}

.auth-card .form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.auth-card .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.auth-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(3, 5, 150, 0.3);
}

.auth-card .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.auth-card a {
    color: var(--primary-color);
    font-weight: 500;
}

.auth-card a:hover {
    color: var(--secondary-color);
}

/* ==================== Footer ==================== */
.footer {
    background-color: var(--footer-bg);
    color: white;
    padding: 60px 0 30px;
}

.footer-logo h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.footer-logo h3 span {
    color: var(--secondary-color);
    font-size: 18px;
}

.footer-logo-img {
    max-width: 100px;
    max-height: 60px;
    object-fit: contain;
    margin-bottom: 15px;
}

.footer-about {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--secondary-color);
    color: white;
}

.footer-widget h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-links i {
    margin-right: 5px;
    font-size: 12px;
}

.footer-contact li {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
    font-size: 14px;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.bottom-footer {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    color: #030596;
    font-size: 14px;
}

.copyright,
.developer-credit {
    margin: 0;
}

.developer-credit {
    font-weight: 700;
    color: #ff0000;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* ==================== Back to Top ==================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 100px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

/* ==================== Header DateTime ==================== */
.header-datetime {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: white;
}

.header-datetime i {
    color: #00D4FF;
    font-size: 18px;
}

.header-datetime span {
    font-weight: 700;
    color: var(--primary-color);
}

/* ==================== WhatsApp Floating Button ==================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 998;
}

.whatsapp-float:hover {
    background: #128C7E;
    transform: scale(1.1);
    color: white;
}

/* ==================== Picnic Photo Gallery ==================== */
.picnic-photos-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 0;
}

.picnic-photos-gallery .picnic-card {
    width: 100%;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.picnic-photos-gallery .picnic-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.picnic-photos-gallery .picnic-card-image {
    height: 450px;
    border-radius: 10px;
    overflow: hidden;
}

.picnic-photos-gallery .picnic-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==================== Voting Floating Button ==================== */
.voting-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #030596, #00D4FF);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 5px 15px rgba(3, 5, 150, 0.4);
    transition: all 0.3s ease;
    z-index: 998;
}

.voting-float:hover {
    background: linear-gradient(135deg, #00D4FF, #030596);
    transform: scale(1.1);
    color: white;
}

/* ==================== Responsive ==================== */
@media (max-width: 991px) {
    .hero-content h1 {
        font-size: 20px;
    }

    .hero-content p {
        font-size: 12px;
    }
    
    .top-bar {
        display: none;
    }
    
    .search-box {
        margin: 15px 0;
    }
    
    .main-header .col-lg-3 {
        text-align: center;
        margin-bottom: 15px;
    }
    
    .main-header .col-lg-3:last-child {
        text-align: center;
    }
}

@media (max-width: 767px) {
    .hero-slider {
        height: 400px;
    }

    .hero-content h1 {
        font-size: 18px;
    }

    .hero-content p {
        font-size: 11px;
    }

    .section {
        padding: 50px 0;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .countdown {
        gap: 15px;
    }

    .countdown-item .number {
        font-size: 32px;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .logo-container {
        gap: 10px;
    }

    .logo-img {
        max-width: 40px;
        max-height: 40px;
    }

    .logo-text h1 {
        font-size: 14px;
    }

    .header-datetime {
        font-size: 12px;
        gap: 5px;
    }

    .header-datetime i {
        font-size: 14px;
    }

    .header-datetime span {
        font-size: 12px;
    }

    .user-profile {
        padding: 3px 8px;
    }

    .user-avatar,
    .user-avatar-placeholder {
        width: 30px;
        height: 30px;
    }

    .user-name {
        max-width: 80px;
        font-size: 12px;
    }

    .user-menu {
        min-width: 150px;
    }
}

@media (max-width: 575px) {
    .friend-card-image {
        height: 200px;
    }

    .picnic-card-image {
        height: 200px;
    }

    .service-card {
        padding: 20px;
    }

    .logo-container {
        gap: 8px;
    }

    .logo-img {
        max-width: 35px;
        max-height: 35px;
    }

    .logo-text h1 {
        font-size: 12px;
    }

    .header-datetime {
        font-size: 12px;
        gap: 5px;
    }

    .header-datetime i {
        font-size: 14px;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 25px;
    }

    .voting-float {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
        font-size: 25px;
    }

    .back-to-top {
        bottom: 20px;
        right: 80px;
    }

    .header-datetime {
        font-size: 11px;
        gap: 3px;
    }

    .header-datetime i {
        font-size: 12px;
    }

    .header-datetime span {
        font-size: 11px;
    }

    .auth-card .card-body {
        padding: 25px;
    }
}
