/*
 * IntelQI LMS — Enterprise Learning Platform
 * Platform Section Styles
 *
 * Copyright © 2025 Euclideum Solutions Private Limited.
 */

/* ============================================
   Platform Section Base
   ============================================ */
.platform-section {
    padding: 48px 24px 64px;
    background-color: #f8fafc;
}

[data-theme="dark"] .platform-section {
    background-color: #0c1222;
}

@media (min-width: 768px) {
    .platform-section {
        padding: 56px 24px 80px;
    }
}

@media (min-width: 1024px) {
    .platform-section {
        padding: 64px 24px 100px;
    }
}

@media (min-width: 1400px) {
    .platform-section {
        padding: 64px 32px 100px;
    }
}

.platform-container {
    max-width: 100%;
    margin: 0 auto;
}

@media (min-width: 1400px) {
    .platform-container {
        max-width: 1336px;
    }
}

/* ============================================
   Platform Header Row
   ============================================ */
.platform-header {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 48px;
}

@media (min-width: 768px) {
    .platform-header {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        gap: 32px;
        margin-bottom: 56px;
    }
}

@media (min-width: 1024px) {
    .platform-header {
        margin-bottom: 64px;
    }
}

.platform-header-content {
    flex: 1;
    max-width: 700px;
}

.platform-label {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

[data-theme="dark"] .platform-label {
    color: #94a3b8;
}

@media (min-width: 768px) {
    .platform-label {
        font-size: 14px;
        margin-bottom: 20px;
    }
}

.platform-heading {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.15;
    color: #0f172a;
    letter-spacing: -0.02em;
}

[data-theme="dark"] .platform-heading {
    color: #f1f5f9;
}

@media (min-width: 768px) {
    .platform-heading {
        font-size: 40px;
    }
}

@media (min-width: 1024px) {
    .platform-heading {
        font-size: 48px;
    }
}

/* Button - Matching Hero Section Style */
.platform-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    background-color: #154f95;
    color: #ffffff;
    border: 1px solid #154f95;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(21, 79, 149, 0.3);
}

.platform-cta-btn:hover {
    background-color: #0d3d7a;
    border-color: #0d3d7a;
    box-shadow: 0 4px 6px -1px rgba(21, 79, 149, 0.4);
    transform: translateY(-1px);
}

[data-theme="dark"] .platform-cta-btn {
    background-color: #60a5fa;
    border-color: #60a5fa;
    box-shadow: 0 1px 3px rgba(50, 148, 227, 0.3);
}

[data-theme="dark"] .platform-cta-btn:hover {
    background-color: #3b82f6;
    border-color: #3b82f6;
    box-shadow: 0 4px 6px -1px rgba(50, 148, 227, 0.4);
}

/* ============================================
   Platform Main Content (Features + Image)
   ============================================ */
.platform-main {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

@media (min-width: 1024px) {
    .platform-main {
        flex-direction: row;
        gap: 64px;
        align-items: stretch;
    }
}

@media (min-width: 1400px) {
    .platform-main {
        gap: 80px;
    }
}

/* ============================================
   Platform Features List (Left Side)
   ============================================ */
.platform-features {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

@media (min-width: 1024px) {
    .platform-features {
        flex: 0 0 420px;
    }
}

@media (min-width: 1200px) {
    .platform-features {
        flex: 0 0 460px;
    }
}

/* ============================================
   Platform Feature Item
   ============================================ */
.platform-feature {
    border-radius: 16px;
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}

.platform-feature:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .platform-feature:hover {
    background-color: rgba(17, 26, 46, 0.5);
}

.platform-feature.is-active {
    background-color: #ffffff;
    box-shadow: 0 4px 24px -4px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .platform-feature.is-active {
    background-color: #111a2e;
    box-shadow: 0 4px 24px -4px rgba(0, 0, 0, 0.4);
}

.platform-feature-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
}

@media (min-width: 768px) {
    .platform-feature-header {
        padding: 22px 28px;
    }
}

.platform-feature-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #154f95;
    flex-shrink: 0;
    margin-top: 2px;
    transition: color 0.25s ease, transform 0.25s ease;
}

[data-theme="dark"] .platform-feature-icon {
    color: #60a5fa;
}

@media (min-width: 768px) {
    .platform-feature-icon {
        width: 28px;
        height: 28px;
    }
}

.platform-feature-icon svg {
    width: 100%;
    height: 100%;
}

.platform-feature.is-active .platform-feature-icon {
    transform: scale(1.1);
}

.platform-feature-title {
    font-size: 16px;
    font-weight: 500;
    color: #0f172a;
    line-height: 1.4;
    flex: 1;
    transition: color 0.25s ease;
}

[data-theme="dark"] .platform-feature-title {
    color: #f1f5f9;
}

@media (min-width: 768px) {
    .platform-feature-title {
        font-size: 17px;
    }
}

@media (min-width: 1024px) {
    .platform-feature-title {
        font-size: 18px;
    }
}

/* ============================================
   Platform Feature Content - Smooth Animation
   ============================================ */
.platform-feature-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease;
}

.platform-feature.is-active .platform-feature-content {
    grid-template-rows: 1fr;
}

.platform-feature-content-inner {
    overflow: hidden;
}

.platform-feature-description {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.7;
    color: #64748b;
    padding: 0 24px 24px 64px;
}

[data-theme="dark"] .platform-feature-description {
    color: #94a3b8;
}

@media (min-width: 768px) {
    .platform-feature-description {
        font-size: 15px;
        padding: 0 28px 28px 72px;
    }
}

/* ============================================
   Platform Image (Right Side)
   ============================================ */
.platform-image {
    flex: 1;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.platform-image-wrapper {
    width: 100%;
    max-width: 600px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px -12px rgba(0, 0, 0, 0.12);
    position: relative;
}

[data-theme="dark"] .platform-image-wrapper {
    box-shadow: 0 20px 60px -12px rgba(0, 0, 0, 0.4);
}

@media (min-width: 1024px) {
    .platform-image-wrapper {
        max-width: none;
        border-radius: 24px;
        height: 440px;
    }
}

@media (min-width: 1200px) {
    .platform-image-wrapper {
        height: 470px;
    }
}

@media (min-width: 1400px) {
    .platform-image-wrapper {
        height: 500px;
    }
}

.platform-image-item {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.platform-image-item.is-active {
    opacity: 1;
    visibility: visible;
    position: absolute;
}

.platform-image-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
