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

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #2d2b32; /* main text charcoal */
    background-color: #f9f8f7; /* soft ivory */
    min-height: 100vh;
    overflow-x: hidden;
}

/* Header Styles */
header {
    background: rgba(10, 18, 40, 0.8); /* deep translucent navy */
    border-bottom: 1px solid rgba(198, 167, 95, 0.3); /* gold tint line */
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
    font-family: 'Montserrat', sans-serif; /* clean nav text */
}

.navbar {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 24px;
    font-weight: 600;
    color: #c6a75f; /* celestial gold */
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo h1 {
    font-family: 'Cinzel Decorative', serif; /* celestial brand name */
    color: #c6a75f; /* gold accent */
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Hamburger Menu Button */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    width: 50px;
    height: 50px;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.hamburger .bar {
    width: 30px;
    height: 3px;
    background-color: #f8f8f8; /* light on dark header */
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: #f2f2f2; /* header link color */
    font-weight: 500;
    transition: color 0.3s, border-color 0.3s;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #c6a75f; /* gold hover */
    border-bottom: 2px solid #c6a75f;
}

/* Main Container */
.main-container-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px 20px 60px 20px;
    display: flex;
    gap: 40px;
    overflow-x: hidden;
}

.main-container {
    flex: 1;
    min-width: 0;
    overflow-x: hidden;
}

/* Card Base */
.fortune-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin-bottom: 50px;
    border: 1px solid rgba(0,0,0,0.03);
}

/* Card Header / Banner inside the card */
.card-header {
    background: #0a1228; /* deep navy to echo the zodiac wheel */
    color: #f8f8f8;
    padding: 30px;
    text-align: center;
    border-radius: 15px 15px 0 0;
    margin: -40px -40px 30px -40px;
}

.card-header h1 {
    font-family: 'Cinzel', serif;
    font-size: 28px;
    margin-bottom: 10px;
    color: #c6a75f; /* warm gold */
    font-weight: 700;
    letter-spacing: 0.5px;
}

.card-header p {
    opacity: 0.9;
    font-size: 16px;
    color: #dcdce8; /* soft cool light text */
}

/* Progress Card */
.progress-card {
    background: transparent;
    border-radius: 15px;
    padding: 25px 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    margin-top: 0;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
    background-color: #ffffff;
}

.progress-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

/* Progress Bar */
.progress-bar {
    display: flex;
    justify-content: space-between;
    padding: 0;
    margin-bottom: 0;
    position: relative;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

.progress-fill {
    position: absolute;
    top: 50%;
    left: 0;
    height: 2px;
    background: #c6a75f; /* gold progress line */
    transition: width 0.3s ease;
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.step-circle {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #d0d0d0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #777;
    transition: all 0.3s ease;
}

.step.active .step-circle {
    border-color: #c6a75f;
    background: #c6a75f;
    color: #0a0a0a;
}

.step.completed .step-circle {
    border-color: #a8904a;
    background: #a8904a;
    color: #0a0a0a;
}

.step-label {
    margin-top: 8px;
    font-size: 11px;
    color: #666;
    font-weight: 500;
    text-align: center;
}

.step.active .step-label {
    color: #c6a75f;
    font-weight: 600;
}

/* Page Content */
.page {
    display: none;
}

.page.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* Titles and subtitles on page */
.page1-title {
    text-align: center;
    font-family: 'Cinzel', serif;
    font-size: 20px;
    color: #c6a75f; /* gold headline */
    margin-bottom: 10px;
    margin-top: 10px;

    font-weight: 700;
    letter-spacing: 0.5px;
}

.page1-subtitle {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: #666; /* muted supporting text */
    margin-bottom: 10px;
    line-height: 1.4;
}

.page-title {
    font-size: 24px;
    color: #2d2b32;
    margin-bottom: 10px;
    font-weight: 600;
    font-family: 'Cinzel', serif;
}

.page-subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
    line-height: 1.5;
    font-family: 'Montserrat', sans-serif;
}

.selected-zodiac-name {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 18px;
    color: #c6a75f; /* gold accent for chosen sign */
    letter-spacing: 0.5px;
}

.selected-zodiac-date {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #666;
}

/* Zodiac Wheel */
.zodiac-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px auto;
    position: relative;
    width: 100%;
    max-width: 600px;
    height: auto;
}

.zodiac-grid::before {
    content: '';
    display: block;
    padding-top: 100%;
}

.zodiac-wheel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-image: url('../zodiac-wheel.jpg'); /* your dark blue wheel */
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    box-shadow: 0 0 50px rgba(28, 34, 78, 0.6); /* bluish glow */
    /* optional subtle border glow in gold */
    border: 2px solid rgba(198, 167, 95, 0.4);
}

.zodiac-slice {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: none;
}

.zodiac-slice-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    transition: all 0.3s ease;
    clip-path: polygon(50% 50%, 37.1% 1.7%, 62.9% 1.7%);
    pointer-events: auto;
    transform: rotate(15deg);
    transform-origin: 50% 50%;
}

.zodiac-slice:hover .zodiac-slice-bg {
    background: rgba(198, 167, 95, 0.35); /* soft gold hover */
}

.zodiac-slice.selected .zodiac-slice-bg {
    background: rgba(198, 167, 95, 0.55);
    box-shadow: inset 0 0 30px rgba(198, 167, 95, 0.6);
}

/* Form Styles */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2d2b32;
    font-weight: 600;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
}

.form-group select,
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    font-family: inherit;
    background-color: #ffffff;
    color: #2d2b32;
}

.form-group select:focus,
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #c6a75f; /* gold focus ring */
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.button-group {
    display: flex;
    gap: 15px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.btn {
    flex: 1;
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.btn-secondary {
    background: #efefef;
    color: #444;
}

.btn-secondary:hover {
    background: #e5e5e5;
}

.btn-primary {
    background: linear-gradient(135deg, #c6a75f 0%, #a8904a 100%); /* gold button */
    color: #0a0a0a;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(198, 167, 95, 0.4);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Review / Summary section */
.review-section {
    background: #f8f5fa; /* faint lilac/ivory mix for mystic tone */
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid rgba(198, 167, 95, 0.25);
}

.review-section h3 {
    font-size: 16px;
    color: #c6a75f;
    margin-bottom: 15px;
    font-family: 'Cinzel', serif;
    font-weight: 700;
}

.review-item {
    display: flex;
    margin-bottom: 12px;
    font-size: 14px;
    color: #2d2b32;
}

.review-item strong {
    min-width: 150px;
    color: #444;
    font-weight: 600;
}

.review-item span {
    color: #2d2b32;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.spinner {
    border: 3px solid #efefef;
    border-top: 3px solid #c6a75f;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-message {
    background: #fee;
    color: #c33;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #c33;
}

.success-message {
    background: #efe;
    color: #2a5;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #2a5;
}

.fortune-output {
    margin-top: 20px;
    padding: 25px;
    background: #f8f5fa; /* same subtle panel bg */
    border-radius: 8px;
    border-left: 4px solid #c6a75f; /* accent stripe */
    border: 1px solid rgba(198, 167, 95, 0.25);
}

.fortune-output h3 {
    color: #2d2b32;
    margin-bottom: 15px;
    font-size: 18px;
    font-family: 'Cinzel', serif;
    font-weight: 700;
}

.fortune-text {
    color: #444;
    line-height: 1.8;
    white-space: pre-wrap;
    font-size: 15px;
    font-family: 'Montserrat', sans-serif;
}

/* Export buttons */
.export-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.export-buttons button {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 6px;
    background: #c6a75f;
    color: #0a0a0a;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
}

.export-buttons button:hover {
    background: #a8904a;
}

/* Footer */
footer {
    background: #0a1228; /* deep navy footer */
    color: #f2f2f2;
    padding: 50px 0 20px;
    border-top: 1px solid rgba(198, 167, 95, 0.3);
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.footer-section h4 {
    margin-bottom: 20px;
    color: #c6a75f;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.5px;
}

.footer-section a {
    color: #dcdce8;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 14px;
}

.footer-section a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(198, 167, 95, 0.2);
    padding-top: 20px;
    margin-top: 30px;
    text-align: center;
    color: #9ca0b8;
    font-size: 13px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .main-container-wrapper {
        flex-direction: column;
        padding: 0 10px 40px 10px !important;
    }

    .main-container {
        padding: 0 !important;
    }

    .sidebar {
        width: 100%;
        margin-top: 40px;
    }

    .trending-item {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }

    .trending-image {
        height: 180px;
    }

    .progress-card {
        padding: 0px 0px;
        margin: 0 0 0px 0 !important;
        border-radius: 10px;
    }

    .progress-bar {
        padding: 10px 0;
    }

    .step-label {
        font-size: 10px;
    }

    .step-circle {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .navbar {
        position: relative;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        height: 80px;
        padding: 0 20px;
    }

    .hamburger {
        display: flex !important;
        order: 3;
        z-index: 1001;
        position: relative;
    }

    .logo {
        order: 1;
        z-index: 1001;
        color: #c6a75f;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        background: #0a1228;
        flex-direction: column;
        padding: 0;
        margin: 0;
        box-shadow: 0 4px 15px rgba(0,0,0,0.6);
        border-top: 1px solid rgba(198,167,95,0.3);
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        gap: 0;
        z-index: 1000;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        max-height: 500px;
        padding: 20px 0;
    }

    .nav-menu li {
        margin: 0;
        padding: 0;
        width: 100%;
        list-style: none;
    }

    .nav-menu a {
        display: block;
        padding: 15px 20px;
        color: #f8f8f8;
        font-weight: 500;
        text-decoration: none;
        border-bottom: 1px solid rgba(198,167,95,0.2);
        transition: all 0.2s ease;
        border-bottom-color: rgba(255,255,255,0.07);
    }

    .nav-menu a:hover {
        color: #c6a75f;
        background-color: rgba(255,255,255,0.03);
        padding-left: 30px;
    }

    .nav-menu li:last-child a {
        border-bottom: none;
    }

    .fortune-card {
        padding: 20px;
        margin-bottom: 30px;
    }

    .card-header {
        margin: -20px -20px 20px -20px;
        padding: 20px;
    }

    .zodiac-grid {
        width: 90vw;
        max-width: 450px;
        margin: 20px auto;
    }

    .trending-image {
        height: 180px !important;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .zodiac-grid {
        width: 85vw;
        max-width: 350px;
    }
}

/* Sidebar as Featured Section */
.sidebar {
    width: 100%;
    margin-top: 60px;
}

.sidebar h3 {
    color: #c6a75f;
    font-family: 'Cinzel', serif;
    font-size: 2em;
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 3px solid rgba(198,167,95,0.5);
    padding-bottom: 15px;
}

.trending-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.trending-item {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
    border: 1px solid rgba(0,0,0,0.03);
}

.trending-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.trending-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 0;
    margin-bottom: 0;
}

.trending-item a {
    text-decoration: none;
    color: #2d2b32;
    font-weight: 600;
    font-size: 1.1em;
    line-height: 1.4;
    display: block;
    padding: 20px;
    transition: color 0.3s;
    font-family: 'Montserrat', sans-serif;
}

.trending-item a:hover {
    color: #3c64b1; /* subtle blue hover to connect to wheel */
}

.tip-box {
    background: #ffffff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: center;
    max-width: 800px;
    margin: 40px auto 0;
    border: 1px solid rgba(0,0,0,0.03);
}

.tip-box p {
    color: #666;
    font-style: italic;
    line-height: 1.8;
    margin: 0;
    font-size: 1.1em;
    font-family: 'Montserrat', sans-serif;
}

/* Sidebar Styles */
.sidebar {
    width: 350px;
    flex-shrink: 0;
}

.sidebar h3 {
    color: #c6a75f;
    font-family: 'Cinzel', serif;
    font-size: 1.5em;
    margin-bottom: 20px;
    border-bottom: 3px solid rgba(198,167,95,0.5);
    padding-bottom: 10px;
}

.trending-list {
    list-style: none;
    padding: 0;
}

.trending-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.07);
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

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

.trending-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.trending-item a {
    text-decoration: none;
    color: #2d2b32;
    font-weight: 600;
    font-size: 1.1em;
    line-height: 1.4;
    display: block;
    transition: color 0.3s;
}

.trending-item a:hover {
    color: #3c64b1;
}

.tip-box {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.03);
}

.tip-box p {
    color: #666;
    font-style: italic;
    line-height: 1.6;
    margin: 0;
}
