/* ========================================
   PLATFORM GUIDES SECTION - SEO OPTIMIZED
   Replaces old seo-content section
======================================== */

#platform-guides {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 8rem 5%;
    position: relative;
    overflow: hidden;
}

/* Subtle background pattern */
#platform-guides::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 204, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 204, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
    z-index: 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ========================================
   HEADER
======================================== */
.platform-guides-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-tag {
    display: inline-block;
    color: var(--accent-cyan);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    padding: 0.5rem 1.5rem;
    background: rgba(0, 255, 204, 0.1);
    border: 1px solid rgba(0, 255, 204, 0.3);
    border-radius: 50px;
}

.platform-guides-header .section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: #00ffcc;
    margin-bottom: 1.5rem;
    text-shadow: 
        0 0 20px rgba(0, 255, 204, 0.5),
        0 0 40px rgba(0, 255, 204, 0.3);
}

.platform-guides-header .section-description {
    font-size: 1.2rem;
    color: #cbd5e1;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ========================================
   PLATFORM CARDS GRID - OPTIMIZED 2x2 LAYOUT
   Always 2 columns on desktop/tablet for better readability
======================================== */
.platform-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-bottom: 5rem;
}

/* Ensure cards have enough height for content */
.platform-card {
    min-height: 750px;
    display: flex;
    flex-direction: column;
}

/* Individual Platform Card */
.platform-card {
    background: rgba(26, 26, 46, 0.6);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 204, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.platform-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-cyan);
    box-shadow: 
        0 20px 60px rgba(0, 255, 204, 0.2),
        0 0 40px rgba(0, 255, 204, 0.1);
}

/* Platform Card Image Container */
.platform-card-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 255, 204, 0.1), rgba(157, 78, 221, 0.1));
}

.platform-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.platform-card:hover .platform-card-image img {
    transform: scale(1.08);
}

/* Platform Badge */
.platform-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #ff6b00, #ff8800);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 4px 20px rgba(255, 107, 0, 0.4);
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.platform-badge.badge-premium {
    background: linear-gradient(135deg, #9d4edd, #c77dff);
}

.platform-badge.badge-new {
    background: linear-gradient(135deg, #00ff00, #00cc00);
}

.platform-badge.badge-android {
    background: linear-gradient(135deg, #3ddc84, #00d084);
}

.badge-icon {
    font-size: 1rem;
}

.badge-text {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Platform Card Content */
.platform-card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex: 1;
}

.platform-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-white);
    margin: 0;
}

.platform-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #94a3b8;
}

.platform-description strong {
    color: var(--accent-cyan);
    font-weight: 700;
}

/* Platform Stats */
.platform-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(0, 255, 204, 0.1);
    border-bottom: 1px solid rgba(0, 255, 204, 0.1);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    text-align: center;
}

.stat-icon {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
}

.stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--accent-cyan);
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Platform Features List */
.platform-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.platform-features li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    color: #cbd5e1;
}

.platform-features i {
    color: var(--accent-cyan);
    font-size: 1rem;
    flex-shrink: 0;
}

/* Platform CTA Button */
.platform-cta-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.8rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: auto; /* Push to bottom */
    position: relative;
    overflow: hidden;
}

.platform-cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.platform-cta-btn:hover::before {
    left: 100%;
}

.platform-cta-btn i {
    transition: transform 0.3s ease;
}

.platform-cta-btn:hover i {
    transform: translateX(5px);
}

/* Button Variants */
.primary-gradient {
    background: linear-gradient(135deg, var(--accent-cyan), #00cc99);
    color: var(--primary-dark);
    box-shadow: 0 10px 30px rgba(0, 255, 204, 0.3);
}

.primary-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 255, 204, 0.5);
}

.secondary-gradient {
    background: linear-gradient(135deg, #9d4edd, #c77dff);
    color: white;
    box-shadow: 0 10px 30px rgba(157, 78, 221, 0.3);
}

.secondary-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(157, 78, 221, 0.5);
}

.tertiary-gradient {
    background: linear-gradient(135deg, #ff6b00, #ff8800);
    color: white;
    box-shadow: 0 10px 30px rgba(255, 107, 0, 0.3);
}

.tertiary-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 107, 0, 0.5);
}

.quaternary-gradient {
    background: linear-gradient(135deg, #3ddc84, #00d084);
    color: white;
    box-shadow: 0 10px 30px rgba(61, 220, 132, 0.3);
}

.quaternary-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(61, 220, 132, 0.5);
}

/* ========================================
   BOTTOM FEATURES SECTION
======================================== */
.platform-bottom-features {
    background: rgba(26, 26, 46, 0.4);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid rgba(0, 255, 204, 0.1);
    margin-bottom: 3rem;
}

.features-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-white);
    text-align: center;
    margin-bottom: 2.5rem;
}

.features-grid-enhanced {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-item-enhanced {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(0, 255, 204, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 204, 0.1);
    transition: all 0.3s ease;
}

.feature-item-enhanced:hover {
    transform: translateY(-3px);
    border-color: var(--accent-cyan);
    background: rgba(0, 255, 204, 0.1);
}

.feature-icon-wrapper {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent-cyan), #00cc99);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon-wrapper i {
    font-size: 1.3rem;
    color: var(--primary-dark);
}

.feature-content {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.feature-content strong {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-white);
}

.feature-content span {
    font-size: 0.85rem;
    color: #94a3b8;
}

/* ========================================
   PLATFORM COMPATIBILITY NOTE
======================================== */
.platform-compatibility-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    background: rgba(0, 255, 204, 0.05);
    border: 1px solid rgba(0, 255, 204, 0.2);
    border-radius: 50px;
    text-align: center;
}

.platform-compatibility-note i {
    color: var(--accent-cyan);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.platform-compatibility-note p {
    margin: 0;
    font-size: 0.95rem;
    color: #cbd5e1;
    line-height: 1.6;
}

.platform-compatibility-note strong {
    color: var(--accent-cyan);
    font-weight: 700;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

/* Tablet and up: Always 2 columns */
@media (min-width: 769px) {
    .platform-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
    
    .platform-card {
        min-height: 750px;
    }
}

@media (max-width: 768px) {
    #platform-guides {
        padding: 5rem 5%;
    }

    .platform-guides-header {
        margin-bottom: 3rem;
    }

    .platform-guides-header .section-title {
        font-size: 2rem;
    }

    .platform-guides-header .section-description {
        font-size: 1rem;
    }

    .platform-cards-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .platform-card {
        min-height: auto; /* Remove min-height on mobile */
    }

    .platform-card-image {
        height: 220px;
    }

    .platform-card-content {
        padding: 1.5rem;
    }

    .platform-stats {
        gap: 0.8rem;
    }

    .stat-value {
        font-size: 1.3rem;
    }

    .features-grid-enhanced {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .platform-bottom-features {
        padding: 2rem 1.5rem;
    }

    .platform-compatibility-note {
        flex-direction: column;
        padding: 1.5rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .platform-card-content {
        padding: 1.2rem;
    }

    .platform-title {
        font-size: 1.3rem;
    }

    .platform-description {
        font-size: 0.9rem;
    }

    .platform-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .platform-cta-btn {
        font-size: 0.85rem;
        padding: 0.9rem 1.5rem;
    }

    .features-title {
        font-size: 1.2rem;
    }

    .feature-item-enhanced {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.2rem;
    }
}