/* RTGS Lab Main Stylesheet */
@import url('themes.css');
@import url('components.css');

/* Page-specific styles that are common across the site */
/* Development Banner */
.dev-banner {
    background: linear-gradient(135deg, #FF6B35, #F7931E);
    color: white;
    padding: 0.75rem 1rem;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    border-bottom: 2px solid rgba(0,0,0,0.1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    z-index: 100;
    margin-bottom: 1rem;
}

.dev-banner::before {
    content: "⚠️";
    margin-right: 0.5rem;
}

@media (max-width: 768px) {
    .dev-banner {
        font-size: 0.85rem;
        padding: 0.6rem 0.75rem;
    }
}


/* Hero Section */
.hero-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--section-spacing);
    margin-bottom: 4rem;
    align-items: start;
}

.hero-content {
    max-width: none;
}

.lead {
    font-size: 1.3rem;
    margin: 0 0 2rem 0;
    color: #444;
    line-height: 1.5;
}

.hero-content p {
    margin: 1.4rem 0;
    max-width: 60rem;
}

.research-highlight {
    background: #f9f9f9;
    border-left: 4px solid var(--gems-primary);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 4px 4px 0;
}

.research-highlight h3 {
    margin: 0 0 1rem 0;
    color: var(--gems-primary);
    font-size: 1.1rem;
}

/* Sidebar */
.hero-sidebar {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding-top: 0.5rem;
}

.sidebar-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #fafafa;
    border-radius: 6px;
    border: 1px solid var(--border-light);
}

.sidebar-section h4 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.quick-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    text-align: center;
}

.stat-item {
    padding: 1rem;
    background: white;
    border-radius: 4px;
    border: 1px solid var(--border-light);
}

.stat-number {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--gems-primary);
    display: block;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin-top: 0.5rem;
}

.marginal-note {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    font-style: italic;
    margin-top: 1rem;
    line-height: 1.4;
}

/* Section Cards */
.sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.section-card {
    text-decoration: none;
    color: var(--text-primary);
    display: block;
    padding: 2rem;
    border: 1px solid var(--border-light);
    background: #fafafa;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
}

.section-card:hover {
    background: #f0f0f0;
    border-color: #ccc;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.section-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: var(--text-primary);
}

.section-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 1rem;
}

.section-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-weight: 600;
}

.status-active {
    background: #e8f5e8;
    color: #2d5a2d;
}

.status-beta {
    background: #fff3cd;
    color: #856404;
}

.status-alpha {
    background: #f0e6ff;
    color: #6a0dad;
}

.status-planned {
    background: #e7f3ff;
    color: #0066cc;
}

/* Recent Updates */
.updates-section {
    background: #f9f9f9;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.updates-title {
    font-size: 1.3rem;
    font-weight: normal;
    margin: 0 0 1.5rem 0;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-medium);
    padding-bottom: 0.5rem;
}

.update-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.update-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.update-date {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-tertiary);
    white-space: nowrap;
    min-width: 80px;
}

.update-content {
    flex: 1;
}

.update-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.update-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Responsive Design Extensions */
@media (max-width: 768px) {
    .hero-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-sidebar {
        order: -1;
    }

    .sections-grid {
        grid-template-columns: 1fr;
    }
}/* Enhanced Mobile Responsive Styles */

/* Additional responsive breakpoints */
@media (max-width: 480px) {
    /* Extra small devices (phones) */
    .container {
        padding: 0 0.75rem;
    }
    
    .lab-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .lead {
        font-size: 1.1rem;
    }
    
    .hero-content p {
        font-size: 0.95rem;
    }
    
    .sidebar-section {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .quick-stats {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .stat-item {
        padding: 0.75rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .section-card {
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 1.1rem;
    }
    
    .section-description {
        font-size: 0.9rem;
    }
    
    .update-item {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .update-date {
        min-width: auto;
        font-size: 0.75rem;
    }
    
    .updates-section {
        padding: 1.5rem;
    }
    
    .main-navigation {
        padding: 2px;
        gap: 0.25rem;
    }
    
    .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
        min-width: calc(50% - 0.125rem);
    }
}

@media (max-width: 768px) {
    /* Tablet and mobile improvements */
    .hero-section {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 3rem;
    }

    .hero-sidebar {
        order: -1;
    }

    .sections-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .research-highlight {
        padding: 1.25rem;
        margin: 1.5rem 0;
    }
    
    .lab-footer {
        padding: 1.5rem 0;
        font-size: 0.85rem;
    }
    
    /* Better touch targets */
    .section-card {
        min-height: 120px;
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Improved spacing */
    .lab-header {
        padding: 2rem 0 1.5rem;
        margin-bottom: 2rem;
    }
    
    .tagline {
        font-size: 0.95rem;
    }
    
    .institution {
        font-size: 1rem;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    /* Tablet landscape */
    .sections-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-section {
        grid-template-columns: 3fr 2fr;
    }
}

/* Touch device improvements */
@media (hover: none) and (pointer: coarse) {
    .section-card:hover {
        transform: none;
        box-shadow: none;
    }
    
    .section-card:active {
        transform: translateY(1px);
        background: #e8e8e8;
    }
    
    .nav-link:hover {
        transform: none;
    }
    
    .nav-link:active {
        background: #e0e0e0;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .section-icon {
        font-size: 2.2rem;
    }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        grid-template-columns: 2fr 1fr;
    }
    
    .hero-sidebar {
        order: 0;
    }
    
    .lab-header {
        padding: 1.5rem 0 1rem;
    }
    
    .lab-title {
        font-size: 2rem;
    }
}/* View All Updates Button Styles */
.view-all-updates-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--gems-primary);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.view-all-updates-btn:hover {
    background: #6a1d38;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}