/* ============================================================
   Nogden.eu - Homepage Master Stylesheet
   ============================================================ */

   /* Rezervace místa pro Font Awesome ikony před načtením */
.fa-solid, .fa-brands, .fas, .fab {
    display: inline-block;
    width: 1.25em; /* Standardní šířka ikony */
    text-align: center;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}
/* --- 1. Global Background Settings --- */
body.vote-page {
    width: 100%;
    background-color: #181a1b !important;
}

@media (min-width: 769px) {
    body.vote-page {
        background-image: url('/files/pictures/bcknogden.webp?v=4');
        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;
        background-attachment: fixed;
    }
}

/* --- 2. Hero Section Implementation --- */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; 
    min-height: 90vh; 
    width: 100%;
    text-align: center;
    padding: 160px 20px 60px 20px; 
    box-sizing: border-box;
    position: relative;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 50%, #181a1b 100%), 
                radial-gradient(circle, rgba(0,0,0,0) 0%, rgba(0,0,0,0.5) 100%) !important;
    z-index: 1;
}

.hero-logo {
    /* FIX: Sjednocení na 300px pro nulové CLS */
    width: 300px;
    height: 300px;
    max-height: 300px;
    max-width: 90%;
    object-fit: contain;
    margin-bottom: 5px;
    animation: floating-logo 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.9));
}

@keyframes floating-logo {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    letter-spacing: 4px;
    font-weight: 900;
    text-shadow: 2px 2px 20px rgba(0,0,0,1);
    margin: 5px 0;
}

.hero h2 {
    font-size: clamp(1rem, 3vw, 1.3rem);
    color: rgba(255,255,255,0.7);
}

/* --- 3. Hero Action Buttons --- */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.hero .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center; /* Zpět na střed pro hezký vzhled */
    gap: 0; /* Gap vypneme a nahradíme marginem u ikony pro přesnou kontrolu */
    padding: 14px 24px;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    color: white !important;
    
    /* FIX STABILITY */
    width: 280px; 
    min-width: 280px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: linear-gradient(135deg, #b000f4 0%, #7e00af 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Fixace samotné ikony aby nikdy neuhla */
.hero .btn svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    margin-right: 12px;
    display: block;
}

/* Fixace textu - text-align: center uvnitř zbývajícího prostoru */
.hero .btn .btn-text {
    text-align: center;
    white-space: nowrap;
}

.hero .btn:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, #c32cff 0%, #8e00c5 100%);
    box-shadow: 0 10px 25px rgba(176, 0, 244, 0.35);
}

/* --- 4. Interactive Scroll Indicator --- */
.scroll-more {
    margin-top: 40px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.4);
    transition: 0.3s ease;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 5;
}
.scroll-more:hover { color: #b000f4; }
.scroll-more i { font-size: 1.2rem; animation: arrow-bounce 2s infinite; }

@keyframes arrow-bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* --- 5. Content Card Components --- */
.tech-box.cta-content, 
.feature-box, 
.discord-cta .cta-content {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.tech-box.cta-content:hover, 
.feature-box:hover, 
.discord-cta .cta-content:hover {
    transform: translateY(-10px);
    background: rgba(176, 0, 244, 0.08); 
    border-color: #b000f4;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

/* --- 6. Technical Specifications Section --- */
.technical-info {
    padding: 20px 20px 60px 20px; 
    position: relative;
    background-color: #181a1b;
    z-index: 2;
}

.technical-info::before {
    content: "";
    position: absolute;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 150px;
    background: radial-gradient(ellipse at center, rgba(176, 0, 244, 0.06) 0%, rgba(24, 26, 27, 0) 80%);
    pointer-events: none;
}

.tech-box.cta-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tech-item { display: flex; align-items: center; gap: 20px; flex: 1; justify-content: center; }
.tech-icon { font-size: 2rem; color: #b000f4; }
.tech-details { display: flex; flex-direction: column; text-align: left; }
.tech-label { font-size: 0.75rem; color: #777; font-weight: 700; }
.tech-value { font-size: 1.2rem; color: #fff; font-weight: 800; }
.border-left { border-left: 1px solid rgba(255,255,255,0.1); }

/* --- 7. Server Features Listing --- */
.server-features { padding: 60px 20px; background: #181a1b; position: relative; z-index: 2; }
.features-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.feature-box { padding: 40px; display: flex; flex-direction: column; }

.feature-header { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.feature-emoji { font-size: 2.5rem; }
.feature-box h3 { font-size: 1.6rem; color: white; margin: 0; }
.feature-box p { color: #aaa; margin-bottom: 25px; font-style: italic; }
.feature-box ul li { color: #eee; margin-bottom: 12px; padding-left: 20px; position: relative; list-style: none; text-align: left;}
.feature-box ul li::before { content: '•'; color: #b000f4; position: absolute; left: 0; }

/* --- 8. Discord Community CTA --- */
.discord-cta { padding: 60px 20px; background: #181a1b; position: relative; z-index: 2; }
.discord-cta .cta-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cta-icon { color: #5865f2; font-size: 3.5rem; }
.cta-text { flex: 1; margin: 0 40px; text-align: left; }
.cta-text h3 { font-size: 1.6rem; text-transform: uppercase; color: white; }

.cta-btn {
    background: linear-gradient(135deg, #5865f2 0%, #4752c4 100%);
    color: white !important;
    padding: 16px 45px;
    border-radius: 50px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

.cta-btn:hover {
    transform: translateY(-3px) scale(1.05);
    background: linear-gradient(135deg, #7289da 0%, #5865f2 100%);
    box-shadow: 0 8px 20px rgba(88, 101, 242, 0.4);
}

/* --- 9. Notification Popups --- */
.notification {
    position: absolute; 
    bottom: -50px; 
    left: 50%;
    transform: translateX(-50%) translateY(0px);
    background: rgba(40, 167, 69, 0.85);
    color: white;
    padding: 12px 28px;
    border-radius: 50px;
    z-index: 100;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    white-space: nowrap;
}

.notification.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(10px);
}

/* --- Server Launch Modal Overlay --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(176, 0, 244, 0.3);
    padding: 40px;
    border-radius: 30px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    transform: translateY(20px);
    transition: 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-icon { font-size: 3rem; margin-bottom: 20px; }
.modal-content h2 { font-size: 1.8rem; font-weight: 900; letter-spacing: 2px; color: #fff; margin-bottom: 15px; }
.modal-content p { color: #aaa; line-height: 1.6; margin-bottom: 25px; }

.launch-date {
    background: rgba(176, 0, 244, 0.1);
    padding: 12px 20px;
    border-radius: 15px;
    font-weight: 800;
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 30px;
    border: 1px dashed rgba(176, 0, 244, 0.5);
}

.launch-date span { color: #b000f4; }

.modal-btn {
    background: linear-gradient(135deg, #b000f4 0%, #7e00af 100%);
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 800;
    cursor: pointer;
    text-transform: uppercase;
    transition: 0.3s;
    width: 100%;
}

.modal-btn:hover { transform: scale(1.05); box-shadow: 0 5px 20px rgba(176, 0, 244, 0.4); }

/* Header safety override */
.top-nav { position: absolute !important; top: 0 !important; }

/* --- 10. Responsive Design & Mobile Adjustments --- */
@media (max-width: 768px) {
    body.vote-page::after {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url('/files/pictures/bcknogden.webp');
        background-position: center top;
        background-size: cover;
        background-repeat: no-repeat;
        z-index: -1;
        pointer-events: none;
        filter: brightness(0.5);
    }

    .hero { 
        padding-top: 100px; 
        padding-bottom: 40px;
        min-height: 85vh; 
        justify-content: center;
        background: linear-gradient(to bottom, rgba(0,0,0,0) 60%, #181a1b 100%) !important;
    }

    .hero .btn { 
        width: 100%; 
        min-width: unset; 
        max-width: 320px; 
        height: 50px !important; 
        font-size: 0.9rem; 
    }

    #nav-menu li a.active {
        background-color: rgba(176, 0, 244, 0.25) !important;
        color: #b000f4 !important;
        box-shadow: inset 6px 0 0 0 #b000f4 !important;
        border-radius: 4px 12px 12px 4px !important;
        font-weight: 800 !important;
    }

    .notification {
        position: absolute !important;
        bottom: -40px !important;
        width: auto !important;
        min-width: 260px !important;
        text-align: center !important;
        justify-content: center !important;
    }

    .hero-logo { 
        width: 300px !important;
        height: 300px !important;
        max-height: 200px !important; 
        margin-bottom: 10px; 
    }
    
    .hero h1 { font-size: 2.1rem; letter-spacing: 2px; margin: 5px 0; }
    .hero h2 { font-size: clamp(0.8rem, 3.5vw, 1rem); color: rgba(255,255,255,0.6); padding: 0 10px; line-height: 1.4; }

    .hero-buttons { gap: 12px; margin-top: 25px; width: 100%; }
    
    .scroll-more { margin-top: 30px; }

    .technical-info, .server-features, .discord-cta {
        padding: 20px 20px;
        background-color: #181a1b !important;
    }

    .technical-info { padding-top: 0; margin-top: -1px; }
    .features-container { grid-template-columns: 1fr; gap: 20px; }
    .feature-box { padding: 30px 25px; }

    .discord-cta .cta-content { 
        flex-direction: column; 
        text-align: center; 
        gap: 20px; 
        padding: 30px 20px;
    }

    .cta-text { margin: 0; }
    .cta-icon { font-size: 2.8rem; }
}

@media (max-width: 992px) {
    .tech-box.cta-content { flex-direction: column; gap: 20px; padding: 25px; }
    .border-left { border-left: none; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; width: 100%; }
}