/**
 * Main Layout Styles
 * Core application layout and structure
 * 
 * UNIFIED SCROLL IMPLEMENTATION:
 * Changed from individual panel scrolling to unified page scroll.
 * To revert to original behavior, search for "REVERT:" comments and uncomment the lines.
 * 
 * Changes made:
 * - Removed min-height constraint from .main-content
 * - Removed overflow-y: auto from .left-panel, .content-area, .right-panel
 */

/* Main Container - Full Page Layout */
.container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Top Header with Logo and Navigation */
.top-header {
    display: grid;
    grid-template-columns: 271px 1fr auto;
    padding: 12px 20px;
    background: linear-gradient(135deg, 
        rgb(45, 25, 80) 0%, 
        rgb(52, 30, 95) 25%, 
        rgb(60, 35, 110) 50%, 
        rgb(52, 30, 95) 75%, 
        rgb(45, 25, 80) 100%);
    border-bottom: 1px solid rgb(75, 50, 140);
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* Header Logo (clickable home button) */
.header-logo {
    font-size: 26px;
    font-weight: 800;
    font-family: 'Space Grotesk', 'Inter', 'Segoe UI', sans-serif;
    color: #ff7b47;
    -webkit-text-stroke: none;
    cursor: pointer;
    transition: none;
    position: relative;
    letter-spacing: 6px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: -10px;
    margin-left: 8px;
}

.logo-line {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-slogan {
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    margin-left: 20px;
    margin-top: 1px;
    letter-spacing: 0.3px;
    font-style: italic;
    white-space: nowrap;
}

/* Removed shimmer effect */

/* Logo Text Styling */
.logo-text {
    transition: all 0.15s ease;
}

/* BETA Badge Styling */
.beta-badge {
    background: linear-gradient(135deg, #8b5cf6, #c084fc);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 3px;
    border-radius: 4px;
    margin-left: -8px;
    margin-top: -2px;
    text-shadow: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: white;
    background-clip: initial;
    letter-spacing: 0.3px;
    position: relative;
    display: inline-block;
    box-shadow: none;
}

.header-logo:hover .logo-text {
    color: #8b5cf6;
    filter: brightness(1.1) saturate(1.2);
}

/* Version Badge - Uses Aksho Animation Style from buttons.css */

/* Version badge hover styling moved to buttons.css */

/* Main Content Grid */
.main-content {
    display: grid;
    grid-template-columns: 300px 1fr 300px;
    flex: 1;
    padding-top: 60px;
    min-height: calc(100vh - 60px);
}

/* Left Panel for Prompts */
.left-panel {
    padding: 20px;
    background: linear-gradient(180deg, 
        rgba(139, 92, 246, 0.08) 0%,
        rgba(168, 85, 247, 0.05) 50%,
        rgba(192, 132, 252, 0.03) 100%);
    position: sticky;
    top: 60px;
    height: calc(100vh - 60px);
    overflow-y: auto;
}

/* Main Content Area */
.content-area {
    padding: 20px;
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.03) 0%,
        rgba(168, 85, 247, 0.02) 25%,
        rgba(192, 132, 252, 0.01) 50%,
        transparent 100%);
    min-height: calc(100vh - 60px);
}

/* Enhanced Landing Layout (no change needed - already 3 columns) */
body.landing-active .main-content {
    grid-template-columns: 300px 1fr 300px;
}

body.landing-active .left-panel {
    background: linear-gradient(180deg, 
        rgba(139, 92, 246, 0.12) 0%,
        rgba(168, 85, 247, 0.08) 50%,
        rgba(192, 132, 252, 0.05) 100%);
}

body.landing-active .content-area {
    padding: 40px 20px;
}

/* Right panel for landing (Character Summary) */
body.landing-active .right-panel {
    display: block;
    padding: 20px;
    background: linear-gradient(180deg, 
        rgba(139, 92, 246, 0.08) 0%,
        rgba(168, 85, 247, 0.05) 50%,
        rgba(192, 132, 252, 0.03) 100%);
    position: sticky;
    top: 60px;
    height: calc(100vh - 60px);
    overflow-y: auto;
}

/* Right panel visible on all tabs */
.right-panel {
    display: block;
    padding: 20px;
    background: linear-gradient(180deg, 
        rgba(139, 92, 246, 0.08) 0%,
        rgba(168, 85, 247, 0.05) 50%,
        rgba(192, 132, 252, 0.03) 100%);
    position: sticky;
    top: 60px;
    height: calc(100vh - 60px);
    overflow-y: auto;
}

/* Enhanced Getting Started Section */
.getting-started-featured {
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.25) 0%,
        rgba(168, 85, 247, 0.2) 50%,
        rgba(192, 132, 252, 0.15) 100%);
}

/* Version Modal Changelog Styles */
.changelog-content {
    max-height: 300px;
    overflow-y: auto;
}

.changelog-entry {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(75, 50, 120, 0.8);
    border-radius: 8px;
    border-left: 3px solid #8b5cf6;
}

.changelog-entry h4 {
    color: #e879f9;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.changelog-entry ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.changelog-entry li {
    padding: 4px 0;
    color: rgba(255, 255, 255, 0.95);
    font-size: 14px;
    line-height: 1.4;
}

/* Animations */
@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto;
    }
    
    .creator-panel {
        padding: 30px;
    }
    
    .output-panel {
        border-left: none;
        border-top: 2px solid rgba(139, 92, 246, 0.2);
        padding: 30px;
        max-height: 50vh;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 15px 20px;
    }
    
    .header h1 {
        font-size: 24px;
    }
    
    .version-badge {
        position: static;
        display: inline-block;
        margin-top: 10px;
    }
    
    .main-content.home-layout {
        padding: 20px;
    }
    
    .creator-panel {
        padding: 20px;
    }
    
    .output-panel {
        padding: 20px;
        max-height: 40vh;
    }
}