/*
Theme Name: Sleep Calculator Zone
Description: A beautiful and responsive WordPress theme for sleep calculators. Features wake-up time calculator, bedtime calculator, and sleep cycle optimization tools with a modern dark theme design.
Author: Sleep Calculator Zone Team
Version: 2.9.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sleep-calculator-zone
Tags: health, calculator, sleep, responsive, dark-theme, accessibility-ready
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
*/

/* Sleep Calculator Zone - Main Stylesheet */

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: linear-gradient(135deg, #1a1f3a 0%, #2d3561 25%, #3b4a7a 50%, #2d3561 75%, #1a1f3a 100%);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
    border-radius: 4px;
}

.skip-link:focus {
    top: 6px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.site-header {
    background: rgba(26, 31, 58, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.site-brand {
    display: flex;
    align-items: center;
}

.brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.brand-link:hover {
    transform: translateY(-2px);
}

.brand-icon {
    font-size: 2rem;
    margin-right: 0.5rem;
    animation: moonGlow 3s ease-in-out infinite alternate;
}

@keyframes moonGlow {
    0% { filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.3)); }
    100% { filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.6)); }
}

.brand-text {
    background: linear-gradient(45deg, #ffffff, #e6f3ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation styles removed - simplified header */



/* Site logo and branding improvements */
.site-logo {
    display: flex;
    align-items: center;
}

.site-logo img {
    filter: brightness(1.2) contrast(1.1);
    opacity: 1;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-title-wrapper {
    display: none !important;
}

.site-title-wrapper h1 {
    font-weight: 700 !important;
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.site-title-wrapper .brand-icon {
    filter: brightness(1.3);
}

/* Main Content */
.main-wrapper {
    min-height: calc(100vh - 80px);
}

/* Hero Section */
.hero-section {
    padding: 1rem 0 0.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 80% 40%, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        radial-gradient(circle at 10% 90%, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 100px 100px, 150px 150px, 200px 200px, 120px 120px, 180px 180px;
    animation: twinkle 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes twinkle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.moon-icon {
    font-size: 3.5rem;
    animation: moonFloat 6s ease-in-out infinite;
}

@keyframes moonFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

.site-title {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #ffffff, #f0f8ff, #e6f3ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.4), 0 0 20px rgba(255, 255, 255, 0.2);
    margin: 0;
    line-height: 1.2;
    filter: brightness(1.2) contrast(1.3);
    text-align: center !important;
}

.stars {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.star {
    font-size: 1.5rem;
    animation: starTwinkle 2s ease-in-out infinite;
}

.star:nth-child(2) {
    animation-delay: 0.5s;
}

.star:nth-child(3) {
    animation-delay: 1s;
}

@keyframes starTwinkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #e6f0ff;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    filter: brightness(1.2);
}

/* Calculator Section */
.calculator-section {
    padding: 1rem 0;
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.calculator-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.calculator-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 1s;
}

.calculator-card:hover::before {
    left: 100%;
}

.calculator-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.calculator-card h2 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: #ffffff;
    font-weight: 600;
}

/* Calculator Layout */
.calculator-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    text-align: center;
}

.calculator-left {
    flex: 1;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

/* SIMPLE CENTERING SOLUTION */
.calculator-card .calculator-left {
    text-align: center !important;
    width: 100% !important;
}

.calculator-card .calculator-left > * {
    margin: 1rem auto !important;
    display: block !important;
    width: fit-content !important;
}

.calculator-right {
    flex: 1;
    min-height: 200px;
    display: flex;
    align-items: flex-start;
}

/* Time Picker */
/* CENTERING UPDATE v1.5.0 with pure flexbox centering - If you see this comment, CSS is loading */
/* ABSOLUTE CENTERING SOLUTION */
/* ABSOLUTE CENTERING FOR TIME PICKER CONTAINER */
.time-picker-container,
.calculator-card .time-picker-container,
.calculator-left .time-picker-container,
.calculator-content .time-picker-container {
    position: relative !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: block !important;
    text-align: center !important;
    width: fit-content !important;
    margin: 1rem 0 !important;
}

/* TIME PICKER - HORIZONTAL FLEXBOX LAYOUT */
.time-picker,
.calculator-card .time-picker,
.calculator-left .time-picker {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 1rem !important;
    margin: 0 auto !important;
    width: auto !important;
    flex-wrap: nowrap !important;
}

.time-picker .time-input {
    display: block !important;
    margin: 0 !important;
    width: 120px !important;
    text-align: center !important;
}

/* GRID CENTERING FOR TIME INPUT */
.time-input {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
    justify-self: center !important;
    align-self: center !important;
}

.time-input label {
    font-size: 0.9rem;
    color: #b8c5d6;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.time-select {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    padding: 1rem;
    min-width: 100px;
    width: 100px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.time-select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.time-select option {
    background: #2d3561;
    color: #ffffff;
}

/* Calculate Button */
/* ABSOLUTE CENTERING FOR BUTTON */
.calculate-btn,
.calculator-card .calculate-btn,
.calculator-left .calculate-btn,
.calculator-content .calculate-btn {
    background: linear-gradient(45deg, #4a90e2, #357abd);
    border: none;
    border-radius: 50px;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 1rem 2.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(74, 144, 226, 0.3);
    display: block !important;
    width: auto !important;
    margin: 1rem 0 !important;
    white-space: nowrap;
    text-align: center !important;
}

.calculate-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.calculate-btn:hover::before {
    left: 100%;
}

.calculate-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(74, 144, 226, 0.4);
    background: linear-gradient(45deg, #357abd, #2968a3);
}

.calculate-btn:active {
    transform: translateY(-1px);
}

.calculate-btn.calculating {
    background: linear-gradient(45deg, #6c757d, #5a6268);
    cursor: not-allowed;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Results */
.results-container {
    margin-top: 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInUp 0.5s ease;
    width: 100%;
    box-sizing: border-box;
}

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

.results-container h3 {
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.results-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.result-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    animation: slideInLeft 0.5s ease;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.result-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.result-time {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4a90e2;
    margin-bottom: 0.5rem;
}

.result-info {
    color: #b8c5d6;
    font-size: 0.9rem;
}

.result-note {
    color: #b8c5d6;
    font-size: 0.9rem;
    font-style: italic;
    text-align: center;
    margin-top: 1rem;
}

/* Navigation Section */
.navigation-section {
    padding: 1rem 0;
    text-align: center;
    margin-bottom: 1rem;
}

.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.nav-btn:hover::before {
    left: 100%;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.nav-btn.active {
    background: linear-gradient(45deg, #4a90e2, #357abd);
    border-color: #4a90e2;
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
}

/* Calculator Grid */
.calculator-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 1024px) {
    .calculator-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .calculator-grid {
        grid-template-columns: 1fr;
    }
}

/* Information Section */
.info-section {
    padding: 1.5rem 0;
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 0.5rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.info-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease;
}

.info-icon {
    font-size: 4.5rem;
    margin-bottom: 2rem;
    display: block;
}

.info-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.info-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.info-card p {
    color: #b8c5d6;
    line-height: 1.6;
}

.brand-footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-footer h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.brand-footer p {
    color: #b8c5d6;
    font-size: 1rem;
    margin: 0;
}

/* Footer Styles */
.site-footer {
    background: rgba(26, 31, 58, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0 1rem;
    margin-top: 0.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    align-items: stretch;
}

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 1.2rem;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 2rem 0 1rem;
        margin-top: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-features {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .feature-tag {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    .footer-menu {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .footer-menu-additional {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

.footer-section {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    color: #e6f0ff;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.footer-section:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.footer-title {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    text-align: center;
    line-height: 1.2;
}

.footer-subtitle {
    color: #b8d4f0;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    text-align: left;
}

.footer-description {
    line-height: 1.4;
    margin-bottom: 1.2rem;
    font-size: 0.85rem;
    color: #d1e7ff;
    text-align: center;
    flex-grow: 1;
}

.footer-features {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: auto;
}

.feature-tag {
    background: linear-gradient(45deg, rgba(74, 144, 226, 0.3), rgba(74, 144, 226, 0.2));
    color: #ffffff;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
    border: 1px solid rgba(74, 144, 226, 0.4);
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.feature-tag:hover {
    background: linear-gradient(45deg, rgba(74, 144, 226, 0.5), rgba(74, 144, 226, 0.3));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.footer-links {
    list-style: none;
    text-align: left;
    flex-grow: 1;
}

.footer-links li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
}

.footer-link {
    color: #b8c5d6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #ffffff;
}

.tip-icon {
    font-size: 1rem;
}

.sleep-info {
    line-height: 1.6;
    margin-bottom: 1rem;
}

.cycle-info {
    display: flex;
    gap: 1rem;
}

.cycle-item {
    text-align: center;
}

.cycle-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #4a90e2;
}

.cycle-label {
    font-size: 0.8rem;
    color: #b8c5d6;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.footer-menu li {
    margin: 0;
}

.footer-menu-link {
    color: #b8d4f0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    display: block;
}

.footer-menu-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-menu-additional {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.footer-menu-additional li {
    margin: 0;
}

.footer-menu-additional a {
    color: #9bb5d1;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-menu-additional a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    gap: 0.25rem;
}

.copyright {
    color: #b8c5d6;
    text-align: center;
    width: 100%;
}

.disclaimer {
    font-size: 0.8rem;
    margin-top: 0.5rem;
    opacity: 0.8;
}

.footer-meta {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.last-updated {
    color: #b8c5d6;
    font-size: 0.9rem;
}

.update-label {
    font-weight: 500;
}

.footer-links-inline {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-link-inline {
    color: #b8c5d6;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-link-inline:hover {
    color: #ffffff;
}

.separator {
    color: rgba(255, 255, 255, 0.3);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(45deg, #4a90e2, #357abd);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: #ffffff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.4);
}

/* Page Styles */
.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: white;
    border-radius: 15px;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin: 0;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* About Page Styles */
.about-intro, .about-features, .about-science, .about-commitment {
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.feature-item {
    padding: 20px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    border-left: 4px solid #4a90e2;
}

.feature-item h3 {
    color: #ffffff;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* Contact Page Styles */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.contact-info, .contact-form-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.contact-methods {
    margin-top: 20px;
}

.contact-method {
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.contact-method h3 {
    color: #ffffff;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #ffffff;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #4a90e2;
}

.submit-btn {
    background: linear-gradient(45deg, #4a90e2, #357abd);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
}

.faq-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.faq-item {
    padding: 20px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    border-left: 4px solid #4a90e2;
}

.faq-item h3 {
    color: #ffffff;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* Privacy and Terms Styles */
.privacy-content, .terms-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.privacy-section, .terms-section {
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.privacy-section h2, .terms-section h2 {
    color: #ffffff;
    border-bottom: 2px solid #4a90e2;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.privacy-section h3, .terms-section h3 {
    color: #e6f0ff;
    margin-top: 20px;
    margin-bottom: 10px;
}

.privacy-section ul, .terms-section ul {
    padding-left: 20px;
}

.privacy-section li, .terms-section li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: #b8c5d6;
}

/* Responsive Design for New Pages */
@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .features-grid, .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .content-wrapper {
        padding: 0 15px;
    }
    
    .about-intro, .about-features, .about-science, .about-commitment,
    .contact-info, .contact-form-section, .faq-section,
    .privacy-section, .terms-section {
        padding: 20px;
    }
}

/* Responsive Design */
@media (min-width: 769px) {
    .calculator-content {
        display: flex;
        flex-direction: row;
        gap: 2rem;
        align-items: flex-start;
        text-align: center;
    }
    
    .calculator-left,
    .calculator-right {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .site-title {
        font-size: 3.5rem;
    }
    
    .logo-container {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .moon-icon {
        font-size: 3rem;
    }
    
    /* Mobile navigation styles removed */
    
    .calculator-card {
        padding: 2rem 1.5rem;
        margin: 0 10px;
    }
    
    .calculator-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .calculator-left,
    .calculator-right {
        flex: none;
        width: 100%;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }
    
    .calculator-left .time-picker-container,
    .calculator-left .calculate-btn {
        margin: 1rem auto !important;
        align-self: center !important;
    }
    
    .time-picker {
        gap: 0.5rem;
        flex-wrap: nowrap;
        justify-content: center;
        margin: 0 auto !important;
    }
    
    .time-select {
        font-size: 1.1rem;
        padding: 0.6rem;
        min-width: 85px;
        width: 85px;
    }
    
    .calculate-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
        margin: 1rem auto !important;
        display: block;
        width: fit-content;
        white-space: nowrap;
    }
    
    .nav-buttons {
        gap: 0.5rem;
    }
    
    .nav-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .calculator-card {
        padding: 1.5rem 1rem;
    }
    
    .calculator-card h2 {
        font-size: 1.5rem;
    }
    
    .time-picker {
        gap: 0.4rem;
        flex-wrap: nowrap;
        justify-content: center;
        margin: 0 auto !important;
    }
    
    .time-select {
         font-size: 1rem;
         padding: 0.5rem;
         min-width: 75px;
         width: 75px;
     }
    
    .calculate-btn {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
        margin: 1rem auto !important;
        display: block;
        width: fit-content;
        white-space: nowrap;
    }
    
    .nav-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .nav-btn {
        width: 100%;
        max-width: 250px;
    }
}

/* Print Styles */
@media print {
    .site-header,
    .navigation-section,
    .back-to-top,
    .mobile-menu-toggle {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .calculator-card {
        background: white;
        border: 1px solid #ccc;
        box-shadow: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .calculator-card {
        border: 2px solid #ffffff;
    }
    
    .calculate-btn {
        border: 2px solid #ffffff;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Styles for Better Accessibility */
.calculate-btn:focus,
.nav-btn:focus,
.time-select:focus,
.nav-link:focus,
.brand-link:focus {
    outline: 2px solid #4a90e2;
    outline-offset: 2px;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Mobile devices - single column */
@media (max-width: 600px) {
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .info-card {
        padding: 1.5rem;
    }
}