/**
 * Altılı Ganyan Pusulası - Ana Stil Dosyası
 * Koyu yeşil/altın tema, büyük fontlar, responsive tasarım
 */

:root {
    /* Renk Paleti - At Yarışı Teması */
    --bg-dark: #071f1b;
    --bg-darker: #020c0a;
    --bg-card: #0e2b25;
    --bg-card-hover: #15332d;
    
    --accent-gold: #d4af37;
    --accent-gold-soft: #f3d97c;
    --accent-gold-dark: #b8941f;
    
    --text-light: #f9f9f9;
    --text-muted: #b0b7b3;
    --text-dark: #6b7c78;
    
    --success: #27ae60;
    --danger: #e74c3c;
    --warning: #f39c12;
    --info: #3498db;
    
    --border-color: rgba(212, 175, 55, 0.2);
    --border-radius: 12px;
    --border-radius-sm: 8px;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);
    
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-size-base: 17px;
    --font-size-lg: 19px;
    --font-size-xl: 22px;
    --font-size-2xl: 26px;
}

/* Reset & Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: var(--font-size-base);
    line-height: 1.7;
    color: var(--text-light);
    background: radial-gradient(circle at top, #114232, var(--bg-darker));
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
.site-header {
    background: rgba(3, 20, 16, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 20px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 700;
    font-size: var(--font-size-xl);
    transition: opacity 0.2s;
}

.logo a:hover {
    opacity: 0.9;
}

.logo-icon {
    font-size: 28px;
}

.logo-accent {
    color: var(--accent-gold-soft);
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.main-nav a {
    color: var(--text-light);
    text-decoration: none;
    padding: 10px 16px;
    border-radius: var(--border-radius-sm);
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
}

.main-nav a:hover {
    background: rgba(212, 175, 55, 0.15);
    color: var(--accent-gold-soft);
}

.main-nav .admin-link {
    background: rgba(212, 175, 55, 0.2);
    color: var(--accent-gold);
    font-weight: 600;
}

.main-nav .admin-link:hover {
    background: rgba(212, 175, 55, 0.3);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--accent-gold);
    border-radius: 2px;
    transition: all 0.3s;
}

/* Buttons */
.btn {
    display: inline-block;
    background: var(--accent-gold);
    color: #000;
    font-weight: 600;
    border-radius: 999px;
    padding: 12px 24px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

.btn:hover {
    background: var(--accent-gold-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
}

.btn-outline:hover {
    background: rgba(212, 175, 55, 0.1);
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

/* Main Content */
.site-main {
    flex: 1;
    padding: 30px 0 40px;
}

/* Cards */
.card {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    margin-bottom: 24px;
    transition: all 0.3s;
}

.card:hover {
    border-color: rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 16px;
    flex-wrap: wrap;
}

.card-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 8px;
}

.card-subtitle {
    font-size: var(--font-size-base);
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.badge-free {
    background: rgba(39, 174, 96, 0.2);
    color: var(--success);
    border: 1px solid rgba(39, 174, 96, 0.3);
}

.badge-premium {
    background: rgba(212, 175, 55, 0.2);
    color: var(--accent-gold-soft);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.badge-admin {
    background: rgba(231, 76, 60, 0.2);
    color: var(--danger);
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.badge-type {
    background: rgba(52, 152, 219, 0.2);
    color: var(--info);
    border: 1px solid rgba(52, 152, 219, 0.3);
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-light);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--border-radius-sm);
    border: 2px solid var(--border-color);
    background: rgba(3, 20, 16, 0.8);
    color: var(--text-light);
    font-size: 16px;
    font-family: inherit;
    transition: all 0.2s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: rgba(3, 20, 16, 0.95);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    cursor: pointer;
}

.form-actions {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.filters .form-group {
    margin-bottom: 0;
}

/* Alerts */
.alert {
    padding: 16px 20px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 20px;
    font-size: 15px;
    border: 2px solid;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-error {
    background: rgba(231, 76, 60, 0.15);
    color: var(--danger);
    border-color: rgba(231, 76, 60, 0.3);
}

.alert-success {
    background: rgba(39, 174, 96, 0.15);
    color: var(--success);
    border-color: rgba(39, 174, 96, 0.3);
}

.alert-warning {
    background: rgba(243, 156, 18, 0.15);
    color: var(--warning);
    border-color: rgba(243, 156, 18, 0.3);
}

.alert-info {
    background: rgba(52, 152, 219, 0.15);
    color: var(--info);
    border-color: rgba(52, 152, 219, 0.3);
}

/* Prediction Cards */
.prediction-card {
    border-left: 4px solid var(--accent-gold);
}

.prediction-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.prediction-location {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--accent-gold-soft);
}

.prediction-date {
    color: var(--text-muted);
    font-size: 15px;
}

.prediction-numbers {
    background: rgba(212, 175, 55, 0.1);
    padding: 16px;
    border-radius: var(--border-radius-sm);
    margin: 16px 0;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    line-height: 1.8;
    white-space: pre-wrap;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.prediction-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 12px;
}

.prediction-author {
    color: var(--text-muted);
    font-size: 14px;
}

/* Footer */
.site-footer {
    border-top: 2px solid var(--border-color);
    padding: 30px 0;
    background: rgba(3, 20, 16, 0.95);
    margin-top: auto;
}

.footer-content {
    text-align: center;
}

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

.footer-disclaimer {
    font-size: 13px;
    color: var(--text-dark);
    font-style: italic;
}

/* Admin Panel Specific */
.admin-form {
    max-width: 800px;
}

.admin-message-box {
    background: rgba(212, 175, 55, 0.05);
    border: 2px dashed var(--border-color);
    padding: 20px;
    border-radius: var(--border-radius-sm);
    margin-top: 20px;
}

.admin-message-box label {
    color: var(--accent-gold-soft);
}

/* Text Utilities */
.text-muted {
    color: var(--text-muted);
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --font-size-base: 16px;
        --font-size-lg: 18px;
        --font-size-xl: 20px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .header-inner {
        flex-wrap: wrap;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid var(--border-color);
    }
    
    .main-nav.active {
        display: flex;
    }
    
    .main-nav a {
        width: 100%;
        text-align: center;
    }
    
    .card {
        padding: 18px;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filters {
        grid-template-columns: 1fr;
    }
    
    .prediction-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .prediction-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .btn-large {
        padding: 14px 24px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .logo a {
        font-size: 18px;
    }
    
    .logo-icon {
        font-size: 24px;
    }
    
    .card {
        padding: 16px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    border-top-color: var(--accent-gold);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .btn,
    .form-actions {
        display: none;
    }
    
    .card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
