/* Baby Name Generator Custom Styling - Light & Dark Theme */

.apple-glass {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(228, 228, 231, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

html.dark .apple-glass,
.dark .apple-glass {
    background: rgba(18, 18, 20, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.custom-input {
    background: #ffffff;
    border: 1px solid rgba(228, 228, 231, 1);
    color: #0f172a;
    transition: all 0.2s ease-in-out;
}

html.dark .custom-input,
.dark .custom-input {
    background: rgba(9, 9, 11, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f4f4f5;
}

.custom-input:focus {
    border-color: #06b6d4 !important;
    outline: none;
    box-shadow: 0 0 14px rgba(6, 182, 212, 0.25);
}

.name-card {
    background: #ffffff;
    border: 1px solid #e4e4e7;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

html.dark .name-card,
.dark .name-card {
    background: rgba(24, 24, 27, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.name-card:hover {
    border-color: #06b6d4 !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(6, 182, 212, 0.25);
}

html.dark .name-card:hover,
.dark .name-card:hover {
    background: rgba(30, 30, 35, 0.95);
    border-color: rgba(6, 182, 212, 0.6) !important;
    box-shadow: 0 10px 25px -5px rgba(6, 182, 212, 0.35);
}

.favorite-btn.active {
    color: #f43f5e !important;
}

/* Horizontal scrollbar styling for A-Z & Rashi pills */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Inactive Pills & Tabs Styling - Light Mode Default */
.letter-pill,
.rashi-pill,
.gender-tab {
    background-color: #ffffff !important;
    background: #ffffff !important;
    color: #1e293b !important;
    border: 1px solid #cbd5e1 !important;
    transition: all 0.2s ease-in-out;
}

.letter-pill:hover,
.rashi-pill:hover,
.gender-tab:hover {
    border-color: #0891b2 !important;
    color: #0891b2 !important;
}

/* Inactive Pills & Tabs Styling - Dark Mode */
html.dark .letter-pill,
html.dark .rashi-pill,
html.dark .gender-tab,
.dark .letter-pill,
.dark .rashi-pill,
.dark .gender-tab {
    background-color: rgba(24, 24, 27, 0.9) !important;
    background: rgba(24, 24, 27, 0.9) !important;
    color: #f4f4f5 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

html.dark .letter-pill:hover,
html.dark .rashi-pill:hover,
html.dark .gender-tab:hover,
.dark .letter-pill:hover,
.dark .rashi-pill:hover,
.dark .gender-tab:hover {
    border-color: #06b6d4 !important;
    color: #22d3ee !important;
}

/* Active Pills & Tabs Styling - Guaranteed High Contrast Deep Cyan Background with White Text */
.letter-pill.active,
.rashi-pill.active,
.gender-tab.active,
html.dark .letter-pill.active,
html.dark .rashi-pill.active,
html.dark .gender-tab.active,
.dark .letter-pill.active,
.dark .rashi-pill.active,
.dark .gender-tab.active {
    background-color: #0891b2 !important;
    background: #0891b2 !important;
    color: #ffffff !important;
    border-color: #0891b2 !important;
    box-shadow: 0 4px 14px rgba(8, 145, 178, 0.45) !important;
    font-weight: 900 !important;
}

/* Search Match Mode Pill Toggle */
.search-mode-pill {
    color: #64748b;
    background: transparent;
    transition: all 0.15s ease-in-out;
}

html.dark .search-mode-pill,
.dark .search-mode-pill {
    color: #a1a1aa;
}

.search-mode-pill.active,
html.dark .search-mode-pill.active,
.dark .search-mode-pill.active {
    background-color: #0891b2 !important;
    background: #0891b2 !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    box-shadow: 0 1px 4px rgba(8, 145, 178, 0.3) !important;
}

.letter-pill.active *,
.rashi-pill.active *,
.gender-tab.active *,
html.dark .letter-pill.active *,
html.dark .rashi-pill.active *,
html.dark .gender-tab.active * {
    color: #ffffff !important;
}

.result-card-glow {
    background: radial-gradient(circle at top right, rgba(6, 182, 212, 0.12), transparent 70%);
}

/* Name Details Modal Styles */
.modal-overlay {
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: opacity 0.25s ease-in-out;
}

.modal-content {
    animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
