/* ===== COMPOSANTS ===== */
/* Styles pour les composants réutilisables */

/* Navigation */
.navbar {
    background-color: rgba(44, 62, 80, 0.95);
    padding: 15px 0;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--panda-white) !important;
    display: flex;
    align-items: center;
}

.navbar-brand i {
    color: var(--panda-white);
    margin-right: 8px;
}

.nav-link {
    color: var(--panda-white) !important;
    font-weight: 500;
    margin: 0 10px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--panda-light-green) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--panda-light-green);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    background: var(--gradient-primary);
    color: white;
    padding: 140px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* Cards */
.ranking-card {
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    padding: 30px;
    margin-bottom: 30px;
    transition: all 0.4s ease;
    border-left: 5px solid var(--panda-green);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.site-card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    padding: 25px;
    margin-bottom: 25px;
    transition: all 0.4s ease;
    height: 100%;
    border-top: 4px solid transparent;
    position: relative;
    min-height: 280px;
    display: flex;
    flex-direction: column;
}

.tip-card {
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    padding: 30px;
    margin-bottom: 30px;
    transition: all 0.4s ease;
    text-align: center;
    height: 100%;
}

.discord-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 50px 30px;
    box-shadow: var(--shadow-heavy);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.4s ease;
}

/* Badges et indicateurs */
.ranking-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--gradient-secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.3rem;
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
}

.site-logo {
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    box-shadow: var(--shadow-light);
    overflow: hidden;
    border: 1px solid #eee;
    font-size: 1.8rem;
    color: var(--panda-green);
}

.site-logo img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.tip-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin: 0 auto 20px;
    box-shadow: 0 8px 20px rgba(39, 174, 96, 0.3);
}

.discord-icon {
    font-size: 4rem;
    color: #7289da;
    margin-bottom: 20px;
}

/* Boutons */
.btn-affiliate {
    background: var(--gradient-secondary);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
}

.btn-discord {
    background: #7289da;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    margin-top: 20px;
    box-shadow: 0 5px 15px rgba(114, 137, 218, 0.4);
}

.filter-btn {
    background: white;
    border: 1px solid #ddd;
    border-radius: 50px;
    padding: 8px 20px;
    margin-right: 10px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background: var(--gradient-secondary);
    color: white;
    border-color: var(--panda-green);
}

/* Search and Filter */
.search-filter-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    margin-bottom: 40px;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 70px 0 20px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,70 Q50,60 100,70 L100,100 L0,100 Z" fill="rgba(255,255,255,0.03)"/></svg>');
    background-size: cover;
}

.footer-title {
    color: var(--panda-light-green);
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 8px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--gradient-secondary);
    border-radius: 1px;
}

.footer-links a {
    color: #ddd;
    text-decoration: none;
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    padding: 5px 0;
    border-radius: 5px;
}

.footer-links a:hover {
    color: var(--panda-light-green);
    padding-left: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.footer-stats {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.stat-item {
    text-align: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--panda-light-green);
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background: var(--panda-light-green);
    transform: translateY(-3px);
    color: white;
}

/* Modals */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: var(--shadow-heavy);
}

.modal-header {
    background: var(--gradient-primary);
    color: white;
    border-radius: 15px 15px 0 0;
    border-bottom: none;
}

.modal-body {
    padding: 30px;
}

/* Progress bar et back to top */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 1001;
}

.progress-bar {
    height: 4px;
    background: var(--gradient-secondary);
    width: 0%;
    transition: width 0.3s ease;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.4);
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* Panda Counter et Easter Egg */
.panda-counter {
    position: fixed;
    top: 100px;
    right: 30px;
    background: white;
    border-radius: 50px;
    padding: 10px 20px;
    box-shadow: var(--shadow-light);
    display: flex;
    align-items: center;
    z-index: 998;
    transition: all 0.3s ease;
}

.panda-easter-egg {
    position: fixed;
    bottom: 100px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--panda-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-light);
    cursor: pointer;
    z-index: 997;
    transition: all 0.3s ease;
}

/* Classes de couleurs pour les cards */
.ranking-card.gold {
    border-left-color: #ffd700;
}

.ranking-card.gold .ranking-badge {
    background: var(--gradient-gold);
    color: var(--panda-black);
}

.ranking-card.silver {
    border-left-color: #c0c0c0;
}

.ranking-card.silver .ranking-badge {
    background: var(--gradient-silver);
    color: var(--panda-black);
}

.ranking-card.bronze {
    border-left-color: #cd7f32;
}

.ranking-card.bronze .ranking-badge {
    background: var(--gradient-bronze);
    color: white;
}

.site-card.green { border-top-color: var(--panda-green); }
.site-card.blue { border-top-color: #3498db; }
.site-card.purple { border-top-color: #9b59b6; }
.site-card.orange { border-top-color: #e67e22; }
.site-card.pink { border-top-color: #e84393; }
.site-card.teal { border-top-color: #00cec9; }
.site-card.gold { border-top-color: #ffd700; }
.site-card.silver { border-top-color: #c0c0c0; }
.site-card.bronze { border-top-color: #cd7f32; }