/* Global Styles */
:root {
    --primary-color: #8B0000;
    --secondary-color: #FFD700;
    --background-color: #FFF8DC;
    --text-color: #333;
    --border-color: #DAA520;
}

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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

/* Header Styles */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    text-align: center;
    border-bottom: 3px solid var(--border-color);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--secondary-color);
}

/* Main Content Styles */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.calculator {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    text-align: center;
}

.form-group {
    margin: 1rem 0;
}

.date-inputs {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    justify-content: center;
}

.date-inputs select {
    padding: 0.5rem;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Arial', sans-serif;
    min-width: 120px;
    background-color: white;
    cursor: pointer;
}

button {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
    margin-top: 1rem;
}

button:hover {
    background-color: #6B0000;
}

.result {
    margin-top: 2rem;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    display: none;
}

/* Zodiac Stories Grid */
.zodiac-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.zodiac-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

.zodiac-card:hover {
    transform: translateY(-5px);
}

.zodiac-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.read-more:hover {
    color: #6B0000;
}

/* Footer Styles */
footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .zodiac-grid {
        grid-template-columns: 1fr;
    }

    .date-inputs {
        flex-direction: column;
        align-items: center;
    }

    .date-inputs select {
        width: 100%;
        max-width: 200px;
    }
}

/* Zodiac Story Page Styles */
.zodiac-story {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.zodiac-story h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.zodiac-story section {
    margin-bottom: 2rem;
}

.zodiac-story h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.zodiac-story ul {
    list-style-position: inside;
    margin-left: 1rem;
}

.zodiac-story li {
    margin-bottom: 0.5rem;
}

.navigation-links {
    text-align: center;
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.back-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    min-width: 150px;
}

.back-link:hover {
    background-color: #6B0000;
}

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

/* Note Style */
.note {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin-top: 1rem;
    padding: 0.5rem;
    border-left: 3px solid var(--border-color);
    background-color: #FFF9E6;
}

.intro {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
} 