/* Custom Variables & Theme Settings */
:root {
    --primary-gold: #ffd700;
    --primary-gold-rgb: 255, 215, 0;
    --primary-gold-dark: #cc9900;
    --primary-gold-light: #ffe680;
    --truva-blue: #00d2ff;
    --truva-blue-rgb: 0, 210, 255;
    --truva-blue-dark: #0099cc;
    --bg-dark: #07070a;
    --glass-bg: rgba(10, 10, 15, 0.76);
    --glass-border: rgba(255, 215, 0, 0.12);
    --glass-border-hover: rgba(255, 215, 0, 0.25);
    --text-main: #f3f3f7;
    --text-sub: #b0b0c5;
    --text-muted: #78788c;
    --font-outfit: 'Outfit', sans-serif;
    --font-cinzel: 'Cinzel', serif;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-outfit);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Background Image & Ambient Layer */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('assets/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.45;
    filter: blur(2px);
    z-index: -3;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(7, 7, 10, 0.4) 0%, rgba(7, 7, 10, 0.9) 100%);
    z-index: -2;
    pointer-events: none;
}

/* Canvas Particles */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* Deep Ambient Glow Overlays */
.ambient-glow {
    position: fixed;
    width: 50vw;
    height: 50vw;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.15;
    z-index: -2;
    pointer-events: none;
    animation: pulseGlow 12s infinite alternate ease-in-out;
}

.glow-gold {
    top: -10%;
    left: -10%;
    background: radial-gradient(circle, rgba(var(--primary-gold-rgb), 0.4) 0%, transparent 70%);
}

.glow-blue {
    bottom: -10%;
    right: -10%;
    background: radial-gradient(circle, rgba(var(--truva-blue-rgb), 0.3) 0%, transparent 70%);
    animation-delay: -6s;
}

@keyframes pulseGlow {
    0% { transform: scale(1) translate(0, 0); opacity: 0.12; }
    100% { transform: scale(1.2) translate(5%, 5%); opacity: 0.22; }
}

/* Container */
.container {
    width: 100%;
    max-width: 780px;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

/* Main Announcement Card */
.announcement-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 1.75rem 2.25rem;
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.1s ease-out;
    position: relative;
    overflow: hidden;
}

.announcement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255, 215, 0, 0.03) 30%,
        rgba(255, 215, 0, 0.07) 50%,
        rgba(255, 215, 0, 0.03) 70%,
        transparent
    );
    transform: rotate(25deg);
    transition: 0.8s;
    pointer-events: none;
    z-index: 0;
}

.announcement-card:hover {
    border-color: var(--glass-border-hover);
    box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.85),
                0 0 30px rgba(var(--primary-gold-rgb), 0.05),
                inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Card Ornament */
.card-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 0.75rem;
    opacity: 0.8;
}

.ornament-line {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary-gold), transparent);
    flex-grow: 1;
    max-width: 120px;
    margin: 0 1rem;
}

.gold-glow-icon {
    color: var(--primary-gold);
    font-size: 1.6rem;
    filter: drop-shadow(0 0 10px rgba(var(--primary-gold-rgb), 0.6));
    animation: iconPulse 3s infinite alternate ease-in-out;
}

@keyframes iconPulse {
    0% { transform: scale(1); filter: drop-shadow(0 0 8px rgba(var(--primary-gold-rgb), 0.5)); }
    100% { transform: scale(1.1); filter: drop-shadow(0 0 18px rgba(var(--primary-gold-rgb), 0.9)); }
}

/* Header Section */
.header-section {
    margin-bottom: 1rem;
}

.main-title {
    font-family: var(--font-cinzel);
    font-size: 3.8rem;
    font-weight: 900;
    letter-spacing: 8px;
    text-transform: uppercase;
    background: linear-gradient(to bottom, #ffffff 0%, #ebd07b 45%, #b38938 50%, #f5e3b5 55%, #ffd700 80%, #b38938 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1px rgba(0, 0, 0, 0.7);
    margin-bottom: 0.75rem;
    filter: drop-shadow(0 15px 15px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 25px rgba(var(--primary-gold-rgb), 0.35));
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.main-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary-gold), transparent);
    box-shadow: 0 0 8px var(--primary-gold);
}

.main-title span {
    font-family: var(--font-cinzel);
    font-weight: 700;
    background: linear-gradient(to bottom, #ffffff 0%, #a2d2ff 45%, #4ea8de 50%, #b5e2fa 55%, #00b4d8 80%, #0077b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(var(--truva-blue-rgb), 0.5));
}

.badge-reclaimed {
    background: rgba(39, 174, 96, 0.15);
    border: 1px solid rgba(39, 174, 96, 0.35);
    color: #2ecc71;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.1);
    animation: greenPulse 2.5s infinite;
}

@keyframes greenPulse {
    0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(46, 204, 113, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

.badge-reclaimed i {
    font-size: 0.9rem;
}

.sub-title {
    font-family: var(--font-cinzel);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-sub);
    max-width: 580px;
    margin: 0.5rem auto 0 auto;
    line-height: 1.6;
}

/* Content Section */
.content-section {
    width: 100%;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.description {
    font-size: 0.98rem;
    line-height: 1.5;
    color: var(--text-sub);
    text-align: justify;
    text-justify: inter-word;
}

.description strong {
    color: var(--text-main);
    font-weight: 600;
}

.highlight-box {
    background: linear-gradient(90deg, rgba(var(--primary-gold-rgb), 0.04) 0%, rgba(var(--primary-gold-rgb), 0.08) 100%);
    border-left: 3px solid var(--primary-gold);
    padding: 1.25rem 1.75rem;
    border-radius: 4px 12px 12px 4px;
    text-align: left;
    position: relative;
    margin: 0.5rem 0;
}

.quote-icon {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.8rem;
    color: rgba(var(--primary-gold-rgb), 0.15);
}

.highlight-box p {
    font-size: 1rem;
    font-style: italic;
    line-height: 1.6;
    color: var(--primary-gold-light);
    max-width: 90%;
}

.description.secondary {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.description.secondary strong {
    color: var(--primary-gold);
}

/* Live Server Status Widget */
.server-status-widget {
    background: rgba(15, 15, 25, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    width: 100%;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
    position: relative;
}

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

.server-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #94a3b8;
}

.status-indicator-dot.online {
    background-color: #2ecc71;
    box-shadow: 0 0 10px #2ecc71;
    animation: indicatorPulse 2s infinite alternate;
}

@keyframes indicatorPulse {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.2); opacity: 1; }
}

.status-text {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-sub);
}

.version-badge {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-sub);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

.widget-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    padding: 0.75rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.ip-display {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.ip-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.ip-value {
    font-family: var(--font-outfit);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--truva-blue);
    letter-spacing: 0.5px;
}

.copy-btn {
    background: transparent;
    border: none;
    color: var(--text-sub);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-btn:hover {
    color: var(--primary-gold);
    background: rgba(255, 255, 255, 0.05);
    transform: scale(1.1);
}

.copy-btn:active {
    transform: scale(0.95);
}

.widget-footer {
    display: flex;
    justify-content: flex-start;
    margin-top: 0.5rem;
}

.player-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-sub);
}

.player-count i {
    color: var(--primary-gold);
}

.player-count span {
    font-weight: 600;
    color: var(--text-main);
}

/* CTA Actions Block */
.cta-actions {
    display: flex;
    gap: 1rem;
    width: 100%;
    margin-bottom: 1.5rem;
}

/* Buttons System */
.btn {
    flex: 1;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
    border-radius: 12px;
    font-family: var(--font-outfit);
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--truva-blue) 0%, var(--truva-blue-dark) 100%);
    color: #030a16;
    box-shadow: 0 4px 15px rgba(var(--truva-blue-rgb), 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--truva-blue-rgb), 0.4);
    filter: brightness(1.1);
}

.btn-primary .btn-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.btn-primary:hover .btn-glow {
    opacity: 1;
    animation: btnGlowMove 2.5s infinite linear;
}

@keyframes btnGlowMove {
    0% { transform: translate(-30%, -30%) rotate(0deg); }
    100% { transform: translate(10%, 10%) rotate(360deg); }
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 215, 0, 0.4);
    color: var(--primary-gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4), 0 0 10px rgba(var(--primary-gold-rgb), 0.1);
}

.btn:active {
    transform: translateY(0);
}

/* Card Footer */
.card-footer {
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
    display: flex;
    justify-content: center;
}

.card-footer p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 15px rgba(var(--primary-gold-rgb), 0.15);
    transform: translateY(150%) scale(0.9);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 100;
    pointer-events: none;
    max-width: 320px;
}

.toast.show {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toast-icon {
    color: var(--primary-gold);
    font-size: 1.3rem;
}

.toast-message {
    display: flex;
    flex-direction: column;
}

.toast-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
}

.toast-desc {
    font-size: 0.8rem;
    color: var(--text-sub);
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, var(--primary-gold), var(--truva-blue));
    border-radius: 0 0 0 12px;
    transform-origin: left;
    transform: scaleX(0);
}

.toast.show .toast-progress {
    animation: toastProgressAnim 3s linear forwards;
}

@keyframes toastProgressAnim {
    0% { transform: scaleX(1); }
    100% { transform: scaleX(0); }
}

/* Responsiveness Settings */
@media (max-width: 640px) {
    .container {
        padding: 1.5rem 1rem;
    }
    
    .announcement-card {
        padding: 2.2rem 1.5rem;
        border-radius: 18px;
    }
    
    .main-title {
        font-size: 2.4rem;
        letter-spacing: 2px;
    }
    
    .sub-title {
        font-size: 1.1rem;
    }
    
    .description {
        font-size: 0.95rem;
        text-align: left;
    }
    
    .highlight-box {
        padding: 1rem 1.25rem;
    }
    
    .highlight-box p {
        font-size: 0.9rem;
    }
    
    .cta-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn {
        width: 100%;
        padding: 1rem;
    }
    
    .widget-body {
        padding: 0.6rem 0.85rem;
    }
    
    .ip-value {
        font-size: 1.1rem;
    }
    
    .toast {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        max-width: none;
    }
}
