/* === Базові налаштування === */
body {
    margin: 0;
    padding: 0;
    background-color: #000;
    color: #f5f5f5;
    font-family: 'Segoe UI', sans-serif;
}
a { color: #cdfa05; text-decoration: none; }
a:hover { text-decoration: underline; }

/* === Заголовки === */
.section-title {
    color: #d4af37;
    text-align: center;
    margin: 20px 0;
}
.section-title.large { font-size: 2.5em; text-shadow: 2px 2px 8px rgba(0,0,0,0.8); }
.section-title.medium { font-size: 2em; }
.section-title.small { font-size: 1.4em; }

/* === Примітки / інформаційні повідомлення === */
.note {
    text-align: center;
    margin: 20px auto;
    font-size: 1.1em;
    color: #ddd;
    max-width: 800px;
}

/* === Навігація === */
nav {
    display: flex;
    justify-content: center;   /* вирівнювання кнопок по центру */
    flex-wrap: wrap;           /* перенос при вузькому екрані */
    gap: 20px;
    margin: 20px auto;         /* auto → вирівнює сам контейнер по центру */
    max-width: calc(7 * 140px); /* максимум 7 кнопок у ряд */
}
nav .button {
    width: auto;               /* ширина = довжина тексту */
    flex: 0 0 auto;            /* не розтягувати */
    text-align: center;
}

/* Загальний контейнер керування — фіксується у верхньому кутку */
.top-bar-controls {
    position: fixed;
    top: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 10px; /* Відступ між кнопкою мови та входу */
    z-index: 1000;
}

/* Стилізація кастомного селектора під класи входу */
.lang-select {
    background-color: #000;
    color: #d4af37;
    padding: 8px 12px; /* Трохи скориговано для рівноваги з текстом */
    border: 1px solid #d4af37;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px; /* Наближено до розміру шрифту кнопок */
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    appearance: none; /* Прибирає стандартну системну стрілку браузера */
    -webkit-appearance: none;
    -moz-appearance: none;
    text-align: center;
}

/* Ефект наведення на вибір мови */
.lang-select:hover {
    background-color: #d4af37;
    color: #000;
    box-shadow: 0 0 8px rgba(212,175,55,0.8);
}

/* Стилізація опцій всередині списку, щоб вони не зливалися */
.lang-select option {
    background-color: #000;
    color: #d4af37;
}

/* Твої базові стилі для кнопок, залишаємо без змін, але прибираємо position з .login-button */
.button.login {
    display: inline-block;
    background-color: #000;
    color: #d4af37;
    padding: 8px 16px;
    border: 1px solid #d4af37;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
}
.button.login:hover {
    background-color: #d4af37;
    color: #000;
    box-shadow: 0 0 8px rgba(212,175,55,0.8);
}

.button.logout {
    display: inline-block;
    background-color: #d4af37;
    color: #000;
    padding: 8px 16px;
    border: 1px solid #000;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
}
.button.logout:hover {
    background-color: #000;
    color: #d4af37;
    box-shadow: 0 0 8px rgba(0,0,0,0.8);
}


.input-field {
    width: 100%;
    padding: 12px 16px;
    margin: 8px 0;
    border: 1px solid #d4af37;   /* золота рамка */
    border-radius: 6px;
    background-color: #111;      /* чорний фон */
    color: #f5f5f5;              /* світлий текст */
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.input-field:focus {
    border-color: #ffd700;       /* яскравіше золото при фокусі */
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
    outline: none;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    color: #f5f5f5;
}



/* === Кнопки === */
.button, .btn {
    display: inline-block;
    background-color: #111;
    color: #d4af37;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: bold;
    border: 1px solid #333;
    transition: background 0.3s, transform 0.2s;
}
.button:hover, .btn:hover { background-color: #333; transform: scale(1.05); color: #fff; }
.button.active { background-color: #646649; color: #f1dada; }

/* === Реєстрація в шаблоні === */
.auth-prompt {
    margin-top: 20px;
    text-align: center;
}

.auth-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
}

.auth-buttons .button {
    padding: 10px 18px;
    font-size: 15px;
}


.legal-links {
    margin-top: 5px;
    text-align: center;
}

.legal-link {
    font-size: 12px;
    color: #d4af37; /* золотий */
    text-decoration: none;
}

.legal-link:hover {
    text-decoration: underline;
}



/* === Преміум сторінка === */
.premium-section {
    text-align: center;
    margin: 40px auto;
    max-width: 700px;
}

.premium-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 20px;
    margin: 40px 0;
    width: 100%;
    padding: 0 20px;          /* мінімальні відступи з боків */
    box-sizing: border-box;
}

.benefit {
    background: #111;
    border: 1px solid #d4af37;
    border-radius: 8px;
    padding: 30px 20px;
    color: #f5f5f5;
    text-align: center;
}

.benefit .icon {
    display: block;
    margin: 0 auto 16px auto;
    height: 80px;   /* збільшені іконки */
    width: auto;
    filter: drop-shadow(0 0 6px #d4af37);
}

p {
    color: #d4af37; /* преміум золото */
}


.author-block {
  display: flex;
  align-items: center;
  margin-top: 10px;
  font-size: 14px;
  color: #ddd; /* світлий текст для темного фону */
}

.author-block .login {
  font-weight: bold;
  margin-right: 8px;
  color: #f5c542; /* золотистий акцент для логіну */
}

.status-icon {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  border-radius: 50%; /* робить іконку більш "бейджевою" */
  box-shadow: 0 0 4px rgba(255, 215, 0, 0.6); /* легке світіння */
}

.status-wrapper {
  position: relative;
  display: inline-block;
}

.tooltip {
  visibility: hidden;
  background-color: #f5c542; /* золотистий фон */
  color: #222; /* темний текст для контрасту */
  text-align: center;
  font-size: 12px;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 4px;
  position: absolute;
  bottom: 125%; /* над іконкою */
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  box-shadow: 0 0 6px rgba(245, 197, 66, 0.7); /* легке світіння */
}

.status-wrapper:hover .tooltip {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(-4px); /* легкий рух при появі */
}

.share-block {
    margin-top: 15px;
    text-align: center;
}

/* Основна кнопка */
.share-button.main {
    background-color: #111;
    color: #d4af37;
    font-weight: bold;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    animation: pulse 2s infinite;
    transition: all 0.3s ease;
}
.share-button.main:hover {
    background-color: #d4af37;
    color: #111;
}

/* Круглі кнопки соцмереж */
.circle-button {
    background-color: #111;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 6px;
    transition: background-color 0.3s ease;
}
.circle-button:hover {
    background-color: #d4af37;
}

.circle-icon {
    width: 24px;
    height: 24px;
}

/* Соцмережі завжди видно */
.share-fallback.always-visible {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

/* Пульсуюче сяйво */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
    }
    70% {
        box-shadow: 0 0 15px 10px rgba(212, 175, 55, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}





.payment-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.payment-buttons .button.disabled {
    background-color: #333;
    border: 1px solid #666;
    cursor: not-allowed;
    opacity: 0.6;
}


/* === Hero секція === */
.hero {
    position: relative;
    height: 130vh;
    background: #000 url("https://storage.googleapis.com/onedash-media/static/logo-large.png") no-repeat center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.7); z-index: 1; }
.hero-text {
    position: relative; z-index: 2;
    color: #fff; background: rgba(0,0,0,0.5);
    padding: 30px; border-radius: 10px;
    animation: fadeIn 2s ease-in-out;
}
.hero-text h1 { font-size: 4em; margin-bottom: 20px; color: #d4af37; text-shadow: 2px 2px 8px rgba(0,0,0,0.9); }
.hero-text h2 { font-size: 2em; margin-bottom: 15px; text-shadow: 1px 1px 6px rgba(0,0,0,0.8); }
.hero-text p { font-size: 1.2em; text-shadow: 1px 1px 6px rgba(0,0,0,0.8); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* === Шапка === */
.page-header { display: flex; align-items: center; justify-content: center; gap: 15px; padding: 15px; }.page-header {
    position: relative;          /* щоб кнопка позиціонувалась всередині */
    display: flex;
    align-items: center;
    justify-content: center;     /* логотип і назва лишаються по центру */
    gap: 15px;
    padding: 15px;
}

.logo-small { height: 50px; }
.site-title { font-size: 1.8em; font-weight: bold; color: #d4af37; }

/* === Фонова сітка через псевдоелемент === */
.background-grid::before {
    content: "";
    position: fixed;
    inset: 0;
    background: url("https://storage.googleapis.com/onedash-media/static/logo-grid.png") repeat center;
    background-size: 180px 200px;
    opacity: 0.1; /* нижче ніж було */
    filter: brightness(0.7); /* приглушення */
    z-index: -1;
}





/* === Універсальний описовий блок === */
.description-block {
    max-width: 900px; margin: 40px auto; padding: 25px 35px;
    background: rgba(0,0,0,0.6); border-radius: 12px;
    color: #f4fc81; line-height: 1.6; font-size: 16px;
    border: 2px solid #f5c518; box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    text-align: center;
}
.description-block h2 { color: #d4af37; margin-bottom: 15px; }

/* === Універсальна галерея === */
.gallery-block {
    display: flex; justify-content: center; gap: 20px;
    flex-wrap: wrap; margin: 30px auto;
}
.gallery-block img {
    width: 250px;
    height: 250px;
    object-fit: contain; /* вписує фото у квадрат без обрізання */
    border-radius: 10px;
    box-shadow: 0 0 12px rgba(0,0,0,0.6);
    cursor: pointer;
    transition: transform 0.3s ease;
    background-color: #000; /* опційно: чорний фон для "порожніх" полів */
}

.gallery-block img:hover { transform: scale(1.05); }

/* === Контентні секції (інгредієнти, кроки, аналоги) === */
.content-section {
    margin: 30px auto; max-width: 600px;
    background: rgba(26,26,26,0.9); padding: 20px;
    border-radius: 10px; box-shadow: 0 0 12px rgba(0,0,0,0.6);
}
.content-section h3 { color: #d4af37; text-align: center; margin-bottom: 15px; }
.content-section ul, .content-section ol { list-style-position: inside; padding-left: 0; margin: 0; }
.content-section li { padding: 8px 0; border-bottom: 1px solid #333; color: rgb(239, 250, 82); }
.content-section li:last-child { border-bottom: none; }

/* === Картки === */
.card-list {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 30px; padding: 30px; justify-items: center;
}
.cocktail-card {
    background: rgba(12,12,12,0.8); border-radius: 12px;
    padding: 25px; width: 250px; text-align: center;
    box-shadow: 0 0 14px rgba(255,215,0,0.35);
    transition: 0.25s ease-in-out; border: 1px solid rgba(51,51,51,0.6);
    backdrop-filter: blur(2px);
}
.cocktail-card h3 { color: #d4af37; font-size: 1.4rem; margin: 12px 0; }
.cocktail-card p { color: #d4af37; font-size: 1rem;  }
.cocktail-card img {
    width: 100%; height: 220px; object-fit: cover;
    border-radius: 10px; margin-bottom: 15px; background-color: #000;
    box-shadow: 0 0 10px rgba(255,215,0,0.25);
}
.card-link:hover .cocktail-card { transform: scale(1.05); box-shadow: 0 0 20px rgba(255,215,0,0.5); }

/* === Фото на detail-сторінках === */
.main-image {
    display: block;
    margin: 20px auto;
    max-width: 400px;
    border-radius: 8px;
}

/* === Кнопка назад === */
.back-button {
    text-align: center;
    margin: 20px 0;
}

/* === Блок метаданих === */
.meta-block {
    text-align: center;
    margin: 20px 0;
}

/* === Рейтинг === */
.rating-block {
    text-align: center; margin: 30px auto; padding: 25px 35px;
    border: 2px solid #f5c518; border-radius: 12px;
    background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
    box-shadow: 0 4px 12px rgba(0,0,0,0.3); color: #fff;
    font-size: 16px; max-width: 400px;
}
.avg-rating { margin-bottom: 15px; font-size: 18px; color: #fff; }
.avg-rating .avg-value { font-weight: bold; color: gold; margin-left: 8px; }
.star { font-size: 34px; color: #ccc; cursor: pointer; transition: color 0.3s, transform 0.2s; display: inline-block; margin: 0; }
.star.filled { color: gold; }
.star.half { color: goldenrod; }
/* === Пагінація === */
.pagination {
    text-align: center;
    margin: 50px auto 40px; /* більше відступу зверху від карток */
}

.pagination a, .pagination span {
    display: inline-block;
    margin: 0 5px;
    padding: 8px 14px;
    background: #222;
    color: #d4af37;
    border-radius: 6px;
    transition: background 0.3s;
}

.pagination a:hover {
    background: #444;
}

.pagination .active {
    background: #d4af37;
    color: #000;
    font-weight: bold;
}

/* === Аналоги інгредієнтів === */
.analogs-title {
    text-align: center;
    color: #d4af37;
    font-size: 1.6em;
    margin: 30px 0 15px;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.6);
}

.analogs-list {
    max-width: 500px;
    margin: 0 auto 30px;
    padding: 20px;
    background: rgba(26,26,26,0.9);
    border-radius: 10px;
    box-shadow: 0 0 12px rgba(0,0,0,0.6);
    list-style-position: inside;
}

.analogs-list li {
    padding: 8px 0;
    border-bottom: 1px solid #333;
    color: #f5f5f5;
    text-align: left;
}

.analogs-list li:last-child {
    border-bottom: none;
}
/* === Footer === */
.site-footer {
    text-align: center;
    padding: 20px;
    background: #111;
    color: #aaa;
    font-size: 0.9em;
    border-top: 1px solid #333;
    margin-top: 40px;
}
.site-footer p {
    margin: 0;
}
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.randomizer-button {
    width: 200px;
    height: 100px;
    font-size: 20px;
    font-weight: bold;
    background-color: #070707;
    color: #c5c75b;
    border: 2px solid #fff;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.randomizer-button:hover {
    background-color: #444;
    transform: scale(1.05);
}

.cocktail-card {
    position: relative;
    overflow: hidden;
}

.cocktail-card.blurred img {
    opacity: 0.6; /* фото видно, але затемнене */
}

.cocktail-card.blurred h3,
.cocktail-card.blurred p {
    filter: blur(4px);
}

.premium-btn {
  background-color: #ffd700; /* золотий фон */
  color: #000;              /* чорний текст */
  font-size: 1.2rem;
  font-weight: bold;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;     /* щоб замок і текст були в ряд */
  align-items: center;
  gap: 8px;                 /* відступ між замком і текстом */
  margin-top: 10px;
}

.premium-btn:hover {
  background-color: #c5a112; /* трохи світліший золотий */
  transform: scale(1.05);    /* легке збільшення при наведенні */
}

.discount {
  color: #d4d233; 
  font-weight: bold;
  margin-left: 10px;
}



.premium-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
    z-index: 2;
}

.google-login-button {
    display: inline-flex;
    align-items: center;
    background-color: #111;       /* чорний фон */
    color: #d4af37;              /* золотий текст */
    border: 1px solid #d4af37;   /* золота рамка */
    border-radius: 6px;
    padding: 10px 16px;
    font-weight: bold;
    text-decoration: none;       /* прибирає підкреслення */
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-top: 15px;
}

.google-login-button:hover {
    background-color: #d4af37;   /* золото при наведенні */
    color: #111;                 /* чорний текст */
}

.google-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

.input-field {
    width: 100%;
    padding: 12px 16px;
    margin: 10px 0;
    border: 1px solid #d4af37;   /* золота рамка */
    border-radius: 6px;
    background-color: #111;      /* чорний фон */
    color: #f5f5f5;              /* світлий текст */
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.input-field:focus {
    border-color: #ffd700;       /* яскравіше золото при фокусі */
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
    outline: none;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    color: #f5f5f5;
}

.status-wrapper .tooltip {
    visibility: hidden;
    width: 80px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 3px 0;
    position: absolute;
    z-index: 1;
    bottom: 125%; /* Позиція над іконкою */
    left: 50%;
    margin-left: -40px;
    opacity: 0;
    transition: opacity 0.2s;
    font-size: 0.8em;
}

.status-wrapper:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

.error-page {
    text-align: center;
    padding: 80px 20px;
    color: #fff;
    background: linear-gradient(135deg, #000000, #2c2c2c);
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

.error-page h2 {
    font-size: 2.5rem;
    color: #ffd700; /* золотий акцент */
    margin-bottom: 20px;
}

.error-page p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #ccc;
}

.error-page .button {
    background-color: #ffd700;
    color: #000;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.error-page .button:hover {
    background-color: #fff;
    color: #000;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

.card-description {
    color: #ccc;        /* спокійний світло-сірий */
    font-size: 0.9em;   /* трохи менший шрифт */
    line-height: 1.4;   /* комфортна висота рядка */
}

.trademark-note {
    text-align: center;   /* центрує текст */
    color: #dcdf2c;          
    font-size: 0.9em;     /* трохи менший шрифт */
    margin-top: 1em;      /* відступ зверху */
}

/* === МОБІЛЬНА АДАПТАЦІЯ === */
@media (max-width: 768px) {

    .background-grid::before {
        background-size: 90px 100px !important;
    }

    .hero {
        height: 80vh !important;
    }

    nav {
        margin-top: 80px !important;
        gap: 10px !important;
        padding: 0 10px !important;
    }

    .card-list {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        padding: 15px !important;
    }

    .cocktail-card {
        width: 100% !important;
        padding: 15px !important;
    }

    .cocktail-card img {
        height: 160px !important;
    }

    #global-player {
        width: 180px !important;
    }

    #global-player.collapsed {
        width: 110px !important;
    }

    .top-bar-controls {
        top: 10px !important;
        left: 10px !important;
        gap: 6px !important;
    }

    .lang-select {
        padding: 6px 8px !important;
        font-size: 12px !important;
    }

    .button.login, .button.logout {
        padding: 6px 10px !important;
        font-size: 12px !important;
    }

    .description-block {
        margin: 20px 10px !important;
        padding: 15px !important;
    }

    .gallery-block img {
        width: 150px !important;
        height: 150px !important;
    }

    .premium-section {
        margin: 20px 10px !important;
        padding: 0 10px !important;
    }

    .hero-text h1 { font-size: 2em !important; }
    .hero-text h2 { font-size: 1.3em !important; }
    .hero-text p { font-size: 1em !important; }
}

@media (max-width: 480px) {
    .card-list {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        padding: 10px !important;
    }

    .hero-text h1 { font-size: 1.6em !important; }
    .section-title.large { font-size: 1.8em !important; }
    .section-title.medium { font-size: 1.4em !important; }
}