/* ============================================
   home.css - ENB Hosting Home Page Styles
   Koristi postojeći style.css (dark blue & black)
   ============================================ */

/* === HERO SECTION === */
.hero-section {
    padding: 30px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-container {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

/* === LEFT SIDE - Logo + Login === */
.hero-left {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.logo-container {
    text-align: center;
    padding: 15px;
}

.logo-container .main-logo {
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(0, 102, 255, 0.4));
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(0, 102, 255, 0.4)); }
    50% { filter: drop-shadow(0 0 35px rgba(0, 204, 255, 0.6)); }
}

/* Login Box - Compact */
.login-box {
    background: var(--bg-card);
    border: 1px solid var(--border-blue);
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.login-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 13px;
    color: var(--accent-cyan);
    text-align: center;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.login-form .input-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.login-form .input-group label {
    font-size: 10px;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-form .input-group input {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-blue);
    color: var(--text-primary);
    padding: 8px 10px;
    border-radius: 8px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 13px;
    transition: all 0.3s;
}

.login-form .input-group input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    margin: 2px 0;
}

.login-options .remember-me {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
    cursor: pointer;
}

.login-options .forgot-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-size: 10px;
}

.login-options .forgot-link:hover {
    color: var(--accent-cyan);
}

.btn-login {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--accent-glow);
}

.btn-register {
    background: transparent;
    color: var(--accent-blue);
    border: 1px solid var(--border-blue);
    padding: 8px;
    border-radius: 8px;
    font-family: 'Orbitron', sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-register:hover {
    background: rgba(0, 102, 255, 0.1);
    border-color: var(--accent-blue);
    color: var(--accent-cyan);
}

/* User Box (when logged in) */
.user-box {
    background: var(--bg-card);
    border: 1px solid var(--border-blue);
    border-radius: 12px;
    padding: 18px;
    text-align: center;
}

.user-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 13px;
    color: var(--accent-cyan);
    margin-bottom: 8px;
}

.user-name {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 12px;
}

/* === RIGHT SIDE - Slideshow === */
.hero-right {
    flex: 1;
    min-height: 350px;
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 380px;
    background: var(--bg-card);
    border: 1px solid var(--border-blue);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.95));
    padding: 50px 30px 30px;
}

.slide-caption h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 22px;
    color: var(--accent-cyan);
    text-shadow: 0 0 20px var(--accent-glow);
    margin-bottom: 6px;
}

.slide-caption p {
    font-size: 13px;
    color: var(--text-secondary);
}

.slide-dots {
    position: absolute;
    bottom: 15px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.dot:hover,
.dot.active {
    background: var(--accent-blue);
    border-color: #fff;
    box-shadow: 0 0 10px var(--accent-glow);
}

/* === SERVERS SECTION === */
.servers-section {
    padding: 30px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.servers-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.server-card {
    position: relative;
    height: 160px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-blue);
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #0f0f1e, #1a1a2e);
}

.server-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.2);
    border-color: var(--accent-blue);
}

.server-image {
    position: absolute;
    width: 100%;
    height: 100%;
}

.server-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.server-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 50%, rgba(0, 0, 0, 0.4) 100%);
}

.server-info {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 2;
}

.server-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 102, 255, 0.5);
    margin-bottom: 4px;
}

.server-price {
    font-size: 11px;
    color: var(--accent-cyan);
    font-weight: 600;
}

.server-location {
    font-size: 10px;
    color: var(--text-secondary);
}

.server-desc {
    font-size: 10px;
    color: var(--text-secondary);
    max-width: 250px;
    line-height: 1.3;
}

.btn-order {
    position: absolute;
    right: 18px;
    bottom: 18px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    color: #fff;
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-family: 'Orbitron', sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px var(--accent-glow);
    z-index: 2;
}

.btn-order:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px var(--accent-glow);
}

/* === WHY CHOOSE US === */
.why-us-section {
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.why-us-container {
    position: relative;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.15), var(--bg-card));
    border: 1px solid var(--border-blue);
    border-radius: 12px;
    padding: 25px 35px;
    display: flex;
    align-items: center;
    gap: 25px;
    overflow: hidden;
    transition: all 0.3s;
}

.why-us-container:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 0 30px rgba(0, 102, 255, 0.15);
}

.why-us-logo {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 0 10px var(--accent-glow));
}

.why-us-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    color: var(--accent-cyan);
    text-shadow: 0 0 20px var(--accent-glow);
}

.why-us-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

/* === STATS SECTION === */
.stats-section {
    padding: 15px 20px 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.stat-box {
    background: var(--bg-card);
    border: 1px solid var(--border-blue);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
    transition: all 0.3s;
}

.stat-box:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 0 20px rgba(0, 102, 255, 0.1);
}

.stat-icon {
    width: 40px;
    height: 40px;
    color: var(--accent-blue);
    flex-shrink: 0;
}

.stat-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--accent-blue);
    filter: drop-shadow(0 0 5px var(--accent-glow));
}

.stat-content h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    color: var(--accent-cyan);
    margin-bottom: 6px;
}

.stat-content p {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 8px;
}

.stat-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
    color: var(--success);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.stat-label {
    font-size: 11px;
    color: var(--accent-blue);
    margin-left: 5px;
}

.stat-link {
    color: var(--success);
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
}

.stat-link:hover {
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

/* === POPUPS === */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: var(--bg-card);
    border: 2px solid var(--accent-blue);
    border-radius: 16px;
    padding: 35px;
    width: 90%;
    max-width: 420px;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 102, 255, 0.2);
}

.popup-close {
    position: absolute;
    top: 12px;
    right: 18px;
    color: var(--accent-blue);
    font-size: 26px;
    cursor: pointer;
    transition: color 0.3s;
}

.popup-close:hover {
    color: var(--accent-cyan);
    text-shadow: 0 0 10px var(--accent-glow);
}

.popup-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    color: var(--accent-cyan);
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.popup-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.popup-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.popup-form label {
    font-size: 10px;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.popup-form input {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-blue);
    color: var(--text-primary);
    padding: 10px 12px;
    border-radius: 8px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px;
    transition: all 0.3s;
}

.popup-form input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

/* === GAME PANEL POPUP === */
.popup-icon {
    text-align: center;
    margin-bottom: 15px;
}

.popup-logo {
    max-width: 100px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(0, 102, 255, 0.5));
}

.popup-message {
    text-align: center;
    margin-bottom: 10px;
}

.popup-message p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.popup-message strong {
    color: var(--accent-cyan);
    font-size: 16px;
}

.popup-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    text-align: left;
    display: inline-block;
}

.popup-list li {
    color: var(--text-primary);
    font-size: 14px;
    padding: 5px 0;
}

.popup-note {
    color: var(--accent-blue) !important;
    font-style: italic;
    font-size: 13px !important;
    margin-top: 15px;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .hero-container {
        flex-direction: column;
    }
    
    .hero-left {
        flex: 1;
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }
    
    .servers-container {
        grid-template-columns: 1fr;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-right {
        min-height: 250px;
    }
    
    .slideshow-container {
        height: 280px;
    }
    
    .slide-caption h3 {
        font-size: 16px;
    }
}

/* === ALERT MESSAGES === */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: center;
    font-size: 13px;
    font-family: 'Rajdhani', sans-serif;
}

.alert-success {
    background: rgba(0, 255, 136, 0.15);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: var(--success);
}

.alert-error {
    background: rgba(255, 0, 64, 0.15);
    border: 1px solid rgba(255, 0, 64, 0.3);
    color: var(--danger);
}