/* --- Fonts --- */
@font-face {
    font-family: 'TronAres';
    src: url(TronAres.ttf) format('truetype');
}

/* --- Variables --- */
:root {
    --ares-red: #ff0033;
    --ares-glow: rgba(255, 0, 51, 0.4);
    --bg-black: #050505;
    --text-gray: #e2e8f0;
    --card-bg: rgba(10, 10, 10, 0.8);
}

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

body {
    background-color: var(--bg-black);
    color: var(--text-gray);
    font-family: sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Standardized Font Classes */
.tron-font { 
    font-family: 'TronAres', sans-serif; 
    letter-spacing: 2px; 
}

.comp-font { 
    font-family: 'Space Mono', monospace; 
    letter-spacing: 1px;
    font-size: 1rem; 
    line-height: 1.6;  
    font-weight: 400;
}

.card-text.comp-font {
    font-size: 1rem;
}

.hero-subtitle.comp-font {
    font-size: 1.2rem;
}

/* --- Grid Background --- */
.grid-bg {
    background-image: 
        linear-gradient(to right, rgba(255, 0, 51, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 0, 51, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* --- Navigation --- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 0, 51, 0.3);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo-group { display: flex; align-items: center; gap: 15px; }
.nav-logo { height: 40px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 0.9rem; text-transform: uppercase; }
.nav-links a { color: #9ca3af; text-decoration: none; transition: 0.3s; }
.nav-links a:hover { color: var(--ares-red); }

.nav-btn {
    padding: 8px 16px;
    border: 1px solid var(--ares-red);
    color: var(--ares-red) !important;
}

/* --- Hero --- */
.hero { text-align: center; padding: 100px 20px; }
.presenter-line { font-size: 1.3rem; color: rgba(226, 232, 240, 0.6); margin-bottom: 10px; }
.hero-title { font-size: clamp(3rem, 10vw, 6rem); margin-bottom: 20px; }

/* Subtitle sizing */
.hero-subtitle { 
    font-size: 1.4rem; 
    color: #9ca3af; 
    text-transform: uppercase; 
    max-width: 700px; 
    margin: 0 auto; 
}

/* --- Cards & Grid --- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    margin-bottom: 80px;
}

.ares-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 0, 51, 0.2);
    padding: 40px;
    transition: 0.3s;
}

.ares-card:hover {
    border-color: var(--ares-red);
    box-shadow: 0 0 20px var(--ares-glow);
}

.section-header { display: flex; align-items: center; gap: 15px; margin-bottom: 25px; }
.section-header h2 { color: var(--ares-red); font-size: 1.8rem; }
.header-line { flex-grow: 1; height: 1px; background: rgba(255, 0, 51, 0.2); }

.card-top { display: flex; justify-content: space-between; margin-bottom: 30px; }
.icon-box { background: rgba(255, 0, 51, 0.1); padding: 12px; color: var(--ares-red); }
.icon { width: 32px; height: 32px; }

.label { font-size: 0.85rem; color: #6b7280; text-transform: uppercase; }
.label.active { color: var(--ares-red); }

/* Card Body Text Sizing */
.card-text { 
    font-size: 1.1rem; 
    color: #cbd5e1; 
    margin-bottom: 30px; 
}

.btn-primary {
    display: inline-block;
    background: var(--ares-red);
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    font-size: 1rem;
    box-shadow: 0 0 15px var(--ares-glow);
    transition: 0.3s;
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 25px var(--ares-red); }

/* --- About Section Specific --- */
.about-grid p {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

/* --- Footer --- */
.footer { border-top: 1px solid rgba(255, 0, 51, 0.2); padding: 40px 0; background: black; }
.footer-content {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #6b7280;
}
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: inherit; text-decoration: none; }
.footer-links a:hover { color: var(--ares-red); }

/* --- Animations --- */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
.text-glow { text-shadow: 0 0 15px var(--ares-glow); }

/* --- Workshop Specific Styles --- */
.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.workshop-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-image-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 0, 51, 0.2);
}

.workshop-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.workshop-card:hover .workshop-img {
    transform: scale(1.05);
}

.card-content {
    padding: 25px;
}

.status-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--ares-red);
    color: white;
    font-size: 0.7rem;
    padding: 4px 10px;
    text-transform: uppercase;
    box-shadow: 0 0 10px var(--ares-glow);
}

.status-tag.locked {
    background: #333;
    box-shadow: none;
}

.grayscale {
    filter: grayscale(1) opacity(0.5);
}

.nav-links a.active {
    color: var(--ares-red);
    border-bottom: 1px solid var(--ares-red);
}

.disabled {
    cursor: not-allowed;
}

/* --- Server Page Styles --- */
.server-section { margin-bottom: 60px; }

.server-info-box {
    padding: 30px;
    margin-bottom: 40px;
}

.ip-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.ip-details code {
    display: block;
    font-size: 1.5rem;
    color: var(--ares-red);
    margin-top: 5px;
    text-shadow: 0 0 10px var(--ares-glow);
}

.copy-feedback {
    font-size: 0.8rem;
    color: #10b981;
    opacity: 0;
    transition: 0.3s;
    margin-top: 10px;
}

/* Guide Steps */
.guide-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step {
    display: flex;
    gap: 25px;
    background: rgba(255, 255, 255, 0.02);
    padding: 20px;
    border-left: 3px solid var(--ares-red);
}

.step-num {
    font-size: 2rem;
    color: rgba(255, 0, 51, 0.3);
}

.step-body h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: white;
}

.list-style {
    margin-left: 20px;
    margin-top: 10px;
}

.notice-box {
    margin-top: 15px;
    padding: 15px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fcd34d;
    font-size: 0.9rem;
}

/* Terraria Specific */
.terraria-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 40px;
}

.promo-img {
    width: 100%;
    border-radius: 4px;
    border: 1px solid rgba(255,0,51,0.2);
}

.password-reveal {
    background: #111;
    border: 1px dashed var(--ares-red);
    padding: 10px;
    cursor: pointer;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.password-reveal .secret { display: none; color: var(--ares-red); font-weight: bold; }
.password-reveal.revealed .mask { display: none; }
.password-reveal.revealed .secret { display: block; }

.help-cta {
    margin: 80px 0;
    text-align: center;
    border-left: none;
    border-top: 2px solid var(--ares-red);
}

.help-cta h2 { margin-bottom: 15px; }
.help-cta .btn-primary { margin-top: 25px; }

@media (max-width: 768px) {
    .terraria-grid { grid-template-columns: 1fr; }
    .ip-container { flex-direction: column; text-align: center; }
}

/* --- Toggle Styles --- */
.protocol-toggle {
    display: flex;
    justify-content: center;
    gap: 0;
    margin: 40px 0;
}

.toggle-btn {
    background: transparent;
    border: 1px solid rgba(255, 0, 51, 0.3);
    color: #6b7280;
    padding: 12px 24px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1rem;
}

.toggle-btn.active {
    background: rgba(255, 0, 51, 0.1);
    border-color: var(--ares-red);
    color: var(--ares-red);
    box-shadow: inset 0 0 10px var(--ares-glow);
}

.hidden-protocol { display: none; }
.active-protocol { display: block; }

/* --- Gallery Styles --- */
.server-gallery { margin-top: 100px; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-item {
    padding: 5px;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img { transform: scale(1.05); }

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

/* --- Link Tree Specific Styles --- */
.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.link-tree-card {
    max-width: 600px;
    width: 100%;
    padding: 50px 30px;
    text-align: center;
}

.links-container {
    list-style: none;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tree-link {
    display: block;
    text-decoration: none;
    background: rgba(255, 0, 51, 0.05);
    border: 1px solid rgba(255, 0, 51, 0.2);
    padding: 20px;
    transition: all 0.3s ease;
    color: var(--text-gray);
}

.tree-link:hover {
    background: rgba(255, 0, 51, 0.1);
    border-color: var(--ares-red);
    box-shadow: 0 0 15px var(--ares-glow);
    transform: translateY(-2px);
}

.link-label {
    display: block;
    font-weight: 700;
    color: var(--ares-red);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.link-desc {
    display: block;
    font-size: 0.8rem;
    opacity: 0.7;
    text-transform: uppercase;
}

.footer-simple {
    margin-top: 40px;
    font-size: 0.7rem;
    color: #6b7280;
    letter-spacing: 2px;
}