/**
 * Hanuman Chalisa - Page Styles
 * Maintains Tirthbhumi design consistency and color scheme
 */

:root {
    /* Color Scheme */
    --primary-color: #d84315;
    --primary-light: #ff7043;
    --primary-dark: #bf360c;
    --bg-color: #fafafa;
    --text-color: #333;
    --text-light: #666;
    --text-lighter: #999;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Navbar */
.top-navbar {
    background: white;
    border-bottom: 1px solid var(--border-color);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.nav-logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.auth-icon {
    cursor: pointer;
    color: var(--primary-color);
    font-size: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-icon:hover {
    transform: scale(1.1);
    background-color: rgba(216, 67, 21, 0.1);
}

/* Main Content Area */
main {
    min-height: calc(100vh - 60px - 200px);
    padding: 30px 20px;
    background-color: var(--bg-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Authenticated Content */
#authenticatedContent {
    animation: fadeIn 0.4s ease-in;
}

.content-area {
    background: white;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    box-shadow: var(--shadow);
}

.content-area h1 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.content-area p {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.6;
}

/* Not Authenticated State */
.auth-required {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 270px);
    animation: fadeIn 0.4s ease-in;
}

.auth-message {
    text-align: center;
    max-width: 400px;
}

.auth-message h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: 600;
}

.auth-message p {
    color: var(--text-light);
    font-size: 16px;
    margin-bottom: 20px;
}

.auth-message small {
    color: var(--text-lighter);
    font-size: 13px;
    display: block;
    opacity: 0.8;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive - Tablet */
@media (max-width: 768px) {
    main {
        padding: 20px 15px;
        min-height: calc(100vh - 50px - 150px);
    }

    .top-navbar {
        padding: 10px 15px;
    }

    .nav-logo img {
        height: 35px;
    }

    .nav-right {
        gap: 15px;
    }

    .content-area {
        padding: 25px 15px;
    }

    .content-area h1 {
        font-size: 22px;
    }

    .content-area p {
        font-size: 14px;
    }

    .auth-message {
        padding: 20px;
    }

    .auth-message h2 {
        font-size: 20px;
    }

    .auth-message p {
        font-size: 14px;
    }
}

/* Responsive - Mobile */
@media (max-width: 480px) {
    main {
        padding: 15px 10px;
        min-height: calc(100vh - 45px - 120px);
    }

    .top-navbar {
        padding: 8px 10px;
        gap: 10px;
    }

    .nav-logo img {
        height: 32px;
    }

    .nav-right {
        gap: 10px;
    }

    .auth-icon {
        font-size: 22px;
        padding: 6px;
    }

    .content-area {
        padding: 20px 12px;
        border-radius: 6px;
    }

    .content-area h1 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .content-area p {
        font-size: 13px;
    }

    .auth-required {
        min-height: calc(100vh - 165px);
    }

    .auth-message {
        padding: 15px;
    }

    .auth-message h2 {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .auth-message p {
        font-size: 13px;
        margin-bottom: 15px;
    }

    .auth-message small {
        font-size: 12px;
    }
}

/* Print Styles */
@media print {
    nav,
    footer,
    .auth-icon {
        display: none;
    }

    main {
        padding: 0;
        min-height: auto;
    }

    .content-area {
        box-shadow: none;
        border: 1px solid var(--border-color);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .auth-icon:hover {
        transform: none;
    }
}
