/**
 * Основен CSS файл - Минимални стилове за темата
 * Използва Bootstrap 5.0.2 за всички компоненти
 */

/* CSS Variables за темата */
:root {
    --font-body: "Manrope", "Segoe UI", sans-serif;
    --font-heading: "Playfair Display", "Georgia", serif;
    --color-text: #f5f5ff;
    --color-muted: #cfd8dc;
    --color-accent: #d4af37;
    --color-gold-light: #f4d03f;
    --color-gold-dark: #b8860b;
    --color-bg: #050018;
    --color-panel: rgba(9, 5, 48, 0.92);
    --color-border: rgba(255, 255, 255, 0.12);
    --darck-text: #050018;
    --color-bg-light: #e2e1eb;
    --color-bg-dark: #2b1c66;
}

.dark-text{
    color: var(--darck-text);
}

.text-light{
    color: var(--color-bg-light)!important;
}

.bg-dark{
    background: var(--color-bg-dark)!important;
    color: var(--color-bg-light)!important;
}
.bg-light{
    background: var(--color-bg-light)!important;
    color: var(--color-bg-dark)!important;
}
/* Основни стилове */
body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    letter-spacing: 0.4px;
}

.bb {
    border: 1px solid var(--color-border);
    border-radius: 16px!important;
}
.bg-panel {
    background: var(--color-panel);
}

.bb-0 {
    border: none!important;
}

/* H2 декорация */
h2 {
    position: relative;
    display: inline-block;
    padding: 0 40px;
}

h2::before,
h2::after {
    content: "✦";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-accent);
    font-size: 20px;
    filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.6));
    animation: twinkle 3s ease-in-out infinite;
}

h2::before {
    left: 0;
}

h2::after {
    right: 0;
    animation-delay: 1.5s;
}

@keyframes twinkle {
    0%, 100% { opacity: 1; transform: translateY(-50%) scale(1); }
    50% { opacity: 0.7; transform: translateY(-50%) scale(1.1); }
}

/* Bootstrap overrides - Цветове */
.form-select,
.form-control {
    background-color: rgba(5, 3, 18, 0.9);
    border-color: var(--color-border);
    color: var(--color-text);
    position: relative;
    z-index: 1;
    -webkit-tap-highlight-color: transparent;
}

.form-select:focus,
.form-control:focus {
    background-color: rgba(5, 3, 18, 0.9);
    border-color: var(--color-accent);
    color: var(--color-text);
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25);
    z-index: 2;
}

/* Mobile select fix - Allow native dropdowns on mobile */
@media (max-width: 768px) {
    .form-select {
        -webkit-appearance: menulist;
        -moz-appearance: menulist;
        appearance: menulist;
    }
}

@media (min-width: 769px) {
    .form-select {
        cursor: pointer;
        touch-action: manipulation;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }
}

.form-label {
    color: var(--color-text);
}

.btn-primary {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-bg);
    font-weight: 600;
}

.btn-primary:hover {
    background-color: var(--color-gold-light);
    border-color: var(--color-gold-light);
    color: var(--color-bg);
}

.btn-outline-primary {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.btn-outline-primary:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-bg);
}

.card {
    background: var(--color-panel);
    border: 1px solid var(--color-border);
    color: var(--color-text);
}

.card-title {
    color: var(--color-accent);
}

/* Step cards */
.step-card {
    background: var(--color-panel);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.step-icon {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.step-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.step-number {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    background: rgba(5, 0, 24, 0.9);
    color: var(--color-accent);
    padding: 8px 16px;
    font-weight: 700;
    font-size: 1.2rem;
}

.step-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.step-content h3 {
    color: var(--color-accent);
    margin-bottom: 12px;
}

.step-content p {
    color: var(--color-muted);
    flex-grow: 1;
}

/* Product cards */
.product-card {
    background: var(--color-panel);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(3, 2, 20, 0.5);
    border-color: var(--color-accent);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-card-body h3 {
    color: var(--color-accent);
    margin-bottom: 12px;
}

.product-card-body p {
    color: var(--color-muted);
    flex-grow: 1;
    margin-bottom: 16px;
}

/* Blog cards */
.blog-card {
    background: var(--color-panel);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-body h3 {
    color: var(--color-accent);
    margin-bottom: 12px;
}

.blog-card-body p {
    color: var(--color-muted);
    flex-grow: 1;
    margin-bottom: 16px;
}

/* Zodiac search form */
.zodiac-search-form {
    max-width: 600px;
    margin: 40px auto;
    background: var(--color-panel);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid var(--color-border);
}

/* Zodiac results */
.zodiac-results {
    margin-top: 48px;
}

.result-card {
    background: var(--color-panel);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--color-border);
    margin-bottom: 24px;
}

.result-header {
    margin-bottom: 16px;
}

.result-type {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-accent);
    font-weight: 600;
}

.result-image {
    width: 100%;
    max-width: 200px;
    margin: 0 auto 20px;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
}

.result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.result-symbol-large {
    font-size: 64px;
    text-align: center;
    margin-bottom: 20px;
}

.result-short-desc {
    color: var(--color-muted);
    margin-bottom: 16px;
}

/* Bootstrap accordion customization */
.result-card .accordion-item {
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: 12px;
}

.result-card .accordion-button {
    background: transparent !important;
    color: var(--color-accent) !important;
    font-weight: 600;
    padding: 12px 16px;
    border: 1px solid var(--color-border) !important;
    box-shadow: none !important;
    border-radius: 8px;
}

.result-card .accordion-button:hover {
    background: rgba(212, 175, 55, 0.1) !important;
    border-color: var(--color-accent) !important;
}

.result-card .accordion-button:not(.collapsed) {
    background: rgba(212, 175, 55, 0.15) !important;
    border-color: var(--color-accent) !important;
}

.result-card .accordion-body {
    background: rgba(7, 5, 31, 0.5);
    color: var(--color-muted);
    padding: 16px;
}

/* Zodiac grids */
.zodiac-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.zodiac-card {
    background: var(--color-panel);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--color-border);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.zodiac-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(3, 2, 20, 0.5);
    border-color: var(--color-accent);
}

.zodiac-card h3 {
    color: var(--color-accent);
    margin: 16px 0 8px;
}

.zodiac-image {
    width: 100%;
    margin-bottom: 16px;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
}

.zodiac-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zodiac-symbol {
    font-size: 48px;
    margin-bottom: 16px;
}

.zodiac-grid-small {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    margin: 32px 0;
}

.zodiac-card-small {
    background: var(--color-panel);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid var(--color-border);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.zodiac-card-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(3, 2, 20, 0.4);
    border-color: var(--color-accent);
}

.zodiac-image-small {
    width: 100%;
    margin-bottom: 12px;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
}

.zodiac-image-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zodiac-symbol-small {
    font-size: 32px;
    margin-bottom: 12px;
}

.zodiac-card-small-content {
    width: 100%;
}

.zodiac-type-small {
    font-size: 11px;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-weight: 600;
}

.zodiac-card-small h4 {
    color: var(--color-accent);
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 600;
}

.zodiac-period-small {
    font-size: 11px;
    color: var(--color-muted);
}

.other-zodiacs-from-search,
.other-zodiacs-grid {
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--color-border);
}

.other-zodiacs-from-search h2,
.other-zodiacs-grid h3 {
    text-align: center;
    margin-bottom: 32px;
}

/* Zodiac detail page */
.zodiac-detail {
    max-width: 900px;
    margin: 0 auto;
}

.back-link {
    color: var(--color-muted);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 24px;
    display: inline-block;
}

.back-link:hover {
    color: var(--color-accent);
}

.zodiac-detail-header {
    margin-bottom: 32px;
}

.zodiac-title-section {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
}

.zodiac-image-large {
    width: 120px;
    height: 120px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
}

.zodiac-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.zodiac-symbol-large {
    font-size: 80px;
    line-height: 1;
}

.zodiac-title-info {
    flex-grow: 1;
}

.zodiac-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.zodiac-type-badge,
.zodiac-period-badge {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

.zodiac-type-badge {
    background: rgba(212, 175, 55, 0.15);
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
}

.zodiac-period-badge {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-muted);
    border: 1px solid var(--color-border);
}

.zodiac-content {
    padding: 32px;
    background: var(--color-panel);
    border-radius: 16px;
    border: 1px solid var(--color-border);
}

.gender-filter-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.gender-filter-btn {
    padding: 10px 20px;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gender-filter-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.gender-filter-btn.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-bg);
    font-weight: 600;
}

.zodiac-description-gender[data-gender].hidden,
.zodiac-full-content-gender[data-gender].hidden {
    display: none;
}

.other-zodiacs {
    margin-top: 48px;
}

.other-zodiacs h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Header - Bootstrap Navbar customization */
header {
    background: rgba(7, 5, 31, 0.95);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .navbar {
    background: transparent;
    padding: 0;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand.logo {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-accent);
    text-decoration: none;
}

.navbar-toggler {
    border: 1px solid var(--color-border);
    padding: 4px 8px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28212, 175, 55, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-nav {
    gap: 8px;
}

.nav-link {
    color: var(--color-muted);
    padding: 8px 12px;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-accent);
}

.navbar-nav .dropdown-menu {
    background: rgba(7, 5, 31, 0.98);
    border: 1px solid var(--color-border);
}

.navbar-nav .dropdown-item {
    color: var(--color-muted);
    padding: 10px 20px;
}

.navbar-nav .dropdown-item:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--color-accent);
}

/* Hero section */
.hero {
    background-size: cover;
    background-position: center;
    padding: 120px 24px;
    text-align: center;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 0, 24, 0.6);
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero-accent {
    color: var(--color-accent);
}

/* Footer */
footer {
    background: rgba(3, 2, 20, 0.95);
    border-top: 1px solid var(--color-border);
    padding: 32px 0;
    margin-top: 80px;
    text-align: center;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}


.active-btn {
    background-color: var(--color-accent);
    color: var(--color-bg);
}
/* Mobile menu - Bootstrap handles this, just style adjustments */
@media (max-width: 991px) {
    .header-inner {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
        padding-bottom: 0.4rem;
    }
    .navbar-collapse {
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid var(--color-border);
    }
    
    .navbar-nav {
        gap: 0;
    }
    
    .nav-link {
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-item.dropdown {
        width: 100%;
    }
    
    .nav-item.dropdown .nav-link {
        width: 100%;
    }
    
    .navbar-nav .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        margin-top: 4px;
        background: transparent;
        border: none;
        box-shadow: none;
    }
    
    .navbar-nav .dropdown-item {
        padding: 8px 0;
        font-size: 14px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .navbar-nav .dropdown-item:last-child {
        border-bottom: none;
    }
    
    .hero {
        padding: 80px 16px;
    }
    
    h2 {
        padding: 0 30px;
        font-size: 1.4rem;
    }
    
    h2::before,
    h2::after {
        font-size: 16px;
    }

  
    
    .form-select,
    .form-control {
        font-size: 16px; /* Prevent iOS zoom */
        min-height: 44px; /* Better touch target */
        padding: 10px 12px;
        z-index: 10;
        position: relative;
        -webkit-tap-highlight-color: rgba(212, 175, 55, 0.2);
    }
    
    /* Ensure form container doesn't block touches */
    .zodiac-search-form {
        position: relative;
        z-index: 1;
    }
    
    .zodiac-search-form form {
        position: relative;
        z-index: 2;
    }
    
    /* Make sure selects are clickable on mobile */
    .zodiac-search-form .form-select {
        pointer-events: auto !important;
        touch-action: manipulation;
        -webkit-user-select: none;
        user-select: none;
        position: relative;
        z-index: 100;
    }
    
    /* Ensure form elements are above any overlays */
    .zodiac-search-form .form-control,
    .zodiac-search-form .form-select,
    .zodiac-search-form .btn {
        position: relative;
        z-index: 100;
    }
    
    .zodiac-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 16px;
    }
    
    .zodiac-grid-small {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
    }
    
    .zodiac-card-small {
        padding: 12px;
    }
    
    .zodiac-symbol-small {
        font-size: 24px;
    }
    
    .zodiac-card-small h4 {
        font-size: 14px;
    }
    
    .result-card {
        padding: 24px;
    }
    
    .zodiac-content {
        padding: 24px;
    }
    
    .zodiac-title-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .zodiac-image-large {
        width: 80px;
        height: 80px;
    }
    
    .zodiac-symbol-large {
        font-size: 60px;
    }
}

/* Tarot cards grid */
.tarot-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 16px;
}

.tarot-cards-grid-small {
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 12px;
}

.tarot-card {
    text-align: center;
}

.tarot-card-small h3,
.tarot-card-small h4 {
    font-size: 0.9rem;
    margin-top: 8px;
}

.tarot-card-image img,
.tarot-card-image-large img {
    max-height: 140px;
    width: auto;
    margin: 0 auto;
    display: block;
}

/* Обърната карта (reversed) */
.tarot-card-img-reversed {
    transform: rotate(180deg);
}

/* Стилове за таблицата с качества в zodiac-change формата */
.zodiac-qualities-table {
    color: #ffffff !important;
}

.zodiac-qualities-table table {
    color: #ffffff !important;
}

.zodiac-qualities-table th,
.zodiac-qualities-table td {
    color: #ffffff !important;
}

.zodiac-qualities-table .form-select,
.zodiac-qualities-table .form-select-sm {
    color: #000000 !important;
    background-color: #ffffff !important;
}

/* Service Cards Styles */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, rgba(123, 97, 255, 0.1) 0%, rgba(123, 97, 255, 0.05) 100%);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card .card-title {
    color: #2d1b69;
    font-weight: 600;
}

.service-card .btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.service-card .btn:hover {
    transform: translateX(5px);
}