/* Базовые настройки и переменные */
:root {
    --bg-dark: #050505;
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --primary-gradient: linear-gradient(135deg, #ff6b6b, #ff8e53, #e52e71);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Эффект свечения на фоне */
.bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.4;
}

.glow-1 {
    top: -100px;
    right: -200px; /* Свечение справа, чтобы отличалось от главной */
    background: radial-gradient(circle, rgba(229,46,113,0.3) 0%, rgba(0,0,0,0) 70%);
}

.glow-2 {
    bottom: 10%;
    left: -200px; /* Свечение слева */
    background: radial-gradient(circle, rgba(255,138,0,0.2) 0%, rgba(0,0,0,0) 70%);
}

/* Контейнер */
.main-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Шапка (Navbar) */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.logo {
    font-size: 1.2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    color: #e52e71;
}

.nav-links {
    display: none; 
    gap: 2rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
}

@media (min-width: 768px) {
    .nav-links { display: flex; }
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-main);
}

.btn-secondary {
    border: 1px solid var(--glass-border);
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s;
    background: rgba(255,255,255,0.05);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
}

/* Базовый класс для стекла */
.glass {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* ========================================= */
/* СТИЛИ КАТАЛОГА                            */
/* ========================================= */

.catalog-content {
    padding: 3rem 0 5rem 0;
}

.catalog-header {
    text-align: center;
    margin-bottom: 3rem;
}

.title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Блок фильтров */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
    border-radius: 20px;
    margin-bottom: 3rem;
    align-items: center;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--text-main);
    color: var(--bg-dark);
    border-color: var(--text-main);
}

.search-box {
    margin-left: auto;
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    flex-grow: 1;
    max-width: 300px;
}

@media (max-width: 768px) {
    .search-box {
        margin-left: 0;
        max-width: 100%;
        width: 100%;
    }
}

.search-box i {
    color: var(--text-muted);
    margin-right: 0.5rem;
}

.search-box input {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-family: inherit;
    outline: none;
    width: 100%;
    font-size: 0.95rem;
}

/* Сетка карточек */
.places-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .places-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .places-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Сама карточка */
.place-card {
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, border-color 0.3s;
}

.place-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Фото заведения */
.place-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.status {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status.open {
    color: #4ade80;
    border: 1px solid rgba(74,222,128,0.3);
}

.status.closed {
    color: #f87171;
    border: 1px solid rgba(248,113,113,0.3);
}

.rating {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fbbf24;
    border: 1px solid rgba(251,191,36,0.3);
}

/* Информация в карточке */
.place-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.place-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.place-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Теги (Клуб, Бар, DJ) */
.place-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.place-tags span {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    padding: 0.3rem 0.8rem;
    border-radius: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Подвал карточки */
.place-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--glass-border);
    padding-top: 1rem;
}

.address {
    font-size: 0.85rem;
    color: var(--text-muted);
    max-width: 65%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.address i {
    margin-right: 0.3rem;
    color: #e52e71;
}

.btn-view {
    background: var(--text-main);
    color: var(--bg-dark);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    transition: transform 0.2s;
}

.btn-view:hover {
    transform: scale(1.05);
}

/* Подвал Сайта */
.footer {
    margin-top: auto;
    padding: 2rem;
    border-radius: 24px 24px 0 0;
    border-bottom: none;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-logo {
    font-size: 1.2rem;
    font-weight: 800;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-links a:hover { color: var(--text-main); }

.footer-copyright {
    text-align: center;
    font-size: 0.8rem;
    color: #555;
    border-top: 1px solid var(--glass-border);
    padding-top: 1.5rem;
}