/* Desktop-specific styles for Illuminate AI */
/* Applies to screens 1024px and above */

/* Desktop CSS Variables */
@media (min-width: 1024px) {
    :root {
        --nav-height: 0;
        --bottom-nav-height: 0;
        --sidebar-width: 280px;
        --spacing: 1.5rem;
        --radius: 16px;
        --radius-sm: 8px;
    }
}

/* Desktop Layout - Sidebar + Main Content */
@media (min-width: 1024px) {
    .app-container {
        display: flex;
        height: 100vh;
    }

    /* Hide mobile UI on desktop */
    .mobile-header {
        display: none !important;
    }

    .bottom-nav {
        display: none !important;
    }

    .drawer-overlay {
        display: none !important;
    }

    /* Desktop Main Content */
    .main-content {
        flex: 1;
        overflow-y: auto;
        padding: 2rem;
        margin-left: 0;
    }

    /* Desktop typography - larger sizes */
    h1 {
        font-size: clamp(2.5rem, 5vw, 3.5rem);
        line-height: 1.1;
    }

    h2 {
        font-size: 2rem;
        line-height: 1.2;
    }

    h3 {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    /* Desktop content sections */
    .content-section {
        max-width: 1200px;
        margin: 0 auto;
        padding: 3rem 2rem;
    }

    .hero-section {
        max-width: 1200px;
        margin: 0 auto;
        padding: 4rem 2rem;
        text-align: left;
    }

    /* Desktop grids - multi-column */
    .responsive-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }

    .adaptive-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    .adaptive-stats {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    /* Desktop cards */
    .card {
        padding: 2rem;
        transition: all 0.3s ease;
    }

    .card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    }

    /* Desktop buttons */
    .btn {
        min-height: 40px;
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
        width: auto;
        transition: all 0.2s ease;
    }

    .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    }

    .btn:active {
        transform: translateY(0);
    }

    .btn-group {
        display: flex;
        gap: 1rem;
        flex-direction: row;
        flex-wrap: wrap;
    }

    /* Desktop forms */
    .form-input,
    .form-textarea,
    .form-select {
        min-height: 40px;
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }

    .form-group {
        margin-bottom: 1.5rem;
    }

    .form-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    /* Desktop-specific components */
    .profile-avatar-large {
        width: 120px;
        height: 120px;
        font-size: 3rem;
    }

    .stat-value {
        font-size: 2.5rem;
    }

    /* Desktop modals */
    .modal-content {
        width: 90%;
        max-width: 600px;
        margin: auto;
    }

    /* Desktop tables */
    .table-wrapper {
        overflow-x: auto;
    }

    table {
        width: 100%;
        border-collapse: collapse;
    }

    thead {
        background: var(--surface-2);
        position: sticky;
        top: 0;
    }

    tr:hover {
        background: var(--surface-2);
    }

    /* Desktop chat interface */
    .chat-container-wrapper {
        display: grid;
        grid-template-columns: 1fr 2fr;
        gap: 2rem;
        height: calc(100vh - 4rem);
    }

    .chat-sidebar {
        display: flex !important;
        flex-direction: column;
        max-width: 300px;
        border-right: 1px solid var(--border);
        overflow-y: auto;
    }

    .chat-main {
        display: flex;
        flex-direction: column;
        flex: 1;
    }

    .chat-messages {
        flex: 1;
        overflow-y: auto;
    }

    .chat-input-area {
        position: relative;
        background: transparent;
        border: none;
        padding: 1rem 0;
        margin-top: 1rem;
    }

    /* Desktop dashboard - multi-panel */
    .dashboard-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .dashboard-panel {
        grid-column: span 1;
        padding: 2rem;
        background: var(--surface);
        border-radius: var(--radius);
        border: 1px solid var(--border);
    }

    .dashboard-panel.wide {
        grid-column: span 2;
    }

    .dashboard-panel.full {
        grid-column: span 4;
    }

    /* Desktop split-pane layout */
    .split-pane {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        height: 100%;
    }

    .split-pane-left,
    .split-pane-right {
        overflow-y: auto;
    }

    /* Desktop navigation breadcrumbs */
    .breadcrumb {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 2rem;
        font-size: 0.95rem;
    }

    .breadcrumb-item {
        color: var(--text-muted);
        text-decoration: none;
        transition: color 0.2s ease;
    }

    .breadcrumb-item:hover {
        color: var(--text-main);
    }

    .breadcrumb-item.active {
        color: var(--text-main);
        font-weight: 600;
    }

    .breadcrumb-separator {
        color: var(--text-muted);
    }

    /* Desktop keyboard shortcuts hint */
    .keyboard-hint {
        display: inline-block;
        font-size: 0.75rem;
        background: var(--surface-2);
        padding: 0.25rem 0.5rem;
        border-radius: 4px;
        color: var(--text-muted);
        margin-left: 0.5rem;
        font-family: monospace;
    }

    /* Desktop drag & drop zones */
    .drag-drop-zone {
        border: 2px dashed var(--border);
        border-radius: var(--radius);
        padding: 2rem;
        text-align: center;
        transition: all 0.2s ease;
        cursor: pointer;
    }

    .drag-drop-zone:hover {
        border-color: var(--accent);
        background: var(--accent-glow);
    }

    .drag-drop-zone.active {
        border-color: var(--accent);
        background: var(--accent-glow);
    }

    /* Desktop context menus */
    .context-menu {
        position: absolute;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-sm);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        z-index: 2000;
        min-width: 160px;
    }

    .context-menu-item {
        display: block;
        padding: 0.75rem 1rem;
        color: var(--text-main);
        text-decoration: none;
        cursor: pointer;
        transition: background 0.2s ease;
        border: none;
        background: transparent;
        width: 100%;
        text-align: left;
        font-size: 0.95rem;
    }

    .context-menu-item:hover {
        background: var(--surface-2);
    }

    .context-menu-divider {
        height: 1px;
        background: var(--border);
        margin: 0.5rem 0;
    }

    /* Desktop tabs */
    .tab-navigation {
        display: flex;
        gap: 0;
        border-bottom: 1px solid var(--border);
        margin-bottom: 2rem;
    }

    .tab-item {
        padding: 1rem 1.5rem;
        color: var(--text-muted);
        text-decoration: none;
        cursor: pointer;
        border-bottom: 3px solid transparent;
        transition: all 0.2s ease;
        font-weight: 500;
    }

    .tab-item:hover {
        color: var(--text-main);
        background: var(--surface-2);
    }

    .tab-item.active {
        color: var(--accent);
        border-bottom-color: var(--accent);
    }

    /* Desktop animations */
    @media (prefers-reduced-motion: no-preference) {
        .card {
            animation: fadeIn 0.3s ease;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
    }

    /* Desktop scrollbar styling */
    ::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }

    ::-webkit-scrollbar-track {
        background: transparent;
    }

    ::-webkit-scrollbar-thumb {
        background: var(--border);
        border-radius: 4px;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: var(--border-strong);
    }

    /* Desktop multi-monitor support */
    @media (min-width: 2560px) {
        .main-content {
            max-width: 1600px;
            margin: 0 auto;
        }

        .content-section {
            max-width: 1600px;
        }

        .dashboard-grid {
            grid-template-columns: repeat(6, 1fr);
        }
    }
}

/* Tablet to Desktop transition (1024px - 1199px) */
@media (min-width: 1024px) and (max-width: 1199px) {
    :root {
        --sidebar-width: 240px;
    }

    .dashboard-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .adaptive-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Large Desktop (1200px+) */
@media (min-width: 1200px) {
    :root {
        --sidebar-width: 280px;
    }

    .responsive-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .dashboard-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Extra Large Desktop (1920px+) */
@media (min-width: 1920px) {
    :root {
        --sidebar-width: 300px;
        --spacing: 2rem;
    }

    .main-content {
        padding: 3rem;
    }

    .content-section {
        max-width: 1600px;
        padding: 4rem 3rem;
    }

    .dashboard-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 2.5rem;
    }

    /* Larger typography for ultra-wide screens */
    h1 {
        font-size: 4rem;
    }

    h2 {
        font-size: 2.5rem;
    }
}

/* High DPI displays (Retina) */
@media (-webkit-min-device-pixel-ratio: 2) {
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Print styles - hide sidebar UI */
@media print {
    .sidebar {
        display: none !important;
    }

    .main-content {
        padding: 0 !important;
        margin: 0 !important;
    }
}