/* ====================================
   LOCAL PROJECTS - SPLIT-SCREEN LAYOUT
   Shared styles for local project slides
   ==================================== */

/* ===== SPLIT-SCREEN LAYOUT ===== */
.local-project-container {
    position: relative;
    height: 100vh;
    display: grid;
    grid-template-columns: 70% 30%;
    gap: 0;
    overflow: hidden;
}

/* ===== IFRAME SECTION (70%) ===== */
.iframe-section {
    position: relative;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
}

.iframe-frame {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    background: white;
    border: 3px solid rgba(50, 205, 50, 0.3);
    transition: all var(--transition-slow);
}

.iframe-frame:hover {
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
    transform: scale(1.01);
}

.project-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    background: white;
}

/* Fullscreen Toggle Button */
.fullscreen-toggle {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    z-index: 100;
    padding: var(--space-sm) var(--space-lg);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
}

.fullscreen-toggle:hover {
    background: var(--green-lime);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow-md);
}

.fullscreen-toggle svg {
    width: 18px;
    height: 18px;
}

/* ===== INFO SECTION (30%) ===== */
.info-section {
    position: relative;
    padding: var(--space-2xl) var(--space-lg);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    background: var(--bg-light);
}

/* Project Badge */
.project-type-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: linear-gradient(135deg, var(--green-lime), var(--green-508));
    color: white;
    font-size: var(--text-xs);
    font-weight: var(--weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: var(--radius-full);
    align-self: flex-start;
    box-shadow: var(--shadow-md);
}

/* Project Title */
.project-main-title {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: var(--weight-black);
    color: var(--text-primary);
    line-height: var(--leading-tight);
    margin-bottom: var(--space-xs);
}

.project-subtitle {
    font-size: var(--text-base);
    color: var(--text-secondary);
    font-weight: var(--weight-medium);
    margin-bottom: var(--space-md);
}

/* Project Description */
.project-desc {
    font-size: var(--text-sm);
    color: var(--text-primary);
    line-height: var(--leading-normal);
    margin-bottom: var(--space-md);
}

/* Highlight Box */
.highlight-box {
    padding: var(--space-md);
    background: linear-gradient(135deg, rgba(50, 205, 50, 0.1), rgba(147, 220, 92, 0.1));
    border-left: 3px solid var(--green-lime);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}

.highlight-title {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: var(--weight-bold);
    color: var(--green-lime);
    margin-bottom: var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.highlight-text {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: var(--leading-normal);
}

/* Stats Grid */
.stats-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
}

.stat-mini {
    padding: var(--space-sm);
    background: var(--bg-card);
    border: 1.5px solid var(--green-lime);
    border-radius: var(--radius-lg);
    text-align: center;
}

.stat-mini-value {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: var(--weight-black);
    color: var(--green-lime);
    margin-bottom: 2px;
}

.stat-mini-label {
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Tech Tags */
.tech-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
}

.tech-tag-item {
    padding: var(--space-xs) var(--space-sm);
    background: rgba(50, 205, 50, 0.15);
    border: 1.5px solid var(--green-lime);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    color: var(--text-primary);
    transition: all var(--transition-base);
}

.tech-tag-item:hover {
    background: var(--green-lime);
    color: white;
}

/* ===== FULLSCREEN MODE ===== */
.fullscreen-active .local-project-container {
    grid-template-columns: 1fr;
}

.fullscreen-active .info-section {
    display: none;
}

.fullscreen-active .iframe-section {
    padding: 0;
}

.fullscreen-active .iframe-frame {
    border-radius: 0;
    border: none;
    box-shadow: none;
}

.fullscreen-active .fullscreen-toggle {
    top: var(--space-lg);
    right: var(--space-lg);
}

/* Exit Fullscreen Button (only visible in fullscreen) */
.exit-fullscreen {
    display: none;
}

.fullscreen-active .exit-fullscreen {
    display: flex;
}

.fullscreen-active .enter-fullscreen {
    display: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .local-project-container {
        grid-template-columns: 1fr;
        grid-template-rows: 60% 40%;
    }

    .iframe-section {
        padding: var(--space-md);
    }

    .info-section {
        padding: var(--space-lg);
    }

    .project-main-title {
        font-size: var(--text-3xl);
    }
}

@media (max-width: 768px) {
    .stats-mini-grid {
        grid-template-columns: 1fr;
    }
}