/* Global Navigation and Layout styles for Mockup Studio */

/* Permanent Dim Graphite Theme Configuration */
:root {
    --primary-gradient: linear-gradient(135deg, #1d9bf0 0%, #00b4d8 100%);
    --bg-dark: #15202b;
    --bg-card: rgba(30, 41, 59, 0.5);
    --border-glow: rgba(255, 255, 255, 0.06);
    --text-primary: #ffffff;
    --text-secondary: #8899a6;
    
    /* Tool Pages Variables Mapping */
    --bg-app: #15202b;
    --bg-panel: rgba(30, 41, 59, 0.7);
    --border-panel: rgba(255, 255, 255, 0.08);
    --text-app: #f1f5f9;
    --text-muted: #8899a6;
    --accent: #1d9bf0;
    --accent-glow: rgba(29, 155, 240, 0.15);
    
    /* Homepage Variables Mapping */
    --text-main: #f1f5f9;
    --primary: #1d9bf0;
}

/* Base Body Styles for Dim Graphite */
body {
    background-color: #15202b !important;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(29, 155, 240, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(30, 41, 59, 0.04) 0%, transparent 40%) !important;
    transition: all 0.3s ease;
}

/* Global Navigation Typography styling */
header, footer {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    box-sizing: border-box;
}

/* Header Styles */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 5% !important;
    border-bottom: 1px solid var(--border-panel) !important;
    background-color: rgba(21, 32, 43, 0.85) !important;
    backdrop-filter: blur(12px);
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    height: 76px !important;
    width: 100% !important;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none !important;
    color: var(--text-app) !important;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--primary-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: #ffffff;
    font-size: 1.25rem;
    box-shadow: 0 4px 15px rgba(29, 155, 240, 0.3);
}

.logo-title {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 800 !important;
    font-size: 1.45rem !important;
    background: linear-gradient(135deg, #ffffff 0%, #8899a6 100%);
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    letter-spacing: -0.02em !important;
    transition: all 0.3s ease;
}

.header-nav {
    display: flex;
    gap: 1.75rem;
    align-items: center;
}

.nav-link {
    color: var(--text-muted) !important;
    text-decoration: none !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    transition: color 0.2s ease !important;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-app) !important;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cta-header-btn {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 9999px !important;
    padding: 0.5rem 1.25rem !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.cta-header-btn:hover {
    background-color: var(--text-app) !important;
    color: var(--bg-app) !important;
    transform: translateY(-1px);
}

/* Footer Styles */
footer {
    padding: 3rem 5% !important;
    border-top: 1px solid var(--border-panel) !important;
    text-align: center !important;
    font-size: 0.85rem !important;
    color: var(--text-muted) !important;
    background-color: rgba(15, 23, 42, 0.95) !important;
    margin-top: auto !important;
    width: 100% !important;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--text-muted) !important;
    text-decoration: none !important;
    font-weight: 500;
    transition: color 0.2s ease !important;
}

.footer-link:hover {
    color: var(--text-app) !important;
}

.disclaimer {
    font-size: 0.75rem !important;
    max-width: 800px;
    margin: 1rem auto 0 auto !important;
    color: #4b5563 !important;
    line-height: 1.5;
}

/* Layout overrides to allow scrolling page to view footer while keeping editor panel layout fixed */
.main-container {
    height: 780px !important;
    min-height: 780px !important;
    flex: none !important;
}

.editor-panel {
    height: 100% !important;
    max-height: 100% !important;
}

.workspace-panel {
    height: 100% !important;
    max-height: 100% !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header-nav {
        display: none !important;
    }
    .main-container {
        height: auto !important;
        min-height: 0 !important;
    }
    .editor-panel {
        max-height: none !important;
        height: auto !important;
    }
    .workspace-panel {
        max-height: none !important;
        height: auto !important;
    }
}

/* Collapsible Header Highlights */
.section-header:hover .section-title {
    color: #ffffff !important;
}
.section-header:hover .collapse-icon {
    color: #ffffff !important;
}
.section-title {
    border-left: 3px solid var(--accent) !important;
    padding-left: 0.5rem !important;
}

/* Accessibility screen-reader only utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
