/* VinoNetwork - Premium Minecraft Server Template */
:root {
    /* Renk Paleti */
    --bg-dark: #0f0f13;
    /* Çok koyu gri/siyah ama simsiyah değil */
    --bg-card: #181823;
    /* Kart arka planı */
    --primary: #b02e48;
    /* Vino (Şarap) kırmızısı */
    --primary-hover: #d63d5e;
    --accent: #ffd700;
    /* Altın rengi (VIP/Store için) */
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --glass: rgba(24, 24, 35, 0.85);

    /* Spacing */
    --container-padding: 0 12%;
    /* Increased from 5% to reduce spacing */
    --radius-md: 12px;
    --radius-lg: 20px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    /* Navbar height compensation */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

/* Navigasyon */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    /* Sabit, daha ince yükseklik */
    background: var(--glass);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    /* İçeriği ortala */
}

.navbar-container {
    width: 100%;
    max-width: 1200px;
    /* İçerik genişliğini sınırla */
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 1.5rem;
    /* Biraz küçültüldü */
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(176, 46, 72, 0.4);
}

.nav-cta {
    padding: 10px 24px;
    background: linear-gradient(90deg, var(--primary), #8a2438);
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(176, 46, 72, 0.3);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(176, 46, 72, 0.5);
}

/* Market Steps */
.market-step {
    animation: fadeIn 0.3s ease-out;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.step-title {
    margin: 0;
    font-size: 1.8rem;
    color: white;
}

.selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.selection-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.selection-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.selection-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.selection-card h3 {
    font-size: 1.5rem;
    margin: 0;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 var(--container-padding);
    background: radial-gradient(circle at top right, rgba(176, 46, 72, 0.15), transparent 40%),
        radial-gradient(circle at bottom left, rgba(255, 215, 0, 0.05), transparent 40%);
    margin-top: -70px;
    /* Navbar compensation matches new height */
    padding-top: 70px;
}

.hero-content {
    max-width: 800px;
    animation: fadeIn 1s ease-out;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 215, 0, 0.1);
    color: var(--accent);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero h1 span {
    color: var(--primary);
}

.btn-small-icon {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    width: 30px;
    height: 30px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.2s;
    font-size: 0.8rem;
}

.btn-small-icon:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn {
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
    background: var(--text-main);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Stats / Features Grid */
.features {
    padding: 5rem 2rem;
    /* Sabit padding */
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(176, 46, 72, 0.3);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.feature-card p {
    color: var(--text-muted);
}

/* Store Section */
.store-section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    background: linear-gradient(to bottom, var(--bg-dark), #13131a);
    /* Gradient'i koru ama container içinde */
    /* Not: Arka planı tüm sayfaya yaymak istiyorsak bunu wrapper dışına almalıyız, ama şimdilik ortalama için burada kalsın */
}

/* Tüm sayfa arka planını korumak için body'de var, store section container görevi görecek */

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--text-muted);
}

.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    /* auto-fill yerine auto-fit */
    gap: 2rem;
    justify-content: center;
    /* Grid'i ortala */
}

.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--primary);
}

.product-image {
    height: 180px;
    background: #252535;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 3rem;
}

.product-info {
    padding: 1.5rem;
}

.product-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent);
    color: #000;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.product-price {
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 700;
    margin-top: 10px;
    display: block;
}

.buy-btn {
    width: 100%;
    margin-top: 15px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}

.buy-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* Footer */
footer {
    padding: 4rem var(--container-padding);
    background: #0a0a0d;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--text-muted);
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 20px;
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }
}

/* --- Support Page Styles --- */
.support-container {
    padding: 120px 2rem 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    min-height: 80vh;
}

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

/* Sidebar */
.support-sidebar {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: fit-content;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-new-ticket {
    background: var(--primary);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.btn-new-ticket:hover {
    background: var(--primary-hover);
}

.ticket-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: 0.2s;
    border-left: 3px solid transparent;
}

.ticket-item:hover,
.ticket-item.active {
    background: rgba(255, 255, 255, 0.06);
    border-left-color: var(--primary);
}

.ticket-item h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.ticket-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
}

/* Main Content */
.support-main {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    min-height: 500px;
    position: relative;
}

.support-content-block h2 {
    margin-bottom: 10px;
}

.support-content-block p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hidden {
    display: none !important;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-submit {
    background: var(--primary);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.btn-submit:hover {
    background: var(--primary-hover);
}

/* Alert Box */
.alert-box {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.alert-box.success {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

/* Ticket View Styles */
.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.status-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: 10px;
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

.status-badge.closed {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

.btn-close-ticket {
    background: transparent;
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-close-ticket:hover {
    background: #e74c3c;
    color: white;
}

.chat-area {
    height: 350px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding-right: 10px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-subtle {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-subtle:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 500px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease-out;
}

.modal-content h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.modal-content p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.modal-content textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    color: white;
    font-family: 'Inter', sans-serif;
    margin-bottom: 20px;
    resize: vertical;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.btn-secondary-modal {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}

.btn-secondary-modal:hover {
    background: rgba(255, 255, 255, 0.05);
}

.btn-primary-modal {
    background: #e74c3c;
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}

.btn-primary-modal:hover {
    background: #c0392b;
}

.message {
    padding: 10px 15px;
    border-radius: 8px;
    max-width: 80%;
    line-height: 1.4;
    position: relative;
    font-size: 0.95rem;
}

.message.user {
    background: var(--primary);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.message.support {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.message.system {
    background: transparent;
    color: var(--text-muted);
    align-self: center;
    font-size: 0.85rem;
    font-style: italic;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    width: 100%;
    text-align: center;
    max-width: 100%;
}

.message-meta {
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: 5px;
    display: block;
    text-align: right;
}

.reply-form {
    display: flex;
    gap: 10px;
}

.reply-form input {
    flex: 1;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
}

.reply-form button {
    width: 46px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}

/* --- Auth Pages --- */
.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    background: radial-gradient(circle at center, rgba(176, 46, 72, 0.1), transparent 50%);
}

.auth-box {
    background: var(--bg-card);
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.auth-header {
    display: flex;
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 25px;
}

.auth-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 15px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: 0.3s;
}

.auth-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.auth-tab:hover {
    color: var(--text-main);
}

.full-width {
    width: 100%;
    margin-top: 10px;
}

.alert-box.error {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

/* --- Toast Notifications --- */
#toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 20000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 300px;
    animation: slideInRight 0.3s ease-out forwards;
    position: relative;
    overflow: hidden;
}

.toast.success {
    border-left: 4px solid #2ecc71;
}

.toast.error {
    border-left: 4px solid #e74c3c;
}

.toast.info {
    border-left: 4px solid #3498db;
}

.toast.warning {
    border-left: 4px solid #f1c40f;
}

.toast i {
    font-size: 1.2rem;
}

.toast.success i {
    color: #2ecc71;
}

.toast.error i {
    color: #e74c3c;
}

.toast.info i {
    color: #3498db;
}

.toast.warning i {
    color: #f1c40f;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* --- Generic Modal --- */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

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

.custom-modal {
    background: var(--bg-card);
    width: 90%;
    max-width: 400px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    text-align: center;
    transform: translateY(20px);
    transition: 0.3s;
}

.custom-modal-overlay.active .custom-modal {
    transform: translateY(0);
}

.custom-modal h3 {
    margin-top: 0;
    font-size: 1.5rem;
    color: white;
}

.custom-modal p {
    color: var(--text-muted);
    margin-bottom: 25px;
}

.custom-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-modal-cancel,
.btn-modal-confirm {
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.btn-modal-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.btn-modal-cancel:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-modal-confirm {
    background: var(--primary);
    color: white;
}

.btn-modal-confirm:hover {
    filter: brightness(1.1);
}