/* Ten Kings Monitor - Asifah Analytics Theme */

@import url('footer-styles.css');

:root {
    /* Asifah Blues */
    --primary-cyan: #00d4ff;
    --primary-blue: #0099cc;
    --dark-blue: #001a33;
    --darker-blue: #000d1a;
    --accent-teal: #00ffcc;
    
    /* Grays */
    --text-white: #ffffff;
    --text-gray: #b0b0b0;
    --bg-card: rgba(0, 26, 51, 0.8);
    --bg-card-hover: rgba(0, 26, 51, 0.95);
    
    /* Status Colors */
    --monitoring-blue: #00d4ff;
    --watch-yellow: #ffd700;
    --alert-orange: #ff8c00;
    --significant-red: #ff3333;
    
    /* Tier Colors */
    --tier1-red: #ff0000;
    --tier2-orange: #ff8800;
    --tier3-yellow: #ffdd00;
    --tier4-gray: #888888;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--darker-blue);
    color: var(--text-white);
    overflow-x: hidden;
    position: relative;
}

/* Starfield Background */
.starfield-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: radial-gradient(ellipse at bottom, #001a33 0%, #000000 100%);
}

.starfield-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #eee, transparent),
        radial-gradient(2px 2px at 60px 70px, #fff, transparent),
        radial-gradient(1px 1px at 50px 50px, #ddd, transparent),
        radial-gradient(1px 1px at 130px 80px, #fff, transparent),
        radial-gradient(2px 2px at 90px 10px, #fff, transparent);
    background-size: 200px 200px;
    animation: twinkle 3s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* Asifah Watermark */
.asifah-watermark {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    opacity: 0.05;
    z-index: -1;
    pointer-events: none;
    background-image: url('../images/asifah-logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Header */
header {
    text-align: center;
    padding: 3rem 1rem 2rem;
    background: linear-gradient(180deg, rgba(0, 26, 51, 0.9) 0%, rgba(0, 13, 26, 0.7) 100%);
    border-bottom: 2px solid var(--primary-cyan);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 0.3rem;
    color: var(--text-white);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
}

header .subtitle {
    font-size: 1.3rem;
    color: var(--primary-cyan);
    letter-spacing: 0.15rem;
    margin-bottom: 0.5rem;
}

header .tagline {
    font-size: 1rem;
    color: var(--text-gray);
    font-style: italic;
    margin-top: 1rem;
}

/* Main Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Scan Button */
.scan-section {
    text-align: center;
    margin: 2rem 0;
}

.scan-button {
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-blue) 100%);
    color: var(--darker-blue);
    font-size: 1.2rem;
    font-weight: 700;
    padding: 1rem 3rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
    transition: all 0.3s ease;
}

.scan-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 212, 255, 0.6);
}

.scan-button:active {
    transform: translateY(0);
}

.scan-button.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

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

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.card:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary-cyan);
    box-shadow: 0 6px 25px rgba(0, 212, 255, 0.4);
}

.card-title {
    font-size: 1.5rem;
    color: var(--primary-cyan);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 212, 255, 0.3);
}

/* Rankings Table */
.rankings-table {
    width: 100%;
    border-collapse: collapse;
}

.rankings-table th {
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary-cyan);
    padding: 0.75rem;
    text-align: left;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
}

.rankings-table td {
    padding: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.rankings-table tr:hover {
    background: rgba(0, 212, 255, 0.05);
}

/* Top 10 Highlight */
.rankings-table tr.top-ten {
    background: rgba(0, 212, 255, 0.08);
    border-left: 3px solid var(--primary-cyan);
}

.rankings-table tr.top-ten td:first-child {
    color: var(--primary-cyan);
    font-weight: 700;
}

/* Lower Ranks (11-22) */
.rankings-table tr.lower-ranks {
    opacity: 0.7;
}

.rankings-table tr.lower-ranks:hover {
    opacity: 1;
}

.rank-change {
    display: inline-block;
    margin-left: 0.5rem;
    font-size: 0.9rem;
}

.rank-change.up {
    color: #00ff00;
}

.rank-change.down {
    color: #ff0000;
}

.rank-change.same {
    color: #888888;
}

/* Alliance Cards */
.alliance-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.alliance-item {
    background: rgba(0, 26, 51, 0.6);
    border-left: 4px solid var(--tier1-red);
    padding: 1rem;
    border-radius: 6px;
}

.alliance-item.tier-2 {
    border-left-color: var(--tier2-orange);
}

.alliance-item.tier-3 {
    border-left-color: var(--tier3-yellow);
}

.alliance-item.tier-4 {
    border-left-color: var(--tier4-gray);
}

.alliance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.alliance-tier {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
}

.alliance-tier.tier-1 {
    background: var(--tier1-red);
    color: white;
}

.alliance-tier.tier-2 {
    background: var(--tier2-orange);
    color: white;
}

.alliance-tier.tier-3 {
    background: var(--tier3-yellow);
    color: var(--darker-blue);
}

.alliance-tier.tier-4 {
    background: var(--tier4-gray);
    color: white;
}

/* Prophetic Significance Meter */
.prophetic-meter {
    margin: 3rem 0 2rem;
    padding: 2rem;
    background: var(--bg-card);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
}

.meter-title {
    text-align: center;
    font-size: 1.3rem;
    color: var(--primary-cyan);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
}

.meter-progress {
    position: relative;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 1rem;
}

.meter-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--monitoring-blue) 0%, var(--watch-yellow) 33%, var(--alert-orange) 66%, var(--significant-red) 100%);
    border-radius: 20px;
    transition: width 1s ease;
    position: relative;
    overflow: hidden;
}

.meter-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.meter-labels {
    display: flex;
    justify-content: space-between;
    padding: 0 0.5rem;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.meter-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meter-icon {
    font-size: 1.2rem;
}

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

.indicator-item {
    background: rgba(0, 212, 255, 0.1);
    padding: 0.75rem;
    border-radius: 6px;
    border-left: 3px solid var(--primary-cyan);
    font-size: 0.9rem;
}

.indicator-item.active {
    border-left-color: var(--alert-orange);
    background: rgba(255, 140, 0, 0.1);
}

/* Read Article Button */
.read-article-btn {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: linear-gradient(135deg, var(--primary-cyan), var(--primary-blue));
    color: var(--darker-blue);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.read-article-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.4);
}

/* Network Graph Container */
.network-graph {
    width: 100%;
    height: 600px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-cyan);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.5rem;
    }
    
    header .subtitle {
        font-size: 1rem;
    }
    
    .scan-button {
        width: 100%;
    }
}
