:root {
    --bg-color: #050b14;
    --accent-color: #00f2ff;
    --text-color: #e0faff;
    --header-bg: #0a1622;
    --card-bg: #0f2133;
    --neon-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
    --aurabesh-font: 'Rajdhani', sans-serif;
    --tech-font: 'Orbitron', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--aurabesh-font);
    overflow-x: hidden;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
    z-index: 1000;
}

header {
    background-color: var(--header-bg);
    border-bottom: 2px solid var(--accent-color);
    box-shadow: var(--neon-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
}

.logo {
    font-family: var(--tech-font);
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 2px;
}

.logo .kyber { color: #fff; }
.logo .one { color: var(--accent-color); }
.logo .news-tag {
    display: block;
    font-size: 0.6rem;
    color: var(--accent-color);
    margin-top: -5px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin: 0 1.5rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s;
}

nav ul li a:hover, nav ul li a.active {
    color: var(--accent-color);
    text-shadow: var(--neon-shadow);
}

.date-ticker {
    font-size: 0.9rem;
    font-family: var(--tech-font);
}

.breaking-bar {
    display: flex;
    background: #c00;
    height: 30px;
    align-items: center;
    overflow: hidden;
}

.breaking-label {
    background: #000;
    color: #fff;
    padding: 0 1rem;
    font-weight: bold;
    height: 100%;
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    z-index: 2;
}

.ticker-wrap {
    flex-grow: 1;
}

.ticker {
    display: inline-block;
    white-space: nowrap;
    animation: ticker 30s linear infinite;
    color: #fff;
    font-weight: 500;
}

.ticker-item {
    display: inline-block;
    padding: 0 2rem;
}

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

main {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 2rem;
    padding: 2rem 5%;
}

.section-title {
    font-family: var(--tech-font);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
    padding-right: 2rem;
}

.hero-story {
    margin-bottom: 3rem;
}

.hero-image {
    background-color: #1a1a1a;
    background-size: cover;
    background-position: center;
    height: 450px;
    position: relative;
    border: 1px solid var(--accent-color);
    box-shadow: inset 0 0 100px rgba(0,0,0,0.8);
    display: flex;
    align-items: flex-end;
}

.hero-content {
    background: linear-gradient(transparent, rgba(0,0,0,0.95));
    padding: 2.5rem;
    width: 100%;
}

.hero-content h1 {
    font-family: var(--tech-font);
    font-size: 3rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px #000;
}

.category {
    background: var(--accent-color);
    color: #000;
    padding: 2px 8px;
    font-size: 0.7rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 10px;
}

.read-more {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 10px 25px;
    margin-top: 20px;
    cursor: pointer;
    font-family: var(--tech-font);
    transition: all 0.3s;
    font-size: 0.9rem;
}

.read-more:hover {
    background: var(--accent-color);
    color: #000;
    box-shadow: var(--neon-shadow);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.news-card {
    background: var(--card-bg);
    border: 1px solid rgba(0, 242, 255, 0.2);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: var(--neon-shadow);
}

.card-img {
    height: 180px;
    background-color: #222;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid rgba(0, 242, 255, 0.1);
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
}

.card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.sectors-section {
    margin-bottom: 3rem;
}

.sector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.sector-card {
    height: 150px;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(0, 242, 255, 0.3);
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.sector-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    transition: background 0.3s;
}

.sector-card:hover::before {
    background: rgba(0, 242, 255, 0.2);
}

.sector-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: rgba(10, 22, 34, 0.8);
    backdrop-filter: blur(5px);
}

.sector-info h3 {
    font-family: var(--tech-font);
    font-size: 1rem;
    color: var(--accent-color);
}

.sector-info p {
    font-size: 0.8rem;
    color: #fff;
}

.side-bar {
    display: flex;
    flex-direction: column;
}

.widget {
    background: var(--card-bg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--accent-color);
    box-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.widget h4 {
    font-family: var(--tech-font);
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 242, 255, 0.2);
    padding-bottom: 0.5rem;
    color: var(--accent-color);
}

.market-item, .weather-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.up { color: #0f0; }
.down { color: #f00; }
.temp { color: var(--accent-color); font-weight: bold; }

.bounty-card {
    border: 1px dashed var(--accent-color);
    padding: 0.5rem;
    margin-bottom: 1rem;
    background: rgba(0,0,0,0.3);
}

.bounty-image {
    height: 200px;
    background-color: #222;
    margin-bottom: 1rem;
    background-size: cover;
    background-position: center;
}

.bounty-details {
    text-align: center;
}

.bounty-name {
    font-family: var(--tech-font);
    font-weight: bold;
    margin-bottom: 5px;
    color: #fff;
}

.bounty-reward {
    color: #ffd700;
    font-weight: bold;
    font-size: 1.1rem;
}

.bounty-status {
    font-size: 0.8rem;
    color: #f00;
    margin-top: 5px;
}

.bounty-nav {
    display: flex;
    justify-content: space-between;
}

.bounty-nav button {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 5px 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.bounty-nav button:hover {
    background: var(--accent-color);
    color: #000;
}

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

.event-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 242, 255, 0.1);
    font-size: 0.9rem;
}

.live-feeds {
    margin-bottom: 3rem;
}

.feed-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1.5rem;
    background: #000;
    padding: 1.5rem;
    border: 1px solid var(--accent-color);
}

.scanner-widget {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    border-right: 1px solid rgba(0, 242, 255, 0.2);
    padding-right: 1.5rem;
}

.scanner-circle {
    width: 150px;
    height: 150px;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle, rgba(0, 242, 255, 0.1) 0%, transparent 70%);
}

.scanner-sweep {
    position: absolute;
    width: 100%;
    height: 100%;
    background: conic-gradient(from 0deg, var(--accent-color) 0deg, transparent 90deg);
    animation: sweep 3s linear infinite;
    transform-origin: center;
    opacity: 0.5;
}

.scanner-blip {
    position: absolute;
    width: 5px;
    height: 5px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 5px #fff;
    animation: pulse 1.5s ease-out infinite;
}

.scanner-data {
    font-family: var(--tech-font);
    font-size: 0.7rem;
    color: var(--accent-color);
    width: 100%;
    margin-bottom: 1rem;
}

.cam-selector {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

.cam-btn {
    flex: 1;
    background: transparent;
    border: 1px solid rgba(0, 242, 255, 0.3);
    color: var(--accent-color);
    font-family: var(--tech-font);
    font-size: 0.6rem;
    padding: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.cam-btn:hover {
    border-color: var(--accent-color);
    background: rgba(0, 242, 255, 0.1);
}

.cam-btn.active {
    background: var(--accent-color);
    color: #000;
}

.feed-display {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
    border: 1px solid rgba(0, 242, 255, 0.3);
}

.feed-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    font-family: var(--tech-font);
    font-size: 0.8rem;
    color: #fff;
    text-shadow: 1px 1px 2px #000;
}

.rec {
    color: #f00;
    animation: blink 1s step-end infinite;
}

@keyframes sweep {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(3); opacity: 0; }
}

@keyframes blink {
    50% { opacity: 0; }
}

.archive-section {
    margin-bottom: 3rem;
    background: rgba(10, 22, 34, 0.5);
    padding: 1.5rem;
    border: 1px solid rgba(0, 242, 255, 0.1);
}

.archive-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.archive-item {
    border-bottom: 1px solid rgba(0, 242, 255, 0.1);
    padding-bottom: 1rem;
    transition: all 0.3s;
}

.archive-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.archive-item:hover {
    padding-left: 10px;
    border-left: 2px solid var(--accent-color);
}

.archive-date {
    font-family: var(--tech-font);
    font-size: 0.8rem;
    color: var(--accent-color);
    margin-right: 10px;
}

.archive-category {
    font-size: 0.7rem;
    background: rgba(0, 242, 255, 0.1);
    padding: 2px 5px;
    border-radius: 2px;
}

.archive-item h3 {
    font-size: 1.1rem;
    margin: 5px 0;
}

.archive-item p {
    font-size: 0.9rem;
    color: rgba(224, 250, 255, 0.8);
}

footer {
    border-top: 2px solid var(--accent-color);
    background-color: var(--header-bg);
    padding: 3rem 5%;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: rgba(224, 250, 255, 0.7);
}

.footer-logo .kyber { color: #fff; font-weight: bold; font-family: var(--tech-font); }
.footer-logo .one { color: var(--accent-color); font-weight: bold; font-family: var(--tech-font); }

.social-links span {
    margin-left: 1.5rem;
    cursor: pointer;
    font-weight: bold;
}

.social-links span:hover {
    color: var(--accent-color);
}

/* Specific background images */
#hero-img { background-image: url('images/hero.png'); }
#thumb-1 { background-image: url('images/nevarro.png'); }
#thumb-2 { background-image: url('images/holonet_new.png'); }
#thumb-3 { background-image: url('images/underworld.png'); }
.bounty-placeholder { background-image: url('images/bounty.png'); background-size: cover; }

@media (max-width: 1100px) {
    main { grid-template-columns: 1fr; }
    .side-bar { 
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .side-bar { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 2rem; }
    .top-nav { flex-direction: column; gap: 1rem; }
}
