/* Affiliate Panels Specific Styles */

.panels-hero {
    padding: 140px 2rem 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    text-align: center;
    color: white;
}

.hero-content-centered {
    max-width: 800px;
    margin: 0 auto;
}

.panels-hero .hero-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.panels-hero .hero-title {
    color: white;
    font-size: 3rem;
    margin-bottom: 20px;
}

.panels-hero .hero-description {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.15rem;
}

/* Introduction Section */
.intro-section {
    padding: 80px 2rem;
    background: white;
}

.intro-content h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--text-dark);
}

.intro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.intro-card {
    text-align: center;
    padding: 30px;
    background: var(--bg-light);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.intro-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.intro-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.intro-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.intro-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Panels Section */
.panels-section {
    padding: 80px 2rem;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    min-height: 50vh;
}

.panels-loading {
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.panels-loading p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.panels-error {
    text-align: center;
    padding: 60px 20px;
}

.error-icon {
    font-size: 3rem;
    color: var(--red);
    margin-bottom: 20px;
}

.panels-error p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.retry-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

/* Panels Grid */
.panels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.panel-card {
    background: white;
    border-radius: 15px;
    padding: 35px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.panel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.panel-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.panel-card:hover::before {
    opacity: 1;
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.panel-logo-container {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.panel-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.panel-logo-placeholder {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.panel-title-area {
    flex: 1;
}

.panel-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 5px 0;
}

.panel-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.panel-badge.featured {
    background: rgba(237, 137, 54, 0.1);
    color: var(--orange);
}

.panel-badge.top {
    background: rgba(245, 101, 101, 0.1);
    color: var(--red);
}

.panel-description {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1rem;
    flex: 1;
}

.panel-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
}

.panel-feature-tag {
    padding: 6px 14px;
    background: var(--bg-light);
    color: var(--text-dark);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.panel-feature-tag i {
    color: var(--green);
    font-size: 0.9rem;
}

.panel-footer {
    display: flex;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--bg-light);
}

.panel-btn {
    flex: 1;
    padding: 14px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.panel-btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
}

.panel-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.panel-btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.panel-btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* Featured Panel */
.panel-card.featured {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-color: var(--primary-color);
}

.panel-card.featured::before {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .panels-hero {
        padding: 120px 1.5rem 60px;
    }

    .panels-hero .hero-title {
        font-size: 2.2rem;
    }

    .intro-grid {
        grid-template-columns: 1fr;
    }

    .panels-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .panel-card {
        padding: 25px;
    }

    .panel-header {
        flex-direction: column;
        text-align: center;
    }

    .panel-footer {
        flex-direction: column;
    }

    .panel-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .panels-hero .hero-title {
        font-size: 1.8rem;
    }

    .panels-hero .hero-description {
        font-size: 1rem;
    }

    .intro-card {
        padding: 20px;
    }
}

