/* --- Google Shriftini import qilish --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

/* --- Asosiy sozlamalar va yangi palitra --- */
:root {
    --bg-dark: #1a1a1a;
    --bg-surface: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --accent-blue: #3A86FF;
    --accent-purple: #8338EC;
    --accent-green: #00C851;
    --accent-red: #FF4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    overflow: hidden;
    font-family: 'Montserrat', 'Helvetica', 'Arial', sans-serif;
}

body {
    background-color: var(--bg-dark); /* Yangi fon */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Ilova uchun asosiy o'ram */
.app-wrapper {
    width: 100%;
    max-width: 480px;
    height: 100%;
    position: relative;
    background-color: var(--bg-surface); /* Yangi sirt foni */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 40px rgba(0,0,0,0.5); /* Soya o'zgartirildi */
}

/* Header stillari */
.header {
    position: absolute;
    top: 20px;
    left: 15px;
    right: 15px;
    z-index: 100;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue)); /* Yangi gradient */
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
}

.logo-text {
    font-size: 22px;
    font-weight: bold;
    color: var(--text-primary); /* Matn oq */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

.download-btn {
    background-color: rgba(255, 255, 255, 0.9); /* Oq tugma ko'k fonda yaxshi ko'rinadi */
    color: #333; /* To'q matn */
    padding: 8px 16px;
    border-radius: 20px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 14px;
}

.download-btn:hover {
    background-color: white;
}

/* Kartalar konteyneri */
.card-container {
    flex-grow: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    background: var(--bg-dark); /* Asosiy fon */
}

.card {
    width: 100%;
    height: 100%;
    position: absolute;
    background-color: #444; /* Zaxira fon */
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    cursor: grab;
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    will-change: transform, opacity;
}

.card:active {
    cursor: grabbing;
}

.card.dragging {
    transition: none;
}

.card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); /* Gradient kuchaytirildi */
    border-radius: 0 0 15px 15px;
}

.card-info {
    padding: 20px;
    color: var(--text-primary);
    position: absolute;
    bottom: 120px;
    left: 0;
    right: 0;
    z-index: 10;
}

.card-name {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 8px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.card-distance {
    font-size: 16px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Faollik indikatori */
.activity-indicator {
    position: absolute;
    top: 90px;
    left: 15px;
    z-index: 15;
    background: rgba(0, 200, 81, 0.9); /* Yangi yashil (var(--accent-green)) */
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    backdrop-filter: blur(5px);
}

/* Boshqaruv tugmalari */
.controls {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 25px;
    z-index: 50;
    transition: opacity 0.3s ease;
}

.control-btn {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: none; /* Chegara olib tashlandi */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white; /* Ikonka rangi oq */
    transition: all 0.2s ease-in-out;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.control-btn:hover {
    transform: scale(1.1);
}

.dislike-btn {
    background-color: var(--accent-red); /* Yangi qizil fon */
}

.like-btn {
    background-color: var(--accent-green); /* Yangi yashil fon */
}

/* --- Banner stillari (To'q mavzu uchun moslashtirildi) --- */
.promo-banner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Fon yanada to'qartirildi */
    z-index: 200;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
}

.promo-banner-overlay.visible {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease;
}

.promo-banner-content {
    background: var(--bg-surface); /* Yangi sirt foni */
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    max-width: 320px;
    width: 90%;
    position: relative;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.promo-banner-overlay.visible .promo-banner-content {
    transform: scale(1);
}

.promo-banner-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: #777; /* Kulrang */
    cursor: pointer;
}

.promo-banner-content h2 {
    color: var(--text-primary); /* Oq matn */
    margin-bottom: 15px;
    font-size: 22px;
}

.promo-banner-content p {
    color: var(--text-secondary); /* Oqish kulrang matn */
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.5;
}

.promo-banner-download {
    background: linear-gradient(45deg, var(--accent-blue), var(--accent-purple)); /* Yangi gradient */
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(58, 134, 255, 0.2); /* Soya o'zgartirildi */
    font-size: 16px;
    width: 100%;
    margin-bottom: 15px;
}

.promo-banner-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(58, 134, 255, 0.3);
}

.promo-banner-content small {
    color: #888;
    font-size: 12px;
}

/* Hodisa banneri uchun */
.event-banner-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin: -10px auto 15px;
    border: 4px solid var(--accent-blue); /* Yangi chegara rangi */
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    display: none;
}

/* Anketalar tugaganda */
.end-of-deck-message {
    text-align: center;
    color: var(--text-secondary);
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.end-of-deck-message h2 {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.end-of-deck-message p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 300px;
}