/* ========================================
   STRONA DYSCYPLINY - PREMIUM DESIGN
   Senior Frontend Developer Level
======================================== */

:root {
    --primary-navy: #0b2340;
    --primary-yellow: #f2e300;
    --deep-blue: #050f1a;
    --mid-blue: #0d2d52;
    --light-blue: #162d52;
    --card-bg: #0f1f35;
    --text-light: #e2e8f0;
    --text-muted: #94a3b8;
}

/* ========================================
   HERO SECTION - Cinematic
======================================== */

.disciplines-hero {
    position: relative;
    min-height: 10vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, var(--primary-navy) 0%, var(--deep-blue) 100%);
    color: white;
    text-align: center;
    padding: 30px 40px;
    overflow: hidden;
}

/* Multi-layer gradient overlay */
.disciplines-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, rgba(5, 15, 26, 0.75) 0%, rgba(11, 35, 64, 0.70) 50%, rgba(13, 45, 82, 0.65) 100%);
    z-index: 1;
}

/* Animated particles */
.disciplines-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 30% 40%, rgba(242, 227, 0, 0.05) 0%, transparent 30%),
        radial-gradient(circle at 70% 60%, rgba(242, 227, 0, 0.04) 0%, transparent 25%);
    animation: particleFloat 10s ease-in-out infinite;
    z-index: 1;
}

@keyframes particleFloat {
    0%, 100% { 
        opacity: 0.3;
        transform: translateY(0);
    }
    50% { 
        opacity: 0.5;
        transform: translateY(-10px);
    }
}

.disciplines-hero .container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.disciplines-hero h1 {
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 900;
    margin-bottom: 25px;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-yellow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out;
    text-shadow: 0 0 60px rgba(242, 227, 0, 0.3);
    filter: drop-shadow(0 0 30px rgba(242, 227, 0, 0.2));
}

.disciplines-hero .subtitle {
    font-size: clamp(1.15rem, 2.5vw, 1.6rem);
    font-weight: 400;
    color: var(--text-light);
    opacity: 0.95;
    animation: fadeInUp 1s ease-out 0.3s both;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ========================================
   GRID SECTION
======================================== */

.disciplines-grid-section {
    padding: 100px 40px;
    background: var(--primary-navy);
    background-image: url('../img/stadion1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    
}

/* Subtle background pattern */
.disciplines-grid-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(11, 35, 64, 0.85);
    pointer-events: none;
}

.disciplines-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ========================================
   DISCIPLINE CARDS - Glassmorphism
======================================== */

.disc-card {
    background: rgba(15, 31, 53, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(242, 227, 0, 0.1);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(242, 227, 0, 0.15);
    position: relative;
}

/* Gradient line on top */
.disc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-yellow), transparent, var(--primary-yellow));
    transform: scaleX(0);
    transition: transform 0.5s ease;
    z-index: 3;
}

/* Glow effect on hover */

.disc-card:hover::before {
    transform: scaleX(1);
}

.disc-card:hover::after {
    opacity: 1;
}

.disc-card:hover {
    transform: translateY(-6px);
    background: rgba(15, 31, 53, 0.75);
    box-shadow: 
        0 18px 50px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(242, 227, 0, 0.25);
    border-color: rgba(242, 227, 0, 0.3);
}

/* Image Container */
.disc-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-navy) 0%, var(--mid-blue) 100%);
}

.disc-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.4s ease;
    filter: brightness(0.8) saturate(1);
}

.disc-card:hover .disc-image img {
    transform: scale(1.05);
    filter: brightness(0.9) saturate(1.1);
}

/* Icon Overlay */
.disc-overlay {
    position: absolute;
    bottom: -30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-yellow) 0%, #fff176 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(242, 227, 0, 0.35);
    z-index: 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 3px solid rgba(15, 31, 53, 0.9);
}

.disc-overlay i {
    font-size: 28px;
    color: var(--primary-navy);
    transition: all 0.3s ease;
}

.disc-card:hover .disc-overlay {
    transform: scale(1.08);
    box-shadow: 0 8px 22px rgba(242, 227, 0, 0.45);
}

.disc-card:hover .disc-overlay i {
    transform: scale(1.05);
}

/* Card Content */
.disc-content {
    padding: 40px 30px 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.disc-content h3 {
    margin: 0 0 15px;
    font-size: 1.8rem;
    color: var(--text-light);
    font-weight: 800;
    position: relative;
}

.disc-content h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--primary-yellow);
    margin-top: 10px;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.disc-card:hover .disc-content h3::after {
    width: 60px;
}

.disc-content p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 1.05rem;
}

/* Features List */
.disc-features {
    list-style: none;
    padding: 0;
    margin-top: auto;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.disc-features li {
    background: rgba(242, 227, 0, 0.1);
    color: var(--primary-yellow);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 2px solid rgba(242, 227, 0, 0.3);
}

.disc-features li:hover {
    background: var(--primary-yellow);
    color: var(--primary-navy);
    border-color: var(--primary-yellow);
}

/* ========================================
   ANIMATIONS
======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

/* 2K / Ultra-wide (2560px+) */
@media (min-width: 160rem) {
    .disciplines-hero .container {
        max-width: 1600px;
    }
    
    .disciplines-grid {
        max-width: 1600px;
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Large Desktop (1440px+) */
@media (min-width: 90rem) {
    .disciplines-grid {
        max-width: 1400px;
    }
}

/* Tablet */
@media (max-width: 992px) {
    .disciplines-hero {
        min-height: 60vh;
        padding: 80px 30px;
    }

    .disciplines-grid-section {
        padding: 70px 30px;
    }

    .disciplines-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        gap: 35px;
    }

    .disc-overlay {
        width: 60px;
        height: 60px;
        bottom: -25px;
        right: 25px;
    }

    .disc-overlay i {
        font-size: 24px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .disciplines-hero {
        min-height: 55vh;
        padding: 70px 25px;
    }

    .disciplines-grid-section {
        padding: 60px 25px;
    }

    .disciplines-grid {
        gap: 30px;
    }

    .disc-content {
        padding: 35px 25px 25px;
    }
    
    .disc-image {
        height: 220px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .disciplines-hero {
        padding: 60px 20px;
    }

    .disciplines-hero h1 {
        font-size: 2rem;
    }

    .disciplines-hero .subtitle {
        font-size: 1rem;
    }

    .disciplines-grid-section {
        padding: 50px 20px;
    }
    
    .disciplines-grid {
        max-width: 100%;
        gap: 25px;
    }
    
    .disc-image {
        height: 180px;
    }

    .disc-content {
        padding: 30px 20px 20px;
    }

    .disc-content h3 {
        font-size: 1.5rem;
    }

    .disc-content p {
        font-size: 0.95rem;
    }

    .disc-overlay {
        width: 50px;
        height: 50px;
        bottom: -20px;
        right: 20px;
    }

    .disc-overlay i {
        font-size: 20px;
    }

    .disc-features {
        gap: 10px;
    }

    .disc-features li {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
}

/* Extra Small Mobile (360px and below) */
@media (max-width: 22.5rem) {
    .disciplines-hero {
        padding: 50px 15px;
    }
    
    .disciplines-hero h1 {
        font-size: 1.75rem;
    }
    
    .disciplines-grid-section {
        padding: 40px 15px;
    }
    
    .disc-image {
        height: 150px;
    }
    
    .disc-content {
        padding: 25px 15px 15px;
    }
    
    .disc-content h3 {
        font-size: 1.3rem;
    }
    
    .disc-overlay {
        width: 45px;
        height: 45px;
        bottom: -18px;
        right: 15px;
    }
    
    .disc-overlay i {
        font-size: 18px;
    }
    
    .disc-features li {
        font-size: 0.7rem;
        padding: 5px 10px;
    }
}
