/* Zodiac Compatibility Calculator Styles */
/* Color Scheme: ZodiacFeed Red (#D11919), White (#FFFFFF), Black (#1d1d1d) */

:root {
    --red: #D11919;
    --red-light: #e61d1d;
    --red-dark: #b01515;
    --white: #ffffff;
    --black: #1d1d1d;
    --gray-light: #f5f5f5;
    --gray: #888888;
    --gray-dark: #383838;
    
    --font-primary: 'Lato', sans-serif;
    
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 20px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-primary);
    color: var(--black);
    background-color: var(--white);
    line-height: 1.6;
}

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

/* Header Styles */
.header {
    background-color: var(--white);
    color: var(--black);
    padding: 20px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--gray-light);
}

.logo h1 {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--black);
}

.logo h1 i {
    color: var(--red);
}

.tagline {
    font-size: 1rem;
    color: var(--gray-dark);
    margin-bottom: 15px;
}

.seo-intro {
    background-color: var(--gray-light);
    padding: 15px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--red);
}

.seo-intro p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--black);
}

.seo-intro strong {
    color: var(--red);
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-family: var(--font-primary);
    font-size: 2rem;
    color: var(--red);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 700;
}

.section-header p {
    color: var(--gray-dark);
    font-size: 1.1rem;
}

/* Calculator Section */
.calculator-section {
    background-color: var(--gray-light);
    padding: 40px;
    border-radius: var(--border-radius);
    margin-bottom: 40px;
    box-shadow: var(--shadow);
}

.zodiac-selectors {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
}

.selector-box {
    background-color: var(--white);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    transition: var(--transition);
}

.selector-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.selector-box h3 {
    color: var(--red);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 600;
}

.dropdown-container {
    position: relative;
    margin-bottom: 15px;
}

.zodiac-dropdown {
    width: 100%;
    padding: 15px 20px;
    font-size: 1.1rem;
    border: 2px solid var(--gray);
    border-radius: var(--border-radius);
    background-color: var(--white);
    color: var(--black);
    appearance: none;
    cursor: pointer;
    transition: var(--transition);
}

.zodiac-dropdown:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(209, 25, 25, 0.1);
}

.zodiac-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--red);
}

.zodiac-dates {
    font-size: 0.95rem;
    color: var(--gray-dark);
    font-style: italic;
    padding: 8px 0;
    border-top: 1px dashed var(--gray);
}

.vs-circle {
    background-color: var(--red);
    color: var(--white);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: var(--shadow);
}

.vs-circle i {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.calculate-button-container {
    text-align: center;
}

.calculate-btn {
    background: linear-gradient(135deg, var(--red) 0%, var(--red-light) 100%);
    color: var(--white);
    border: none;
    padding: 18px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow);
}

.calculate-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    background: linear-gradient(135deg, var(--red-light) 0%, var(--red) 100%);
}

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

.btn-note {
    margin-top: 15px;
    color: var(--gray-dark);
    font-size: 0.9rem;
    font-style: italic;
}

/* Results Section */
.results-section {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    margin-bottom: 40px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(209, 25, 25, 0.1);
}

.results-container {
    min-height: 400px;
    position: relative;
}

.loading {
    display: none;
    text-align: center;
    padding: 60px 20px;
}

.loading.active {
    display: block;
}

.spinner {
    border: 5px solid rgba(209, 25, 25, 0.1);
    border-top: 5px solid var(--red);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.spinner.small {
    width: 30px;
    height: 30px;
    border-width: 3px;
}

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

.placeholder-results {
    opacity: 0.6;
}

.compatibility-score {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
    align-items: center;
}

.score-circle {
    background: linear-gradient(135deg, var(--red) 0%, var(--red-light) 100%);
    color: var(--white);
    width: 180px;
    height: 180px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.score {
    font-size: 3rem;
    font-weight: bold;
    line-height: 1;
}

.score-label {
    font-size: 1rem;
    opacity: 0.9;
    margin-top: 5px;
}

.score-breakdown {
    flex: 1;
    min-width: 300px;
}

.breakdown-item {
    margin-bottom: 20px;
}

.breakdown-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--red);
}

.breakdown-bar {
    height: 12px;
    background-color: var(--gray-light);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 5px;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--red) 0%, var(--red-light) 100%);
    border-radius: 6px;
    transition: width 1s ease;
}

.breakdown-value {
    font-weight: 600;
    color: var(--red);
    float: right;
}

.analysis-text {
    background-color: var(--gray-light);
    padding: 30px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--red);
}

.analysis-text h3 {
    color: var(--red);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.analysis-points {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 25px;
}

.point {
    padding: 20px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.point.positive {
    background-color: rgba(0, 128, 0, 0.1);
    border-left: 4px solid green;
}

.point.challenge {
    background-color: rgba(255, 165, 0, 0.1);
    border-left: 4px solid orange;
}

.point.advice {
    background-color: rgba(0, 0, 255, 0.1);
    border-left: 4px solid blue;
}

.point i {
    font-size: 1.5rem;
    margin-top: 2px;
}

.point.positive i {
    color: green;
}

.point.challenge i {
    color: orange;
}

.point.advice i {
    color: blue;
}

.cache-notice {
    background-color: rgba(209, 25, 25, 0.1);
    padding: 15px;
    border-radius: var(--border-radius);
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--red);
    font-size: 0.9rem;
}

/* Quick Links Grid */
.quick-links-section {
    background-color: var(--gray-light);
    padding: 40px;
    border-radius: var(--border-radius);
    margin-bottom: 40px;
    box-shadow: var(--shadow);
}

.zodiac-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.zodiac-combo {
    background-color: var(--white);
    padding: 15px;
    border-radius: var(--border-radius);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    box-shadow: var(--shadow);
}

.zodiac-combo:hover {
    transform: translateY(-3px);
    border-color: var(--red);
    box-shadow: var(--shadow-hover);
}

.zodiac-combo h4 {
    color: var(--red);
    margin-bottom: 10px;
    font-size: 1.1rem;
    font-weight: 600;
}

.zodiac-combo p {
    color: var(--gray);
    font-size: 0.9rem;
}

.grid-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
}

/* SEO Content Section */
.seo-content-section {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    margin-bottom: 40px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(209, 25, 25, 0.1);
}

.seo-article h3 {
    color: var(--red);
    font-family: var(--font-primary);
    font-size: 1.8rem;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--red);
    padding-bottom: 10px;
    font-weight: 700;
}

.seo-article h4 {
    color: var(--red);
    margin: 25px 0 15px;
    font-size: 1.4rem;
    font-weight: 600;
}

.seo-article h5 {
    color: var(--red);
    margin: 15px 0 10px;
    font-size: 1.1rem;
    font-weight: 600;
}

.seo-article p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.seo-article ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.seo-article li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.compatibility-factors {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.factor {
    background-color: var(--gray-light);
    padding: 25px;
    border-radius: var(--border-radius);
    text-align: center;
    border-top: 4px solid var(--red);
}

.factor i {
    font-size: 2.5rem;
    color: var(--red);
    margin-bottom: 15px;
}

.cta-box {
    background: linear-gradient(135deg, rgba(209, 25, 25, 0.1) 0%, rgba(209, 25, 25, 0.05) 100%);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 2px dashed var(--red);
    margin-top: 30px;
    text-align: center;
}

.cta-btn {
    background-color: var(--red);
    color: var(--white);
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.cta-btn:hover {
    background-color: var(--red-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* Simple Zodiac Links Section */
.zodiac-links-section {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 40px;
    border: 1px solid var(--gray-light);
}

.zodiac-links-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.zodiac-sign-links {
    background-color: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-light);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.zodiac-sign-links h3 {
    color: var(--red);
    margin-bottom: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    border-bottom: 1px solid var(--red);
    padding-bottom: 6px;
}

.zodiac-sign-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.zodiac-sign-links li {
    margin-bottom: 3px;
    padding-bottom: 3px;
    border-bottom: 1px dotted var(--gray-light);
}

.zodiac-sign-links li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.zodiac-sign-links a {
    color: var(--black);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
    display: block;
    padding: 1px 0;
    line-height: 1.1;
}

.zodiac-sign-links a:hover {
    color: var(--red);
    padding-left: 5px;
}

.zodiac-sign-links a i {
    margin-right: 6px;
    color: var(--red);
    font-size: 0.8rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .logo h1 {
        font-size: 2rem;
    }
    
    .zodiac-selectors {
        flex-direction: column;
    }
    
    .selector-box {
        max-width: 100%;
    }
    
    .vs-circle {
        order: -1;
        margin-bottom: 20px;
    }
    
    .compatibility-score {
        justify-content: center;
        text-align: center;
    }
    
    .score-breakdown {
        min-width: 100%;
    }
    
    .analysis-points {
        grid-template-columns: 1fr;
    }
    
    .compatibility-factors {
        grid-template-columns: 1fr;
    }
    
    .zodiac-links-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .zodiac-sign-links {
        padding: 15px;
    }
    
    .zodiac-sign-links h3 {
        font-size: 1.1rem;
    }
    
    .zodiac-sign-links a {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 30px 0;
    }
    
    .logo h1 {
        font-size: 1.8rem;
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .calculator-section,
    .results-section,
    .quick-links-section,
    .seo-content-section {
        padding: 25px;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
        flex-direction: column;
        gap: 8px;
    }
    
    .calculate-btn {
        padding: 15px 30px;
        font-size: 1.1rem;
    }
    
    .score-circle {
        width: 150px;
        height: 150px;
    }
    
    .score {
        font-size: 2.5rem;
    }
    
    .zodiac-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .calculator-section,
    .results-section,
    .quick-links-section,
    .seo-content-section {
        padding: 20px;
    }
    
    .selector-box {
        padding: 20px;
    }
    
    .zodiac-dropdown {
        padding: 12px 15px;
        font-size: 1rem;
    }
    
    .calculate-btn {
        width: 100%;
        justify-content: center;
    }
    
    .zodiac-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .seo-article h3 {
        font-size: 1.5rem;
    }
    
    .seo-article h4 {
        font-size: 1.2rem;
    }
}
