/* ============================================================
   GAMELICENSE.INFO - STYLES
   Corporate-Industrial Dashboard for Game Licensing
   ============================================================ */

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

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

html {
    font-size: 16px;
    line-height: 1.6;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #0A1628;
    color: #D6E0EB;
    overflow: hidden;
    height: 100vh;
}

/* ============================================================
   BOOT SEQUENCE OVERLAY
   ============================================================ */

.boot-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0A1628;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.6s ease-out 1.2s;
    pointer-events: none;
}

.boot-overlay.hidden {
    opacity: 0;
}

.boot-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.boot-cursor {
    width: 2px;
    height: 16px;
    background-color: #5B93C4;
    animation: boot-blink 0.53s infinite;
}

@keyframes boot-blink {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}

.boot-text {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.875rem;
    color: #5B93C4;
    white-space: pre;
    letter-spacing: 0.05em;
    line-height: 1.8;
}

/* ============================================================
   MAIN LAYOUT - SIDEBAR + CONTENT
   ============================================================ */

.main-container {
    display: grid;
    grid-template-columns: 240px 1fr;
    width: 100%;
    height: 100vh;
    gap: 0;
}

/* ============================================================
   SIDEBAR NAVIGATION
   ============================================================ */

.sidebar {
    background-color: #0B1628;
    border-right: 1px solid #1E3250;
    padding: 24px 0;
    overflow-y: auto;
    grid-column: 1;
}

.sidebar-header {
    padding: 0 16px 24px 16px;
    border-bottom: 1px solid #1E3250;
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    color: #D6E0EB;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.sidebar-nav {
    padding: 24px 0;
}

.nav-section {
    padding: 0 16px 24px 16px;
    border-bottom: 1px solid #1E3250;
}

.nav-section:last-child {
    border-bottom: none;
}

.nav-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.625rem;
    font-weight: 700;
    color: #7B8FA8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.nav-list {
    list-style: none;
}

.nav-item {
    margin-bottom: 8px;
}

.nav-item a {
    display: block;
    padding: 8px 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: #7B8FA8;
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: all 0.2s ease;
}

.nav-item a:hover {
    color: #D6E0EB;
    border-left-color: #5B93C4;
    background-color: rgba(91, 147, 196, 0.1);
    transform: translateX(4px);
}

/* ============================================================
   MAIN CONTENT AREA
   ============================================================ */

.main-content {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background-color: #0F1F35;
}

/* ============================================================
   HERO SECTION - NETWORK CANVAS
   ============================================================ */

.hero-section {
    position: relative;
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #0F1F35 0%, #1A2940 100%);
    border-bottom: 1px solid #1E3250;
    flex-shrink: 0;
}

#networkCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 24px;
    left: 24px;
    pointer-events: none;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #D6E0EB;
    letter-spacing: -0.01em;
}

/* ============================================================
   DASHBOARD PANELS
   ============================================================ */

.dashboard-section {
    padding: 24px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    flex: 1;
}

.panel {
    background-color: #1A2940;
    border: 1px solid #2A3F5F;
    border-radius: 2px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.panel:hover {
    border-color: #5B93C4;
    background-color: #1E3250;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid #2A3F5F;
}

.panel-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #D6E0EB;
    letter-spacing: -0.005em;
}

.panel-controls {
    display: flex;
    gap: 8px;
}

.btn-icon {
    background: none;
    border: none;
    color: #7B8FA8;
    font-size: 1rem;
    cursor: pointer;
    padding: 4px;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    color: #5B93C4;
    transform: scale(1.15);
}

.panel-body {
    padding: 16px;
    flex: 1;
    overflow-y: auto;
}

/* ============================================================
   METRICS & STATUS
   ============================================================ */

.metric-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.metric {
    padding: 12px;
    background-color: rgba(91, 147, 196, 0.05);
    border: 1px solid rgba(91, 147, 196, 0.15);
    border-radius: 1px;
    text-align: center;
}

.metric-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #C9A84C;
    margin-bottom: 4px;
}

.metric-label {
    font-size: 0.75rem;
    color: #7B8FA8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(42, 63, 95, 0.5);
}

.status-item:last-child {
    border-bottom: none;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-indicator.active {
    background-color: #5B93C4;
    box-shadow: 0 0 8px #5B93C4;
}

.status-indicator.pending {
    background-color: #C9A84C;
    box-shadow: 0 0 8px #C9A84C;
}

.status-indicator.expiring {
    background-color: #E8856A;
    box-shadow: 0 0 8px #E8856A;
}

.status-indicator.expired {
    background-color: #6B7A8C;
}

.status-text {
    font-size: 0.875rem;
    color: #D6E0EB;
    flex: 1;
}

/* ============================================================
   RELATIONSHIPS
   ============================================================ */

.relationship-item {
    padding: 12px;
    background-color: rgba(91, 147, 196, 0.05);
    border: 1px solid rgba(91, 147, 196, 0.15);
    border-radius: 1px;
    margin-bottom: 8px;
}

.relationship-item:last-child {
    margin-bottom: 0;
}

.relationship-nodes {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.875rem;
}

.node-label {
    padding: 4px 8px;
    background-color: rgba(201, 168, 76, 0.1);
    color: #C9A84C;
    border-radius: 1px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
}

.relationship-arrow {
    color: #5B93C4;
    font-weight: bold;
}

.relationship-type {
    font-size: 0.75rem;
    color: #7B8FA8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================================
   ENTITY DETAILS
   ============================================================ */

.entity-card {
    padding: 12px;
    background-color: rgba(91, 147, 196, 0.05);
    border: 1px solid rgba(91, 147, 196, 0.15);
    border-radius: 1px;
}

.entity-header {
    margin-bottom: 12px;
}

.entity-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #D6E0EB;
}

.entity-type {
    font-size: 0.75rem;
    color: #7B8FA8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

.entity-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.stat-label {
    color: #7B8FA8;
}

.stat-value {
    color: #C9A84C;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
}

/* ============================================================
   ALERTS
   ============================================================ */

.alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    margin-bottom: 8px;
    background-color: rgba(91, 147, 196, 0.05);
    border-left: 2px solid #5B93C4;
    border-radius: 1px;
}

.alert:last-child {
    margin-bottom: 0;
}

.alert-info {
    border-left-color: #5B93C4;
}

.alert-warning {
    border-left-color: #C9A84C;
}

.alert-status {
    border-left-color: #4A7FB5;
}

.alert-icon {
    flex-shrink: 0;
    font-weight: bold;
    color: #C9A84C;
}

.alert-info .alert-icon {
    color: #5B93C4;
}

.alert-status .alert-icon {
    color: #4A7FB5;
}

.alert-text {
    font-size: 0.875rem;
    color: #D6E0EB;
}

/* ============================================================
   SCROLLBAR STYLING
   ============================================================ */

.sidebar::-webkit-scrollbar,
.panel-body::-webkit-scrollbar,
.main-content::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track,
.panel-body::-webkit-scrollbar-track,
.main-content::-webkit-scrollbar-track {
    background-color: rgba(42, 63, 95, 0.3);
}

.sidebar::-webkit-scrollbar-thumb,
.panel-body::-webkit-scrollbar-thumb,
.main-content::-webkit-scrollbar-thumb {
    background-color: #5B93C4;
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover,
.panel-body::-webkit-scrollbar-thumb:hover,
.main-content::-webkit-scrollbar-thumb:hover {
    background-color: #6BA3D6;
}

/* ============================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================ */

@media (max-width: 1024px) {
    .main-container {
        grid-template-columns: 200px 1fr;
    }

    .sidebar {
        padding: 16px 0;
    }

    .dashboard-section {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .main-container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }

    .dashboard-section {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .hero-section {
        height: 250px;
    }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

.panel {
    animation: slideUp 0.4s ease-out forwards;
}

.panel:nth-child(1) {
    animation-delay: 0.1s;
}

.panel:nth-child(2) {
    animation-delay: 0.2s;
}

.panel:nth-child(3) {
    animation-delay: 0.3s;
}

.panel:nth-child(4) {
    animation-delay: 0.4s;
}

.panel:nth-child(5) {
    animation-delay: 0.5s;
}

.panel:nth-child(6) {
    animation-delay: 0.6s;
}

/* ============================================================
   UTILITY COLORS (Design palette coverage)
   ============================================================ */

/* Text Secondary - Burnished Steel #8FA3B8 */
.text-burnished {
    color: #8FA3B8;
}

/* Accent Primary - Signal Blue #4A7FB5 */
.accent-signal {
    color: #4A7FB5;
}

/* Status Expired - Muted Gray #4A5568 */
.status-expired-gray {
    color: #4A5568;
}

/* Additional palette reference colors */
.color-8FA3B8 {
    color: #8FA3B8;
}

.color-4A5568 {
    color: #4A5568;
}

.color-C45A5A {
    color: #C45A5A;
}

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

@media print {
    .boot-overlay,
    .panel-controls {
        display: none;
    }
}
