/* KotH Specific Styles */

:root {
    --koth-primary: #00f2ff;
    --koth-secondary: #bc00ff;
    --koth-accent: #ff0055;
    --koth-bg: #050508;
    --koth-terminal-bg: rgba(10, 10, 15, 0.85);
}

body.koth-page {
    background-color: var(--koth-bg);
    color: #e0e0e0;
    overflow-x: hidden;
}

/* Matrix Canvas Background */
#matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 0.15;
}

/* Custom Selection */
::selection {
    background: var(--koth-primary);
    color: black;
}

/* Hero Section */
.hero-koth {
    padding: 10rem 0 6rem;
    text-align: center;
    position: relative;
}

.hero-status-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid #00ff88;
    color: #00ff88;
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-koth .hero-title {
    line-height: 1.1;
    letter-spacing: -0.01em; /* Even more breathing room */
    margin-bottom: 3rem;
}

.hero-koth .text-gradient {
    padding: 0 0.15em;
}

.hero-koth .hero-prefix {
    font-size: 1.2rem;
    letter-spacing: 0.4em;
    color: var(--koth-primary);
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
}

/* Countdown */
.countdown-container {
    max-width: 600px;
    margin: 0 auto 3rem;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 242, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.countdown-label {
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time-block span {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1;
    color: white;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.time-block small {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 0.5rem;
    letter-spacing: 1px;
}

.hero-meta {
    font-family: 'Fira Code', monospace;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 2;
}

.hero-meta code {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    color: var(--koth-primary);
}

/* Terminal Window */
.mission {
    padding: 6rem 0;
}

.terminal-window {
    max-width: 800px;
    margin: 0 auto;
    background: var(--koth-terminal-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-header .dots {
    display: flex;
    gap: 8px;
}

.terminal-header .dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-header .dots span:nth-child(1) { background: #ff5f56; }
.terminal-header .dots span:nth-child(2) { background: #ffbd2e; }
.terminal-header .dots span:nth-child(3) { background: #27c93f; }

.terminal-title {
    margin: 0 auto;
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.7;
}

.terminal-content {
    padding: 2rem;
    font-family: 'Fira Code', monospace;
    font-size: 1rem;
    line-height: 1.6;
}

.terminal-content p {
    margin-bottom: 1.5rem;
}

.terminal-content code {
    color: var(--koth-accent);
}

/* Rewards Grid */
.rewards {
    padding: 8rem 0;
}

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

.reward-card {
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.4s ease;
}

.reward-card:hover {
    transform: translateY(-10px);
    border-color: var(--koth-primary);
    box-shadow: 0 15px 40px rgba(0, 242, 255, 0.1);
}

.reward-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.reward-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.reward-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.reward-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 242, 255, 0.1);
    color: var(--koth-primary);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    border: 1px solid rgba(0, 242, 255, 0.2);
}

/* Deployment Section */
.deployment {
    padding: 8rem 0;
    background: rgba(255, 255, 255, 0.01);
}

.deployment-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

.steps-list {
    margin: 2rem 0;
    padding-left: 1.5rem;
}

.steps-list li {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.steps-list a {
    color: var(--koth-primary);
    text-decoration: underline;
}

.ip-box {
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
    background: rgba(0, 0, 0, 0.3);
}

.ip-box .label {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--text-muted);
}

.ip-box code {
    font-size: 1.4rem;
    font-family: 'Fira Code', monospace;
    color: white;
    flex-grow: 1;
}

.copy-btn {
    background: var(--koth-primary);
    color: black;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.copy-btn:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Network Visual */
.deployment-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.network-node {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    z-index: 2;
}

.node-icon { font-size: 2rem; }

.network-line {
    width: 150px;
    height: 2px;
    background: linear-gradient(90deg, var(--koth-primary), var(--koth-accent));
    position: relative;
}

.network-line::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    top: -4px;
    left: 0;
    animation: move-packet 2s infinite linear;
}

@keyframes move-packet {
    0% { left: 0; opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

/* Rules Grid */
.rules {
    padding: 8rem 0;
}

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

.rule-item {
    padding: 2.5rem;
    position: relative;
}

.rule-num {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    opacity: 0.05;
}

.rule-item h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.rule-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.highlight-rule {
    border-color: var(--koth-accent);
    background: rgba(255, 0, 85, 0.05);
}

@media (min-width: 768px) {
    .highlight-rule {
        grid-column: 1 / -1;
    }
}

/* Diary Box */
.diary {
    padding-bottom: 10rem;
}

.diary-box {
    padding: 4rem;
    border-radius: var(--radius-lg);
    text-align: center;
}

.diary-box h2 {
    margin-bottom: 3rem;
}

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

.diary-step {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.diary-step:hover .step-icon {
    transform: rotate(10deg) scale(1.1);
    background: rgba(255, 255, 255, 0.08);
}

/* Responsive Fixes */
@media (max-width: 768px) {
    .hero-koth { padding: 8rem 0 4rem; }
    .countdown-timer { gap: 1rem; }
    .diary-box { padding: 2rem; }
}

.logo-badge {
    font-size: 0.6rem;
    background: var(--koth-accent);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    vertical-align: middle;
    margin-left: 8px;
    letter-spacing: 1px;
}

.teacher-note {
    margin-top: 4rem;
    padding: 2rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border-left: 4px solid var(--koth-primary);
    text-align: left;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.teacher-note p {
    margin-bottom: 0;
}
