@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background-color: #000000;
}

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

/* Header */
.header {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(255, 215, 0, 0.1);
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}
.nav-content { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; }
.logo a { text-decoration: none; color: #FFD700; font-size: 1.8rem; font-weight: 700; text-shadow: 0 0 10px rgba(255, 215, 0, 0.3); }
.nav-menu { display: flex; align-items: center; gap: 2rem; }
.nav-menu a { text-decoration: none; color: #ffffff; font-weight: 500; transition: all 0.3s ease; position: relative; }
.nav-menu a:hover { color: #FFD700; }
.nav-menu a::after {
    content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 50%;
    background-color: #FFD700; transition: all 0.3s ease; transform: translateX(-50%);
}
.nav-menu a:hover::after { width: 100%; }
.language-switcher { margin-left: 1rem; }
.lang-link {
    background: transparent !important; color: #FFD700 !important;
    padding: 0.5rem 1rem; border: 2px solid #FFD700; border-radius: 6px; text-decoration: none;
    font-size: 0.9rem; font-weight: 600; transition: all 0.3s ease;
}
.lang-link:hover { background: #FFD700 !important; color: #000000 !important; box-shadow: 0 0 15px rgba(255, 215, 0, 0.4); }

/* Hero Section (kompaktnije) */
.hero,
.hosting-hero {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #000000 100%);
    color: white;
    text-align: center;
    position: relative; overflow: hidden;
}
.hero { padding: 100px 0 60px; }
.hosting-hero { padding: 100px 0 60px; }
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    pointer-events: none;
}
.hero-content { max-width: 700px; margin: 0 auto; position: relative; z-index: 2; }
.hero-title { font-size: 3.5rem; font-weight: 700; margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #FFD700 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}
.hero-subtitle { font-size: 1.4rem; margin-bottom: 2.5rem; opacity: 0.9; font-weight: 400; }

/* Buttons */
.btn {
    display: inline-block; padding: 14px 28px; border-radius: 8px; text-decoration: none; font-weight: 600;
    text-align: center; border: none; cursor: pointer; transition: all 0.3s ease; font-size: 1rem; position: relative; overflow: hidden;
}
.btn-primary, .btn-outline {
    background: transparent; color: #FFD700; border: 2px solid #FFD700;
}
.btn-primary:hover, .btn-outline:hover {
    background: #FFD700; color: #000000; transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

/* Trust Features */
.trust-features { padding: 100px 0; background: #111111; }
.trust-features h2 { text-align: center; font-size: 2.8rem; margin-bottom: 4rem; color: #ffffff; font-weight: 700; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2.5rem; }
.feature-box {
    background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(10px); padding: 2.5rem; border-radius: 16px; text-align: center;
    border: 1px solid rgba(255, 215, 0, 0.2); transition: all 0.3s ease;
}
.feature-box:hover { transform: translateY(-8px); border-color: #FFD700; box-shadow: 0 15px 40px rgba(255, 215, 0, 0.2); }
.feature-icon { font-size: 3.5rem; margin-bottom: 1.5rem; filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3)); }
.feature-box h3 { font-size: 1.3rem; color: #FFD700; font-weight: 600; }

/* Hosting description (kompaktnije) */
.hosting-description { padding: 40px 0; background: #111111; text-align: center; display: none;}
.hosting-description h2 { font-size: 2rem; color: #ffffff; margin-bottom: 1rem; }
.hosting-description p { font-size: 1.1rem; color: #cccccc; max-width: 800px; margin: 0 auto; line-height: 1.7; }
/* Section header underline polish */
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header h2 { font-size: 2.6rem; margin-bottom: 1.25rem; color: #ffffff; font-weight: 700; position: relative; display: inline-block; padding-bottom: .5rem; }
.section-header h2::after {
    content:''; position:absolute; left:50%; transform:translateX(-50%);
    bottom:0; width:80px; height:2px; background:#FFD700; box-shadow:0 0 12px rgba(255,215,0,.5);
}
.section-header p { font-size: 1.1rem; color: #cccccc; }

/* Packages Filter (Svi / Srbija / Nemačka) */
.packages-filter { margin-top: 1rem; display: flex; gap: .75rem; justify-content: center; }
.filter-btn {
    padding: .5rem 1rem; border: 1px solid #FFD700; background: transparent; color: #FFD700;
    border-radius: 999px; cursor: pointer; font-weight: 600; transition: all .2s;
}
.filter-btn:hover, .filter-btn.active { background: #FFD700; color: #000; }

/* Packages Section */
.packages { padding: 80px 0; background: #000000; }

/* ⬇️ Grid sa fiksnom širinom kolone — centriran poslednji red */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 280px); /* fiksna kolona */
    justify-content: center;                        /* centriraj poslednji red */
    gap: 1.75rem;
    margin-top: 2.5rem;
    align-items: stretch;                           /* iste visine po redu */
}

/* 1 kolona na mobilnom – koristi punu širinu */
@media (max-width: 640px) {
    .packages-grid {
        grid-template-columns: 1fr;
        justify-content: stretch; /* nema centriranja za 1 kolonu */
    }
}

.package-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 215, 0, 0.2);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;

    /* poravnanje CTA u dnu */
    display: flex;
    flex-direction: column;
    height: 100%;
}

.package-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(255, 215, 0, 0.08) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.package-card:hover { border-color: #FFD700; box-shadow: 0 12px 30px rgba(255, 215, 0, 0.18); }
.package-card:hover::before { opacity: 1; }

.package-card.featured { border-color: #FFD700; box-shadow: 0 16px 40px rgba(255, 215, 0, 0.25); }
/* Lepši, poravnat badge */
.package-card.featured::after{
    content:'POPULAR';
    position:absolute; top:7px; left:50%; transform:translateX(-50%);
    padding:.25rem .8rem; font-size:.72rem; font-weight:800; letter-spacing:.06em;
    border-radius:999px;
    background: rgba(255,215,0,0.1);
    color:#FFD700; border:1px solid #FFD700;
    box-shadow: 0 2px 10px rgba(255,215,0,0.15);
    backdrop-filter: blur(6px);
}

.package-header h3 { font-size: 1.6rem; margin-bottom: .75rem; color: #FFD700; font-weight: 700; position: relative; z-index: 2; }
.price { margin-bottom: 1.5rem; position: relative; z-index: 2; }
.amount {
    font-size: 2.8rem; font-weight: 800; color: #ffffff;
    display: block; line-height: 1.1; letter-spacing: -0.5px;
}
.amount .currency { font-size: .9rem; opacity: .85; margin-left: .35rem; }
.period { display: block; color: #cccccc; font-size: .95rem; margin-top: .25rem; }

.package-desc { color: #cccccc; margin-bottom: 1.25rem; position: relative; z-index: 2; }
.package-body { flex: 1; display: flex; flex-direction: column; }

.package-features {
    list-style: none; margin-bottom: 1.25rem; position: relative; z-index: 2;
    text-align: left;
}
.package-features li {
    padding: .55rem 0 .55rem 1.5rem; border-bottom: 1px solid rgba(255, 215, 0, 0.1);
    color: #ffffff; position: relative;
}
.package-features li:last-child { border-bottom: none; }
.package-features li::before {
    content:'✓'; position:absolute; left:0; top:.55rem; font-weight:900; color:#FFD700; opacity:.9;
}
@media(min-width:1200px){
  .package-features{ columns:2; column-gap:2rem; }
  .package-features li{ break-inside: avoid; }
}

.package-footer { position: relative; z-index: 2; margin-top: auto; }
.package-footer .btn { width: 100%; padding: 12px 16px; border-radius: 10px; }

/* Why Joker Section */
.why-joker { padding: 100px 0; background: #111111; }
.why-joker h2 { text-align: center; font-size: 2.8rem; margin-bottom: 4rem; color: #ffffff; font-weight: 700; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2.5rem; }
.why-box {
    background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(10px);
    padding: 2.5rem; border-radius: 16px; text-align: center;
    border: 1px solid rgba(255, 215, 0, 0.2); transition: all 0.3s ease;
}
.why-box:hover { transform: translateY(-8px); border-color: #FFD700; box-shadow: 0 15px 40px rgba(255, 215, 0, 0.2); }
.why-icon { font-size: 3.5rem; margin-bottom: 1.5rem; filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3)); }
.why-box h3 { font-size: 1.3rem; margin-bottom: 1rem; color: #FFD700; font-weight: 600; }
.why-box p { color: #cccccc; }

/* FAQ Section */
.faq { padding: 100px 0; background: #000000; }
.faq h2 { text-align: center; font-size: 2.8rem; margin-bottom: 4rem; color: #ffffff; font-weight: 700; }
.faq-list { max-width: 900px; margin: 0 auto; }
.faq-item {
    border: 1px solid rgba(255, 215, 0, 0.2); border-radius: 12px; margin-bottom: 1.5rem; overflow: hidden;
    background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(10px);
}
.faq-question { display: flex; justify-content: space-between; align-items: center; padding: 2rem; cursor: pointer; transition: all 0.3s ease; }
.faq-question:hover { background: rgba(255, 215, 0, 0.1); }
.faq-question h3 { font-size: 1.2rem; color: #ffffff; font-weight: 600; }
.faq-toggle { font-size: 1.8rem; font-weight: bold; color: #FFD700; transition: transform 0.3s ease; }
.faq-item.active .faq-toggle { transform: rotate(45deg); }
.faq-answer { padding: 0 2rem; max-height: 0; overflow: hidden; transition: all 0.3s ease; }
.faq-item.active .faq-answer { padding: 2rem; max-height: 300px; }
.faq-answer p { color: #cccccc; line-height: 1.7; }

/* Contact Section */
.contact { padding: 100px 0; background: #111111; }
.contact-form-wrapper { max-width: 700px; margin: 0 auto; }
.contact-form {
    background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(10px);
    padding: 3rem; border-radius: 16px; border: 1px solid rgba(255, 215, 0, 0.2);
}
.form-group { margin-bottom: 2rem; }
.form-group label { display: block; margin-bottom: 0.8rem; font-weight: 600; color: #FFD700; }
.form-group input, .form-group textarea {
    width: 100%; padding: 1rem; border: 2px solid rgba(255, 215, 0, 0.3); border-radius: 8px;
    font-size: 1rem; background: rgba(255, 255, 255, 0.1); color: #ffffff; transition: all 0.3s ease;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: #FFD700; box-shadow: 0 0 15px rgba(255, 215, 0, 0.2); }
.form-group input::placeholder, .form-group textarea::placeholder { color: #888888; }
.error { color: #ff6b6b; font-size: 0.875rem; margin-top: 0.5rem; display: block; }
.alert { padding: 1.5rem; border-radius: 8px; margin-bottom: 1.5rem; }
.alert-success { background: rgba(34, 197, 94, 0.2); color: #22c55e; border: 1px solid rgba(34, 197, 94, 0.3); }
.form-message { padding: 1.5rem; border-radius: 8px; margin-top: 1.5rem; text-align: center; }
.form-message.success { background: rgba(34, 197, 94, 0.2); color: #22c55e; border: 1px solid rgba(34, 197, 94, 0.3); }
.form-message.error { background: rgba(239, 68, 68, 0.2); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }

/* Footer */
.footer {
    background: #000000; color: white; padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
}
.footer-content { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3rem; }
.footer-links { display: flex; gap: 2.5rem; }
.footer-links a { color: #cccccc; text-decoration: none; transition: color 0.3s ease; font-weight: 500; }
.footer-links a:hover { color: #FFD700; }
.footer-lang a {
    color: #FFD700; text-decoration: none; font-weight: 600; border: 1px solid #FFD700;
    padding: 0.5rem 1rem; border-radius: 6px; transition: all 0.3s ease;
}
.footer-lang a:hover { background: #FFD700; color: #000000; }
.footer-copy { text-align: center; padding-top: 2rem; border-top: 1px solid rgba(255, 215, 0, 0.2); }
.footer-copy p { color: #888888; font-size: 0.9rem; }

/* Admin Styles (bez promena bitnih) */
.admin-container { max-width: 1400px; margin: 0 auto; padding: 20px; }
.admin-header { background: #111111; padding: 1rem 0; border-bottom: 1px solid rgba(255, 215, 0, 0.2); margin-bottom: 2rem; }
.admin-nav { display: flex; justify-content: space-between; align-items: center; }
.admin-nav h1 { color: #FFD700; font-size: 1.5rem; }
.admin-nav ul { display: flex; list-style: none; gap: 2rem; }
.admin-nav a { color: #ffffff; text-decoration: none; transition: color 0.3s ease; }
.admin-nav a:hover { color: #FFD700; }
.admin-card { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 215, 0, 0.2); border-radius: 12px; padding: 2rem; margin-bottom: 2rem; }
.admin-table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
.admin-table th, .admin-table td { padding: 1rem; text-align: left; border-bottom: 1px solid rgba(255, 215, 0, 0.2); }
.admin-table th { background: rgba(255, 215, 0, 0.1); color: #FFD700; font-weight: 600; }
.admin-table td { color: #ffffff; }
.admin-form { max-width: 600px; }
.admin-form .form-group { margin-bottom: 1.5rem; }
.admin-form label { display: block; margin-bottom: 0.5rem; color: #FFD700; font-weight: 600; }
.admin-form input, .admin-form textarea, .admin-form select {
    width: 100%; padding: 0.8rem; border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 6px; background: rgba(255, 255, 255, 0.1); color: #ffffff;
}
.admin-form input:focus, .admin-form textarea:focus, .admin-form select:focus { outline: none; border-color: #FFD700; }
.btn-small { padding: 0.5rem 1rem; font-size: 0.9rem; }
.btn-danger { background: #ef4444; color: white; border: none; }
.btn-danger:hover { background: #dc2626; }
.login-form { max-width: 400px; margin: 100px auto; background: rgba(255, 255, 255, 0.05); padding: 3rem; border-radius: 16px; border: 1px solid rgba(255, 215, 0, 0.2); }
.login-form h2 { text-align: center; color: #FFD700; margin-bottom: 2rem; }

/* Responsive tweaks */
@media (max-width: 768px) {
    .nav-content { flex-direction: column; gap: 1rem; }
    .nav-menu { gap: 1rem; flex-wrap: wrap; justify-content: center; }
    .hero, .hosting-hero { padding: 120px 0 80px; }
    .hero-title { font-size: 2.5rem; }
    .packages-grid { grid-template-columns: 1fr; }
    .package-card.featured { /* bez skakanja na mobilnom */ }
    .footer-content { flex-direction: column; gap: 2rem; }
    .footer-links { flex-wrap: wrap; justify-content: center; }
    .admin-nav { flex-direction: column; gap: 1rem; }
    .admin-nav ul { flex-wrap: wrap; justify-content: center; }
}
