/*
Theme Name: TLZ Labs Research Dashboard
Theme URI: https://www.tlzlabs.com
Author: TLZ Labs
Author URI: https://www.tlzlabs.com
Description: Modern research dashboard theme with metrics, comparisons, and innovation showcase
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tlz-labs
Domain Path: /languages
*/

/* ==========================================
   RESET & BASE STYLES
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #764ba2;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================
   SITE HEADER
   ========================================== */

.site-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3px 0;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-size: 1.5em;
    font-weight: bold;
    color: white;
}

.site-logo a {
    color: white;
}

.site-logo a:hover {
    color: #e0e0e0;
}

/* ==========================================
   MAIN NAVIGATION
   ========================================== */

.main-nav {
    display: flex;
    list-style: none;
    gap: 0;
}

.main-nav a {
    color: white;
    padding: 5px 20px;
    display: block;
    transition: background 0.3s ease;
}

.main-nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.main-nav .active a {
    background: rgba(0, 0, 0, 0.2);
}

/* ==========================================
   SITE CONTENT
   ========================================== */

.site-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 30px;
    border-radius: 10px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    text-align: center;
}

.page-header h1 {
    font-size: 2.8em;
    margin-bottom: 15px;
    color: white;
}

.page-header .subtitle {
    font-size: 1.2em;
    opacity: 0.95;
}

/* ==========================================
   DASHBOARD COMPONENTS
   ========================================== */

.tlz-dashboard {
    max-width: 1400px;
    margin: 0 auto;
}

.winner-box {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border: 4px solid #ff8c00;
    padding: 30px;
    border-radius: 10px;
    margin: 30px 0;
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.3);
}

.winner-box h2 {
    color: #333;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.metric {
    background: #e3f2fd;
    padding: 20px 30px;
    border-radius: 8px;
    border-left: 4px solid #2196f3;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.metric:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.2);
}

.metric-value {
    font-size: 2.5em;
    font-weight: bold;
    color: #1976d2;
    line-height: 1;
    margin-bottom: 10px;
}

.metric-label {
    font-size: 0.95em;
    color: #666;
    font-weight: 500;
}

/* ==========================================
   SECTIONS
   ========================================== */

.section {
    background: white;
    padding: 30px;
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.section h2 {
    color: #333;
    font-size: 1.8em;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #667eea;
}

.section h3 {
    color: #667eea;
    font-size: 1.3em;
    margin-top: 20px;
    margin-bottom: 15px;
}

.section p {
    margin-bottom: 15px;
    line-height: 1.8;
}

/* ==========================================
   TABLES
   ========================================== */

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.95em;
}

.dashboard-table th {
    background: #667eea;
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    border: none;
}

.dashboard-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
}

.dashboard-table tr:hover {
    background: #f9f9f9;
}

.dashboard-table tr:last-child td {
    border-bottom: none;
}

/* ==========================================
   STATUS INDICATORS
   ========================================== */

.status-success {
    color: #4caf50;
    font-weight: bold;
}

.status-error {
    color: #f44336;
    font-weight: bold;
}

.status-pending {
    color: #ff9800;
    font-weight: bold;
}

.status-info {
    color: #2196f3;
    font-weight: bold;
}

/* ==========================================
   BOXES & ALERTS
   ========================================== */

.mechanism-box {
    background: #fff3e0;
    padding: 25px;
    border-left: 5px solid #ff9800;
    margin: 20px 0;
    border-radius: 5px;
}

.alert-box {
    padding: 20px;
    margin: 20px 0;
    border-radius: 5px;
    border-left: 5px solid;
}

.alert-success {
    background: #e8f5e9;
    border-left-color: #4caf50;
    color: #2e7d32;
}

.alert-warning {
    background: #fff3cd;
    border-left-color: #ffc107;
    color: #856404;
}

.alert-info {
    background: #e3f2fd;
    border-left-color: #2196f3;
    color: #1565c0;
}

.alert-error {
    background: #ffebee;
    border-left-color: #f44336;
    color: #c62828;
}

/* ==========================================
   TIMELINE
   ========================================== */

.timeline {
    border-left: 3px solid #667eea;
    padding-left: 25px;
    margin: 20px 0;
}

.timeline-item {
    margin: 20px 0;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 5px;
    border-left: 3px solid #2196f3;
    transition: all 0.3s ease;
}

.timeline-item:hover {
    background: #efefef;
    transform: translateX(5px);
}

.timeline-item strong {
    color: #667eea;
    display: block;
    margin-bottom: 8px;
}

/* ==========================================
   FOOTER
   ========================================== */

.site-footer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 20px 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: white;
    margin-bottom: 15px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    opacity: 0.9;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 15px;
    }

    .main-nav {
        flex-direction: column;
        width: 100%;
    }

    .main-nav a {
        padding: 10px 15px;
    }

    .page-header {
        padding: 40px 20px;
    }

    .page-header h1 {
        font-size: 1.8em;
    }

    .metrics {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 20px 15px;
    }

    .dashboard-table {
        font-size: 0.85em;
    }

    .dashboard-table th,
    .dashboard-table td {
        padding: 10px;
    }

    .site-content {
        padding: 20px 10px;
    }
}

/* ==========================================
   PRINT STYLES
   ========================================== */

@media print {
    .site-header,
    .site-footer,
    .main-nav {
        display: none;
    }

    .section {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

.content-area {
    max-width: 100%;
    padding: 0;
    margin: 0;
}

.main-content {
    display: block;
    margin-bottom: 40px;
}

.site-logo img {
    max-height: 80px;
    max-height: 150px;
    width: auto;
    display: block;
}

.site-header {
    min-height: auto;
}

/* Logo sizing adjustments */
.header-inner {
    padding: 5px 20px;
    gap: 20px;
}

.site-logo {
    flex: 0 0 auto;
}

.site-logo img {
    height: 150px;
    width: auto;
    max-width: none;
}

/* Compact header adjustments */
.site-logo {
    line-height: 1;
    display: flex;
    align-items: center;
}

.site-logo a {
    display: flex;
    align-items: center;
}

.header-inner {
    gap: 10px;
    padding-top: 2px;
    padding-bottom: 2px;
}

/* Super compact header */
.site-logo img {
    display: block;
    margin: 0;
    padding: 0;
}

.header-inner {
    min-height: auto;
}

/* Keep header compact with big logo */
.site-header {
    max-height: 200px;
}

.site-logo {
    line-height: 0;
}

.site-logo img {
    line-height: 1;
}

/* Float logo on header */
.site-header {
    position: relative;
}

.site-logo {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 101;
    margin: 0;
    padding: 0;
}

.site-logo a {
    display: flex;
    align-items: center;
}

.header-inner {
    padding-left: 180px;
}

/* Increase header height for floating logo */
.site-header {
    padding-top: 60px !important;
    padding-bottom: 8px !important;
}
