﻿/* Partners Page Sections - Frontend Styles */

/* Edit Section Button - Blue Style (Matches Partners Page) */
.edit-section-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    background: #D97706 !important;
    color: white !important;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(255, 140, 66, 0.4);
    border: 3px solid white !important;
    font-size: 18px;
    font-weight: bold;
    opacity: 0.9;
}

.edit-section-btn:hover {
    opacity: 1;
    transform: scale(1.1) rotate(15deg) !important;
    box-shadow: 0 6px 20px rgba(255, 140, 66, 0.6) !important;
    background: #B45309 !important;
    color: white !important;
    border-color: white !important;
}

.edit-section-btn:active {
    transform: scale(0.95);
}

/* Light variant for dark backgrounds */
.edit-section-btn-light,
.edit-btn-light {
    background: #fff !important;
    color: #D97706 !important;
    border: 3px solid #D97706 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.edit-section-btn-light:hover,
.edit-btn-light:hover {
    background: #D97706 !important;
    color: #fff !important;
    border-color: #fff !important;
}

/* Section containers for edit button positioning */
.section-editable {
    position: relative;
}

.partners-intro {
    padding: 60px 20px;
    background: white;
    text-align: center;
}

.partners-intro h2 {
    color: #1a1a1a;
    margin-bottom: 20px;
}

.intro-text {
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

.pillars-section {
    padding: 80px 20px;
    background: #f5f5f5;
}

.pillar-card {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Pillar cards with background images */
.pillar-card.has-bg-image {
    border-color: transparent;
}

.pillar-card.has-bg-image::after {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: inherit;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
    z-index: 0;
}

.pillar-card.has-bg-image:hover::after {
    transform: scale(1.1);
}

.pillar-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1;
    transition: background 0.3s ease;
}

.pillar-card.has-bg-image:hover .pillar-card-overlay {
    background: rgba(0, 0, 0, 0.55);
}

.pillar-card-content {
    position: relative;
    z-index: 2;
}

.pillar-card.has-bg-image h3,
.pillar-card.has-bg-image h4,
.pillar-card.has-bg-image p {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.pillar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.pillar-card.has-bg-image:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.pillar-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--cf-primary);
    margin-bottom: 15px;
}

.pillar-icon {
    position: relative;
    z-index: 2;
    margin-bottom: 20px;
}

.pillar-card.has-bg-image .pillar-icon svg,
.pillar-card.has-bg-image .pillar-icon i {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.pillar-card h3 {
    color: #1a1a1a;
    margin-bottom: 15px;
}

.pillar-card p {
    color: #666;
    line-height: 1.8;
}

.business-hub-section {
    padding: 80px 20px;
    background: white;
}

.hub-content {
    max-width: 1000px;
    margin: 0 auto;
}

.hub-content h2 {
    color: #1a1a1a;
    margin-bottom: 20px;
}

.hub-content > p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

.hub-features {
    margin: 40px -15px;
}

.feature-box {
    background: #f5f5f5;
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid var(--cf-primary);
}

.feature-box h4 {
    color: #1a1a1a;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.feature-box ul {
    list-style: none;
    padding: 0;
}

.feature-box li {
    color: #666;
    padding: 8px 0;
    position: relative;
    padding-left: 25px;
}

.feature-box li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--cf-primary);
    font-weight: bold;
}

.sustainability-note {
    background: #f0f8ff;
    padding: 20px;
    border-radius: 8px;
    color: #1a1a1a;
    margin-top: 30px;
}

.sponsor-benefits-section {
    padding: 80px 20px;
    background: #f5f5f5;
}

.sponsor-benefits-section h2 {
    text-align: center;
    color: #1a1a1a;
    margin-bottom: 50px;
}

.benefit-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.benefit-card h3 {
    color: var(--cf-primary);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--cf-primary);
    padding-bottom: 15px;
}

.benefit-card ul {
    list-style: none;
    padding: 0;
}

.benefit-card li {
    color: #666;
    padding: 10px 0;
    position: relative;
    padding-left: 25px;
}

.benefit-card li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--cf-primary);
    font-weight: bold;
}

.partners-gallery-section {
    padding: 80px 20px;
    background: white;
}

.partners-gallery-section h2 {
    text-align: center;
    color: #1a1a1a;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.gallery-intro {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 50px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.gallery-grid .gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 350px;
}

.gallery-grid .gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.gallery-grid .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-grid .gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 30px 20px 20px;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
}

.partners-stats-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
}

.partners-stats-section h2 {
    text-align: center;
    color: white;
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border-left: 4px solid var(--cf-primary);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--cf-primary);
    margin-bottom: 15px;
    font-family: 'Courier New', monospace;
}

.stat-label {
    font-size: 1.3rem;
    color: white;
    margin-bottom: 10px;
}

.stat-description {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .partners-stats-section h2 {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .pillar-number {
        font-size: 2.5rem;
    }

    .partners-gallery-section h2 {
        font-size: 2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }

    .gallery-grid .gallery-item {
        height: 250px;
    }
}

/* ========================================
   SPORT CARDS - Partners About Section
   ======================================== */

.partner-sports-section {
    padding: 80px 0;
    position: relative;
}

.partner-sports-section .section-header {
    margin-bottom: 50px;
}

.partner-sports-section .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.partner-sports-section .section-intro {
    font-size: 1.15rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Sports Cards Grid */
.sports-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* Cards per row control */
.sports-cards-grid[data-cols="2"] {
    grid-template-columns: repeat(2, 1fr);
}

.sports-cards-grid[data-cols="3"] {
    grid-template-columns: repeat(3, 1fr);
}

.sports-cards-grid[data-cols="4"] {
    grid-template-columns: repeat(4, 1fr);
}

/* Single card centered */
.sports-cards-grid[data-count="1"] {
    grid-template-columns: 1fr;
    max-width: 350px;
    margin: 0 auto;
}

/* Individual Sport Card */
.sport-card {
    perspective: 1000px;
}

.sport-card-inner {
    position: relative;
    height: 320px;
    border-radius: 20px;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

.sport-card-inner:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

/* Card Background */
.sport-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.sport-card-inner:hover .sport-card-bg {
    transform: scale(1.1);
}

/* Card Overlay */
.sport-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
    transition: background 0.4s ease;
}

.sport-card-inner:hover .sport-card-overlay {
    background: linear-gradient(
        180deg,
        rgba(45, 95, 63, 0.1) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.85) 100%
    );
}

/* Card Content */
.sport-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 25px;
    z-index: 2;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.sport-card-inner:hover .sport-card-content {
    transform: translateY(0);
}

/* Sport Icon/Emoji */
.sport-card-icon {
    margin-bottom: 15px;
    opacity: 0.9;
    transform: scale(1) translateX(0);
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.sport-card-inner:hover .sport-card-icon {
    transform: scale(1.2) translateX(8px);
    opacity: 1;
}

.sport-emoji {
    font-size: 3rem;
    display: inline-block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Font Awesome Sport Icons */
.sport-card-icon .sport-fa-icon {
    font-size: 3rem;
    color: #fff;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
    transition: transform 0.4s ease, color 0.4s ease;
}

.sport-card-inner:hover .sport-fa-icon {
    color: var(--cf-primary);
    text-shadow: 0 0 20px rgba(255, 140, 66, 0.5);
}

/* Card Title */
.sport-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Card Description */
.sport-card-desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    margin: 0;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.4s ease, max-height 0.4s ease;
}

.sport-card-inner:hover .sport-card-desc {
    opacity: 1;
    max-height: 100px;
}

/* Shine Effect */
.sport-card-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transform: skewX(-25deg);
    transition: left 0.6s ease;
    z-index: 3;
    pointer-events: none;
}

.sport-card-inner:hover .sport-card-shine {
    left: 150%;
}

/* Responsive Sport Cards */
@media (max-width: 1200px) {
    .sports-cards-grid[data-cols="4"] {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .sports-cards-grid,
    .sports-cards-grid[data-cols="3"],
    .sports-cards-grid[data-cols="4"] {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sport-card-inner {
        height: 280px;
    }
}

@media (max-width: 576px) {
    .partner-sports-section {
        padding: 60px 0;
    }
    
    .partner-sports-section .section-title {
        font-size: 1.8rem;
    }
    
    .sports-cards-grid,
    .sports-cards-grid[data-cols="2"],
    .sports-cards-grid[data-cols="3"],
    .sports-cards-grid[data-cols="4"] {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .sport-card-inner {
        height: 250px;
    }
    
    .sport-card-content {
        padding: 20px;
    }
    
    .sport-emoji {
        font-size: 2.5rem;
    }
    
    .sport-card-title {
        font-size: 1.3rem;
    }
    
    /* Show description by default on mobile */
    .sport-card-desc {
        opacity: 1;
        max-height: 100px;
    }
}
