/* Belaguru Portal - Hanuman Theme */

:root {
    --hanuman-orange: #FF6B35;
    --deep-orange: #E67E22;
    --golden: #FFD700;
    --saffron: #FF9933;
    --cream: #F8F6F1;
    --dark-text: #2C2416;
    --light-text: #6B6B6B;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hanuman Theme Colors */
.hanuman-primary {
    background-color: var(--hanuman-orange);
}

.hanuman-dark {
    background-color: var(--deep-orange);
}

.hanuman-accent {
    color: var(--hanuman-orange);
}

.hanuman-text {
    color: var(--dark-text);
}

/* Buttons */
.btn-primary {
    background-color: var(--hanuman-orange);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--deep-orange);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.btn-secondary {
    background-color: #FFFFFF !important;
    color: #FF6B35 !important;
    padding: 10px 20px;
    border: 2px solid #FFFFFF;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    -webkit-border-radius: 6px;
    display: inline-block;
    text-decoration: none;
}

.btn-secondary:hover {
    background-color: #F8F6F1 !important;
    border-color: #FFFFFF;
    -webkit-transform: translateY(-2px);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-secondary:active {
    -webkit-transform: translateY(0);
    transform: translateY(0);
}

/* Input Fields */
input, textarea, select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #E0D5C8;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--hanuman-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* Cards */
.card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.4s ease;
}

/* Mobile First Responsive */
@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--cream);
}

::-webkit-scrollbar-thumb {
    background: var(--hanuman-orange);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--deep-orange);
}

/* ===== Navigation Buttons ===== */
.nav-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.nav-back-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: white;
}

    background: var(--cream);
    transform: translateY(-1px);
}

/* ===== Tag Autocomplete Dropdown ===== */
.tag-input-wrapper {
    position: relative;
}

.tag-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #E0D5C8;
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tag-dropdown.hidden {
    display: none;
}

.tag-dropdown-item {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    color: var(--dark-text);
    transition: background 0.15s ease;
}

.tag-dropdown-item:hover {
    background: #FFF3ED;
    color: var(--hanuman-orange);
}

.tag-dropdown-new {
    font-weight: 600;
    color: var(--hanuman-orange);
    border-top: 1px solid #f0e8e0;
}

/* ===== Copy Button ===== */
.copy-btn {
    background: var(--hanuman-orange);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    white-space: nowrap;
}

.copy-btn:hover {
    background: var(--deep-orange);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.copy-btn-success {
    background: #16a34a !important;
}

/* ===== FLOATING MENU ===== */
.floating-menu-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    background: linear-gradient(135deg, #FF6B35, #E67E22);
    border: none;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.floating-menu-button:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
}

.floating-menu-button.open {
    transform: rotate(45deg);
    background: linear-gradient(135deg, #E67E22, #d4651c);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.floating-menu {
    position: fixed;
    bottom: 85px;
    right: 90px;
    z-index: 998;
    background: white;
    border-radius: 12px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    min-width: 220px;
    max-height: 0;
    opacity: 0;
    transition: all 0.3s ease;
    transform-origin: bottom right;
}

.floating-menu.visible {
    max-height: 400px;
    opacity: 1;
}

.floating-menu-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
    color: #333;
    font-weight: 500;
    white-space: nowrap;
}

.floating-menu-item:last-child {
    border-bottom: none;
}

.floating-menu-item:hover {
    background-color: #fff5f0;
    color: #FF6B35;
    padding-left: 20px;
}

.floating-menu-item-icon {
    font-size: 20px;
    min-width: 24px;
}

.floating-menu-divider {
    height: 1px;
    background-color: #e0e0e0;
    margin: 8px 0;
}

.font-size-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    gap: 8px;
}

.font-size-controls button {
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.font-size-controls button:hover {
    background-color: #FF6B35;
    color: white;
    border-color: #FF6B35;
}

.font-size-controls button.active {
    background-color: #FF6B35;
    color: white;
    border-color: #FF6B35;
}

/* Daily Bhajan Card */
.daily-bhajan-banner {
    background: linear-gradient(135deg, #FF6B35, #E67E22);
    color: white;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.daily-bhajan-banner h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px 0;
    opacity: 0.9;
}

.daily-bhajan-banner p {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.daily-bhajan-banner p:hover {
    opacity: 0.85;
}

/* Font size tracking */
body.font-size-small {
    font-size: 14px;
}

body.font-size-normal {
    font-size: 16px;
}

body.font-size-large {
    font-size: 18px;
}


/* ===== BOTTOM TAB BAR NAVIGATION ===== */

.bottom-tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 1) 100%);
    border-top: 2px solid #FFE5D0;
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    height: 60px;
    padding: 8px 0 max(8px, env(safe-area-inset-bottom));
    box-shadow: 0 -2px 10px rgba(255, 107, 53, 0.1);
}

.tab-button {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 3px;
    padding: 4px 8px;
    cursor: pointer;
    border: none;
    background: none;
    color: #999;
    transition: all 0.2s ease;
    text-decoration: none;
    font-weight: 500;
    min-height: 48px;
}

.tab-button:active,
.tab-button.active {
    color: #FF6B35;
}

.tab-button span:first-child {
    font-size: 22px;
    line-height: 1;
    display: block;
}

.tab-label {
    font-size: 10px;
    font-weight: 600;
    line-height: 1.1;
    text-align: center;
}

/* App padding - no fixed bottom bar anymore */
#app {
    padding-bottom: 0;
}

/* Share buttons styling */
.share-button-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
    padding: 12px;
}

.icon-btn {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    border: none;
    border-radius: 8px;
    background: #f5f5f5;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease;
    padding: 0;
}

.icon-btn:hover {
    background: #efefef;
}

.icon-btn:active {
    transform: scale(0.95);
}

.icon-btn img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
}

/* Share button variants with brand colors */
.whatsapp-btn {
    background: linear-gradient(135deg, #25D366, #128C7E) !important;
    color: white;
    border: none;
}

.whatsapp-btn:active {
    background: linear-gradient(135deg, #20BA58, #0F7355) !important;
}

.telegram-btn {
    background: linear-gradient(135deg, #0088cc, #005FA3) !important;
    color: white;
    border: none;
}

.telegram-btn:active {
    background: linear-gradient(135deg, #0077B5, #004A7F) !important;
}

.download-btn {
    background: linear-gradient(135deg, #FF6B35, #E67E22) !important;
    color: white;
    border: none;
}

.download-btn:active {
    background: linear-gradient(135deg, #E55A24, #D26E0E) !important;
}

.copy-btn {
    background: white !important;
    color: #FF6B35;
    border: 2px solid #FF6B35;
}

.copy-btn:active {
    background: #FFF5EB !important;
}

.share-button svg {
    width: 24px;
    height: 24px;
    margin-bottom: 2px;
}


.share-button {
    padding: 10px 12px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #FF6B35, #E67E22);
    color: white;
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 60px;
}

.share-button:active {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.share-button.secondary {
    background: white;
    color: #FF6B35;
    border: 2px solid #FF6B35;
}

.copy-feedback {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #FF6B35;
    color: white;
    padding: 16px 24px;
    border-radius: 12px;
    font-weight: 600;
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@media (max-width: 768px) {
    #app {
        padding-bottom: 0;
    }
    
    .share-button {
        flex: 1;
        min-width: 80px;
    }

/* Heart Button Styling */
.icon-btn {
    position: relative;
}

.icon-btn:active {
    animation: heartPulse 0.6s ease;
}

@keyframes heartPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

/* Favorite heart states */
.heart-outline {
    opacity: 0.7;
}

.heart-filled {
    color: #FF6B35;
}


@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
}
}