/* css/style.css */

/* --- General & Font Setup --- */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f3f4f6;
    color: #374151;
    min-height: 100vh;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.container {
    max-width: 800px;
    width: 100%;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* --- Header --- */
header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: #ffffff;
    text-align: center;
    padding: 30px 20px;
}

header .header-logo {
    max-width: 100px;
    margin-bottom: 15px;
    filter: brightness(0) invert(1);
}

header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
}

/* --- Main Content --- */
main {
    padding: 20px;
}

/* --- Form Section --- */
.form-section {
    text-align: center;
    margin-bottom: 30px;
}

.form-section h2 {
    font-size: 1.5rem;
    color: #1f2937;
    margin-bottom: 20px;
}

.form-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.form-container input,
.form-container button {
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 1rem;
    border: 1px solid #d1d5db;
}

.form-container button {
    background-color: #3b82f6;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.form-container button:hover {
    background-color: #2563eb;
}

.error-message {
    color: #ef4444;
    font-weight: 500;
    text-align: center;
    margin-top: 15px;
    min-height: 1.25rem;
}

/* --- Results Section --- */
#results-section {
    animation: fade-in 0.6s ease-out;
}

.zodiac-highlight {
    background-color: #eff6ff;
    border-left: 5px solid #3b82f6;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin-bottom: 30px;
}

.zodiac-highlight h2 {
    font-size: 1.125rem;
    color: #1e3a8a;
    margin-top: 0;
}

.zodiac-highlight .sign {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e3a8a;
}

.report-button-container {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 30px;
}

.results-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.result-card {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
}

.result-card h3 {
    font-size: 1.25rem;
    color: #111827;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 10px;
    margin-top: 0;
    margin-bottom: 20px;
}

.result-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 10px;
}

.year-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    color: #4b5563;
}
.year-tags:last-child { margin-bottom: 0; }

.year-tag {
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}
.year-prime { background-color: #10b981; color: #fff; }
.year-enemy { background-color: #ef4444; color: #fff; }

.explanation-section {
    margin-top: 20px;
    padding: 20px;
    background-color: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.explanation-section h3 {
    font-size: 1.125rem;
    color: #1e3a8a;
    margin-top: 15px;
    margin-bottom: 10px;
}
.explanation-section h3:first-child { margin-top: 0; }
.explanation-section p { color: #4b5563; line-height: 1.7; margin-bottom: 0; }

.cta-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    flex-direction: column;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    font-size: 1rem;
    cursor: pointer;
}
.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.whatsapp-button { background-color: #25d366; }
.download-button { background-color: #ef4444; }
.cta-button svg { height: 1.25rem; width: 1.25rem; fill: currentColor; }

/* --- SEO Content Section --- */
.content-section {
    padding: 20px;
    line-height: 1.7;
    color: #4b5563;
}

.content-section h2 {
    font-size: 1.75rem;
    color: #1f2937;
    text-align: center;
    margin-bottom: 20px;
}

.content-section h3 {
    font-size: 1.25rem;
    color: #1e3a8a;
    margin-top: 30px;
    margin-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 5px;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 20px 10px;
    color: #6b7280;
    font-size: 0.9rem;
}

footer a { color: #3b82f6; text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* --- Admin & Payment Page specific styles --- */
.admin-link { font-size: 0.8rem; color: #6b7280; }
.payment-form-container, .login-form-container, .admin-panel { padding: 20px; text-align: center; }
.form-group { margin-bottom: 20px; text-align: left; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 600; }
.form-group input { width: 100%; padding: 12px 15px; border-radius: 8px; font-size: 1rem; border: 1px solid #d1d5db; box-sizing: border-box; }
.logout-link { display: inline-block; margin-top: 20px; color: #ef4444; }
.back-link { display: inline-block; margin-top: 20px; color: #3b82f6; text-decoration: none; font-size: 0.9rem; }
.back-link:hover { text-decoration: underline; }
.admin-footer { text-align: center; margin-top: 30px; }

/* --- Responsive & Animation --- */
@media (min-width: 640px) {
    main { padding: 30px; }
    header h1 { font-size: 2.25rem; }
    header .header-logo { max-width: 120px; }
    .form-container { flex-direction: row; }
    .cta-container { flex-direction: row; }
    .content-section { padding: 30px; }
}
@media (min-width: 768px) {
    .results-grid { grid-template-columns: 1fr 1fr; }
}
@keyframes fade-in {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}