/* ===========================
   DuckTools Website Styles
   Gold/Dark Theme (matching original design)
   =========================== */

/* ===== CSS Variables ===== */
:root {
    --color-gold: #d4af37;
    --color-gold-light: #f4d87f;
    --color-gold-dark: #b8962e;
    --color-background: #0a0a0a;
    --color-surface: #1a1a1a;
    --color-surface-light: #2a2a2a;
    --color-text: #e0e0e0;
    --color-text-muted: #999;
    --color-success: #22c55e;
    --color-error: #ef4444;
    --color-warning: #f59e0b;
    --border-radius: 8px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-gold: 0 2px 20px rgba(212, 175, 55, 0.3);
    --transition: all 0.3s ease;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--color-gold);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-gold-light);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

/* ===== Container ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
    color: #000;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-gold-light) 0%, var(--color-gold) 100%);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--color-gold);
    border: 1px solid rgba(212, 175, 55, 0.4);
}

.btn-secondary:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--color-gold);
    color: var(--color-gold-light);
}

.btn-register {
    background: var(--color-gold);
    color: #000;
}

.btn-register:hover {
    background: var(--color-gold-light);
    color: #000;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ===== Forms ===== */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-text);
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    background-color: var(--color-surface);
    border: 1px solid var(--color-surface-light);
    border-radius: var(--border-radius);
    color: var(--color-text);
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.form-input::placeholder {
    color: var(--color-text-muted);
}

.form-error {
    color: var(--color-error);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* ===== Header & Navigation ===== */
.site-header {
    background: rgba(26, 26, 26, 0.95);
    box-shadow: var(--shadow-gold);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.navbar {
    padding: 0.5rem 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-gold);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.nav-brand:hover {
    color: var(--color-gold-light);
}

.nav-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

.nav-link {
    display: block;
    padding: 0.5rem 1rem;
    color: #ccc;
    font-weight: 500;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--color-gold);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-gold);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-link-register {
    background: var(--color-gold) !important;
    color: #000 !important;
}

.nav-link-register:hover {
    background: var(--color-gold-light) !important;
}

.nav-link-register::after {
    display: none;
}

.nav-link-logout {
    color: var(--color-error) !important;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle-icon {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-gold);
    position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--color-gold);
    left: 0;
}

.nav-toggle-icon::before { top: -8px; }
.nav-toggle-icon::after { bottom: -8px; }

/* Logo styling */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-gold);
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
    transition: color 0.3s ease;
    text-decoration: none;
}

.logo:hover {
    color: var(--color-gold-light);
}

.logo-img {
    width: 36px;
    height: 36px;
    max-width: 36px;
    max-height: 36px;
    object-fit: contain;
    flex-shrink: 0;
}

.logo-text {
    font-weight: 700;
    font-size: 1.5rem;
}

/* Navigation links container */
.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: #ccc;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-gold);
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-gold);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Bot navigation link with special styling */
.nav-links a.nav-link-bot {
    background: rgba(212, 175, 55, 0.15);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--color-gold);
}

.nav-links a.nav-link-bot:hover {
    background: rgba(212, 175, 55, 0.25);
    border-color: var(--color-gold);
}

.nav-links a.nav-link-bot::after {
    display: none;
}

/* Navigation auth section */
.nav-auth {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* User menu dropdown */
.user-menu {
    position: relative;
}

.user-menu-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.4);
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--color-gold);
    font-size: 14px;
    font-weight: 500;
}

.user-menu-toggle:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--color-gold);
}

.user-name {
    color: var(--color-gold);
}

.menu-arrow {
    font-size: 10px;
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.user-menu-toggle:hover .menu-arrow {
    transform: translateY(2px);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: rgba(26, 26, 26, 0.98);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: var(--border-radius);
    min-width: 200px;
    display: none;
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.user-dropdown.active {
    display: block;
    animation: dropdownFadeIn 0.2s ease;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--color-text);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.dropdown-item:hover {
    background: rgba(212, 175, 55, 0.15);
    color: var(--color-gold);
}

.dropdown-item.logout {
    color: #ff6b7a;
}

.dropdown-item.logout:hover {
    background: rgba(220, 53, 69, 0.15);
    color: #ff8891;
}

.dropdown-icon {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.dropdown-divider {
    height: 1px;
    background: rgba(212, 175, 55, 0.2);
    margin: 4px 0;
}

/* ===== Main Content ===== */
.main-content {
    flex: 1;
}

/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-background) 100%);
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-logo {
    width: 150px;
    height: 150px;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.5));
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-gold);
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Offerings Section ===== */
.offerings-section {
    padding: 5rem 0;
    background: var(--color-background);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--color-gold);
    font-size: 2rem;
}

.offerings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.offering-card {
    background: var(--color-surface);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
    display: block;
    color: var(--color-text);
}

.offering-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: var(--shadow-gold);
}

.offering-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.offering-card h3 {
    color: var(--color-gold);
    margin-bottom: 0.75rem;
}

.offering-card p {
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.offering-cta {
    color: var(--color-gold);
    font-weight: 500;
    font-size: 0.9rem;
}

.offering-card:hover .offering-cta {
    color: var(--color-gold-light);
}

/* ===== Stats Section ===== */
.stats-section {
    padding: 4rem 0;
    background: var(--color-surface);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-card {
    padding: 1.5rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-gold);
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.stat-label {
    color: var(--color-text-muted);
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-background) 100%);
    text-align: center;
}

.cta-section h2 {
    color: var(--color-gold);
    margin-bottom: 1rem;
}

.cta-section p {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Footer ===== */
.footer,
.site-footer {
    background: rgba(26, 26, 26, 0.95);
    color: #ccc;
    padding: 3rem 0 1rem;
    margin-top: auto;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--color-gold);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.footer-section h4 {
    color: var(--color-gold);
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.footer-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-section li {
    margin-bottom: 0;
}

.footer-section a {
    color: #888;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--color-gold);
}

.footer-section p {
    color: #888;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ElitePvPers Partnership */
.partnership-text {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.epvp-link {
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.epvp-link:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.epvp-logo {
    max-width: 200px;
    height: auto;
    border-radius: 4px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.footer-bottom p {
    color: #666;
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* ===== Cards ===== */
.card {
    background-color: var(--color-surface);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--color-surface-light);
}

.card-header {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-surface-light);
}

.card-title {
    margin-bottom: 0;
    color: var(--color-gold);
}

/* ===== Alerts ===== */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.alert-success {
    background-color: rgba(34, 197, 94, 0.1);
    border: 1px solid var(--color-success);
    color: var(--color-success);
}

.alert-error {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--color-error);
    color: var(--color-error);
}

.alert-warning {
    background-color: rgba(245, 158, 11, 0.1);
    border: 1px solid var(--color-warning);
    color: var(--color-warning);
}

/* Flash Messages */
.flash-messages {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
}

.flash-message {
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.flash-success {
    background: rgba(46, 160, 67, 0.2);
    border: 1px solid rgba(46, 160, 67, 0.5);
    color: #7ee787;
}

.flash-error {
    background: rgba(248, 81, 73, 0.2);
    border: 1px solid rgba(248, 81, 73, 0.5);
    color: #ff7b72;
}

.flash-warning {
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid rgba(212, 175, 55, 0.5);
    color: var(--color-gold-light);
}

.flash-info {
    background: rgba(88, 166, 255, 0.2);
    border: 1px solid rgba(88, 166, 255, 0.5);
    color: #79c0ff;
}

.flash-close {
    background: transparent;
    border: none;
    color: inherit;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    margin-left: 1rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.flash-close:hover {
    opacity: 1;
}

/* ===== Page Container ===== */
.page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.page-header {
    margin-bottom: 2rem;
}

.page-title {
    margin-bottom: 0.5rem;
    color: var(--color-gold);
}

.page-subtitle {
    color: var(--color-text-muted);
}

/* ===== Auth Pages ===== */
.auth-container {
    max-width: 450px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

.auth-card {
    background-color: var(--color-surface);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--color-gold);
}

.auth-header p {
    color: var(--color-text-muted);
    margin-bottom: 0;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-surface-light);
    color: var(--color-text-muted);
}

/* ===== Loading ===== */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-surface-light);
    border-top-color: var(--color-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 1.5rem;
    }

    .nav-links {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-container {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem 0;
        border-top: 1px solid rgba(212, 175, 55, 0.2);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 0.5rem 0;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-auth {
        width: 100%;
        justify-content: center;
        padding-top: 1rem;
        border-top: 1px solid rgba(212, 175, 55, 0.2);
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-surface);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow);
    }

    .nav-menu.active {
        display: flex;
    }

    .hero {
        padding: 4rem 1.5rem;
    }

    .hero-logo {
        width: 80px;
        height: 80px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .offerings-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .flash-messages {
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section ul {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.2rem;
    }

    .nav-logo {
        width: 36px;
        height: 36px;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .btn-large {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }
}
