/* Root Variables */
:root {
    --primary-color: #ff006e;
    --secondary-color: #8338ec;
    --accent-color: #fb5607;
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-card: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --border-color: #3a3a3a;
    --shadow: rgba(0, 0, 0, 0.5);
    --gradient-1: linear-gradient(135deg, #ff006e 0%, #8338ec 100%);
    --gradient-2: linear-gradient(135deg, #fb5607 0%, #ff006e 100%);
}

/* Light Theme */
body.light-theme {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --bg-card: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --border-color: #e0e0e0;
    --shadow: rgba(0, 0, 0, 0.1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Modal Styles */
.modal {
    display: flex;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px var(--shadow);
    border: 1px solid var(--border-color);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content h2 {
    font-size: 28px;
    margin-bottom: 15px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-content p {
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

.btn-no, .btn-yes {
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-no {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.btn-no:hover {
    background: var(--border-color);
    transform: translateY(-2px);
}

.btn-yes {
    background: var(--gradient-1);
    color: white;
}

.btn-yes:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 0, 110, 0.4);
}

.modal-disclaimer {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Language Selection */
.language-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.lang-btn {
    padding: 20px 40px;
    font-size: 18px;
    font-weight: 600;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-btn:hover {
    background: var(--gradient-1);
    color: white;
    border-color: transparent;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 0, 110, 0.4);
}

/* Header */
header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 32px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--primary-color);
}

.header-controls {
    display: flex;
    gap: 15px;
}

.icon-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 18px;
}

.icon-btn:hover {
    background: var(--gradient-1);
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(255, 0, 110, 0.4);
}

/* Hero Section */
.hero {
    padding: 80px 0;
    text-align: center;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 0, 110, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 20px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.search-box {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
}

.search-box input {
    flex: 1;
    padding: 18px 25px;
    font-size: 16px;
    border: 2px solid var(--border-color);
    border-radius: 15px;
    background: var(--bg-card);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 0, 110, 0.1);
}

.search-btn {
    padding: 18px 30px;
    background: var(--gradient-1);
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 0, 110, 0.4);
}

/* Filters */
.filters {
    padding: 30px 0;
    background: var(--bg-primary);
}

.filter-tabs {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-tab {
    padding: 15px 30px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.filter-tab:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.filter-tab.active {
    background: var(--gradient-1);
    color: white;
    border-color: transparent;
}

.badge {
    background: var(--accent-color);
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 12px;
    margin-left: 5px;
}

/* Models Grid */
.models-section {
    padding: 60px 0;
    background: var(--bg-primary);
}

.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.model-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.model-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow);
    border-color: var(--primary-color);
}

.model-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    position: relative;
}

.model-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gradient-2);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.model-discount {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: #00ff88;
    color: #000;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
}

.model-info {
    padding: 20px;
}

.model-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.model-country {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 15px;
}

.model-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.model-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
}

.model-likes {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-secondary);
    font-size: 14px;
}

.model-likes i {
    color: var(--primary-color);
}

/* Admin Panel */
.admin-panel {
    display: none;
    position: fixed;
    z-index: 1000;
    right: 0;
    top: 0;
    width: 500px;
    height: 100%;
    background: var(--bg-card);
    box-shadow: -5px 0 30px var(--shadow);
    overflow-y: auto;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.admin-content {
    padding: 30px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.admin-header h2 {
    font-size: 28px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.close-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(90deg);
}

.admin-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 600;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 0, 110, 0.1);
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
}

.btn-primary {
    width: 100%;
    padding: 15px;
    background: var(--gradient-1);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 0, 110, 0.4);
}

.models-list {
    max-height: 400px;
    overflow-y: auto;
}

.model-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--bg-secondary);
    border-radius: 10px;
    margin-bottom: 10px;
}

.model-item-info {
    flex: 1;
}

.model-item-name {
    font-weight: 600;
    color: var(--text-primary);
}

.model-item-country {
    font-size: 12px;
    color: var(--text-secondary);
}

.btn-delete {
    padding: 8px 15px;
    background: #ff3333;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-delete:hover {
    background: #cc0000;
    transform: scale(1.05);
}

/* Analytics Section */
.analytics-section {
    margin: 20px 0;
}

.analytics-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.analytics-card {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 2px solid var(--border-color);
}

.analytics-icon {
    font-size: 32px;
}

.analytics-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
}

.analytics-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.clicks-table {
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 15px;
    max-height: 300px;
    overflow-y: auto;
}

.clicks-table table {
    width: 100%;
    border-collapse: collapse;
}

.clicks-table th,
.clicks-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.clicks-table th {
    font-weight: 600;
    color: var(--text-primary);
}

.clicks-table td {
    color: var(--text-secondary);
}

/* Image Preview */
.image-preview {
    margin-top: 15px;
    border-radius: 10px;
    overflow: hidden;
    max-width: 100%;
    display: none;
}

.image-preview img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
}

.image-preview.active {
    display: block;
}

/* Contact Page */
.contact-page {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
}

.contact-content {
    background: var(--bg-card);
    padding: 50px;
    border-radius: 30px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 30px 80px var(--shadow);
    border: 1px solid var(--border-color);
    animation: modalSlideIn 0.4s ease;
}

.contact-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.contact-header h2 {
    font-size: 32px;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-body {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 30px;
    background: var(--bg-secondary);
    border-radius: 20px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.contact-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 0, 110, 0.3);
}

.contact-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    flex-shrink: 0;
}

.contact-info h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.contact-info a {
    font-size: 18px;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    word-break: break-all;
}

.contact-info a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Delete Confirmation Modal */
.delete-modal {
    display: none;
}

.delete-modal-content {
    max-width: 450px;
    text-align: center;
    padding: 40px;
}

.delete-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff3333 0%, #cc0000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 40px;
    color: white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 51, 51, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 20px rgba(255, 51, 51, 0);
    }
}

.delete-modal-content h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.delete-modal-content p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

.delete-modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-cancel {
    padding: 15px 35px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background: var(--border-color);
    transform: translateY(-2px);
}

.btn-confirm-delete {
    padding: 15px 35px;
    background: linear-gradient(135deg, #ff3333 0%, #cc0000 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-confirm-delete:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 51, 51, 0.5);
}

/* Footer */
footer {
    background: var(--bg-secondary);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin-top: 60px;
}

footer p {
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.footer-disclaimer {
    font-size: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .hero-title {
        font-size: 36px;
    }

    .models-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .admin-panel {
        width: 100%;
    }

    .filter-tabs {
        justify-content: flex-start;
        overflow-x: auto;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-1);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-2);
}

/* Loading Animation */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

.loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}
