/* Vedic Astrology Website Styles */

/* Color Palette - Traditional Vedic Colors */
:root {
    --saffron: #FF8C42;
    --deep-saffron: #C04000;
    --purple: #6A0572;
    --maroon: #A0353A;
    --gold: #DAA520;
    --light-saffron: #FFF4E6;
    --lavender: #E6E6FA;
    --dark-brown: #3E2723;
    --medium-brown: #5D4037;
    --light-gold: #FFFACD;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--dark-brown);
    background: linear-gradient(135deg, var(--light-saffron) 0%, var(--white) 50%, var(--lavender) 100%);
    min-height: 100vh;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', serif;
    color: var(--deep-saffron);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, var(--purple) 0%, var(--maroon) 100%);
    color: var(--white);
    padding: 1.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.om-symbol {
    font-size: 3rem;
    color: var(--gold);
    font-weight: bold;
    text-shadow: 0 2px 10px rgba(218, 165, 32, 0.5);
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--white);
    margin: 0;
}

.tagline {
    font-size: 0.85rem;
    color: var(--light-saffron);
    font-style: italic;
    margin: 0;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    color: var(--gold);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--saffron) 0%, var(--maroon) 100%);
    color: var(--white);
    text-align: center;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '✦ ✦ ✦ ✦ ✦ ✦ ✦';
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    font-size: 1.5rem;
    opacity: 0.3;
    letter-spacing: 3rem;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--white);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.decorative-line {
    width: 100px;
    height: 3px;
    background: var(--gold);
    margin: 0 auto;
    box-shadow: 0 0 10px var(--gold);
}

/* Form Section */
.form-section {
    padding: 3rem 0;
}

.form-container {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 2.5rem;
    max-width: 800px;
    margin: 0 auto;
    border: 3px solid var(--saffron);
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--light-saffron);
}

.form-header h3 {
    font-size: 2rem;
    color: var(--purple);
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--medium-brown);
    font-size: 0.95rem;
}

.form-group-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--light-saffron);
    border-radius: 10px;
    border-left: 4px solid var(--saffron);
}

.section-title {
    font-size: 1.3rem;
    color: var(--maroon);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.icon {
    font-size: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-brown);
    font-size: 0.95rem;
}

.required {
    color: var(--maroon);
}

.optional {
    color: var(--medium-brown);
    font-weight: 400;
    font-size: 0.85rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--light-saffron);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Lato', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--saffron);
    box-shadow: 0 0 0 3px rgba(255, 140, 66, 0.1);
}

.form-group input:invalid:not(:placeholder-shown) {
    border-color: var(--maroon);
}

.helper-text {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--medium-brown);
}

.error-message {
    display: block;
    color: var(--maroon);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.form-actions {
    text-align: center;
    margin-top: 2rem;
}

.btn-submit {
    background: linear-gradient(135deg, var(--saffron) 0%, var(--deep-saffron) 100%);
    color: var(--white);
    border: none;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(192, 64, 0, 0.3);
    font-family: 'Cinzel', serif;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(192, 64, 0, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success & Error Messages */
.success-message {
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
    border: 3px solid #4CAF50;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
}

.success-icon {
    width: 60px;
    height: 60px;
    background: #4CAF50;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.success-message h4 {
    color: #2E7D32;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.success-details {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
}

.success-details p {
    margin: 0.5rem 0;
    font-size: 1rem;
}

.btn-download {
    display: inline-block;
    background: linear-gradient(135deg, var(--purple) 0%, var(--maroon) 100%);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    margin: 1rem 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(106, 5, 114, 0.3);
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(106, 5, 114, 0.4);
}

.btn-secondary {
    background: var(--light-saffron);
    color: var(--maroon);
    border: 2px solid var(--saffron);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    margin: 0.5rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--saffron);
    color: var(--white);
}

.error-alert {
    background: #FFEBEE;
    border: 3px solid #F44336;
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 2rem;
    text-align: center;
}

.success-alert {
    background: #E8F5E9;
    border: 3px solid #4CAF50;
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 2rem;
    text-align: center;
}

.error-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.btn-close {
    background: var(--maroon);
    color: var(--white);
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    margin-top: 1rem;
}

/* Features Section */
.features {
    padding: 4rem 0;
    background: var(--white);
}

.features-title {
    text-align: center;
    font-size: 2rem;
    color: var(--purple);
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: linear-gradient(135deg, var(--light-saffron) 0%, var(--white) 100%);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 2px solid var(--saffron);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 140, 66, 0.3);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h4 {
    color: var(--maroon);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.feature-card p {
    color: var(--medium-brown);
    font-size: 0.95rem;
}

/* History Page Styles */
.history-section {
    padding: 3rem 0;
    min-height: 60vh;
}

.history-header {
    text-align: center;
    margin-bottom: 3rem;
}

.history-header h2 {
    font-size: 2.5rem;
    color: var(--purple);
    margin-bottom: 0.5rem;
}

.history-header p {
    color: var(--medium-brown);
    font-size: 1.1rem;
}

.history-table-container {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    overflow-x: auto;
    border: 3px solid var(--saffron);
}

.history-table {
    width: 100%;
    border-collapse: collapse;
}

.history-table thead {
    background: linear-gradient(135deg, var(--purple) 0%, var(--maroon) 100%);
    color: var(--white);
}

.history-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
}

.history-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--light-saffron);
}

.history-table tbody tr:hover {
    background: var(--light-saffron);
}

.zodiac-badge {
    background: var(--gold);
    color: var(--dark-brown);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

.zodiac-badge.moon {
    background: var(--lavender);
}

.btn-download-small {
    background: var(--saffron);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-download-small:hover {
    background: var(--deep-saffron);
    transform: scale(1.05);
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: var(--purple);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--medium-brown);
    margin-bottom: 2rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--saffron) 0%, var(--deep-saffron) 100%);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(192, 64, 0, 0.4);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--purple) 0%, var(--maroon) 100%);
    color: var(--white);
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-section {
    text-align: center;
}

.om-symbol-small {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.footer-tagline {
    font-style: italic;
    opacity: 0.9;
    font-size: 0.95rem;
}

.disclaimer {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .nav {
        gap: 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .form-container {
        padding: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .history-table-container {
        padding: 1rem;
    }

    .history-table {
        font-size: 0.85rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}
