/* ============================================
   SENTINELKEY - Page-Specific Styles
   ============================================ */

/* === LANDING PAGE === */
.landing-hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    overflow: hidden;
}

.landing-shield-icon {
    padding: 1rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    border: 2px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.3);
    animation: pulse 2s infinite;
    color: var(--color-emerald);
    display: inline-flex;
    margin-bottom: 1.5rem;
}

.landing-title {
    font-size: 2.5rem;
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.025em;
}

@media (min-width: 640px) {
    .landing-title { font-size: 3.75rem; }
}

.landing-subtitle {
    margin-top: 1rem;
    font-size: 1.125rem;
    color: #d1d5db;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.landing-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    width: 100%;
    max-width: 64rem;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .landing-stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.landing-stat-box {
    background: rgba(3, 7, 18, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(31, 41, 55, 1);
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
}

.landing-stat-value {
    font-size: 1.5rem;
    font-family: var(--font-display);
    font-weight: 700;
}

.landing-stat-label {
    font-size: 10px;
    color: var(--color-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: var(--font-mono);
    margin-top: 0.25rem;
}

.landing-features {
    display: grid;
    gap: 1.5rem;
    padding: 0 1rem;
    width: 100%;
    max-width: 64rem;
}

@media (min-width: 768px) {
    .landing-features { grid-template-columns: repeat(3, 1fr); }
}

.feature-card {
    transition: transform 0.3s;
}
.feature-card:hover { transform: scale(1.02); }

/* === LOGIN / REGISTER FORMS === */
.auth-container {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.auth-box {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 28rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
    background: rgba(17, 24, 39, 0.8);
    padding: 2rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 0 40px rgba(3, 7, 18, 0.8);
}

/* === DASHBOARD === */
.dashboard-stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .dashboard-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .dashboard-stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.dashboard-mid-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 1024px) {
    .dashboard-mid-grid { grid-template-columns: 1fr 2fr; }
}

.telemetry-feed { max-height: 320px; overflow-y: auto; padding-right: 4px; }

.telemetry-entry {
    padding: 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition-smooth);
}
.telemetry-entry.safe { background: rgba(3, 7, 18, 0.6); border: 1px solid rgba(31, 41, 55, 0.8); color: #d1d5db; }
.telemetry-entry.suspicious { background: rgba(120, 53, 15, 0.3); border: 1px solid rgba(245, 158, 11, 0.3); color: #fcd34d; }
.telemetry-entry.high-risk { background: rgba(127, 29, 29, 0.4); border: 1px solid rgba(239, 68, 68, 0.3); color: #fca5a5; box-shadow: 0 0 10px rgba(239, 68, 68, 0.1); }

.dot-indicator {
    width: 6px; height: 6px; border-radius: 50%; display: inline-block;
}
.dot-indicator.safe { background: var(--color-emerald); }
.dot-indicator.suspicious { background: var(--color-amber); }
.dot-indicator.high-risk { background: var(--color-red); }

.waiting-pulse {
    width: 10px; height: 10px; background: var(--color-red);
    border-radius: 50%; animation: ping 1s infinite;
    margin-bottom: 0.5rem;
}

.chart-container { height: 320px; width: 100%; margin-top: 0.5rem; }

/* === MONITOR PAGE === */
.monitor-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 1024px) {
    .monitor-split { grid-template-columns: 2fr 1fr; }
    .monitor-split.no-detail { grid-template-columns: 1fr; }
}

.detail-panel {
    animation: slide-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.detail-header {
    border-radius: 4px;
    padding: 1rem;
}
.detail-header.high-risk { background: rgba(127, 29, 29, 0.2); border: 1px solid rgba(239, 68, 68, 0.3); }
.detail-header.suspicious { background: rgba(23, 37, 84, 0.2); border: 1px solid rgba(59, 130, 246, 0.3); }
.detail-header.safe { background: rgba(3, 7, 18, 0.6); border: 1px solid rgba(31, 41, 55, 1); }

.detail-info-grid {
    background: rgba(3, 7, 18, 0.5);
    padding: 1rem;
    border: 1px solid rgba(17, 24, 39, 1);
    border-radius: 4px;
}

/* === AI ANALYSIS === */
.anomaly-dial {
    position: relative;
    width: 160px; height: 160px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    border: 4px solid rgba(17, 24, 39, 1);
    background: var(--color-bg);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}

.anomaly-pulse-ring {
    position: absolute; inset: 0; border-radius: 50%;
    border: 2px solid transparent;
    animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
    opacity: 0.1;
}
.anomaly-pulse-ring.danger { border-color: var(--color-red); }
.anomaly-pulse-ring.safe { border-color: var(--color-emerald); }

.terminal-console {
    background: rgba(3, 7, 18, 0.9);
    border: 1px solid rgba(17, 24, 39, 1);
    border-radius: 4px;
    padding: 1rem;
    height: 220px;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--color-emerald);
}

.terminal-line {
    line-height: 1.625;
    border-left: 2px solid rgba(16, 185, 129, 0.4);
    padding-left: 8px;
}
.terminal-line.critical { border-color: var(--color-red); color: var(--color-red); background: rgba(127, 29, 29, 0.1); }
.terminal-line.parser { border-color: var(--color-blue); color: #93c5fd; }
.terminal-line.safe { border-color: rgba(16, 185, 129, 0.4); color: rgba(16, 185, 129, 0.9); }

/* === REPORTS === */
.report-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .report-grid { grid-template-columns: 1fr 2fr; }
}

/* === SETTINGS === */
.settings-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .settings-grid { grid-template-columns: 1fr 2fr; }
}

.profile-avatar {
    padding: 1rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--color-emerald);
    display: inline-flex;
}

/* === ADMIN === */
.admin-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 1024px) {
    .admin-grid { grid-template-columns: 1fr 2fr; }
}

.user-card {
    padding: 0.75rem;
    background: rgba(3, 7, 18, 0.6);
    border: 1px solid rgba(17, 24, 39, 1);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.role-toggle-btn {
    padding: 6px;
    border-radius: 4px;
    border: 1px solid;
    cursor: pointer;
    transition: var(--transition-smooth);
    background: transparent;
    display: flex;
}
.role-toggle-btn.promote { border-color: rgba(16, 185, 129, 0.2); color: var(--color-emerald); background: rgba(16, 185, 129, 0.1); }
.role-toggle-btn.promote:hover { background: rgba(16, 185, 129, 0.3); }
.role-toggle-btn.demote { border-color: rgba(245, 158, 11, 0.2); color: var(--color-amber); background: rgba(245, 158, 11, 0.1); }
.role-toggle-btn.demote:hover { background: rgba(245, 158, 11, 0.3); }
.role-toggle-btn:disabled { opacity: 0.2; cursor: not-allowed; }

.audit-entry {
    padding: 0.75rem;
    background: rgba(3, 7, 18, 0.6);
    border: 1px solid rgba(17, 24, 39, 1);
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.audit-logs-container {
    max-height: 360px;
    overflow-y: auto;
    padding-right: 4px;
}

/* === ERROR PAGE === */
.error-page {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}
