/* =====================================================
   ASTROSKOP SINASTRIJA - FRONTEND CSS
   ===================================================== */

/* Forma wrapper */
.astro-synastry-forma-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.astro-synastry-forma {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    align-items: start;
}

/* Person cards */
.synastry-person {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.synastry-person-a {
    border-top: 4px solid #9333ea;
}

.synastry-person-b {
    border-top: 4px solid #3b82f6;
}

.synastry-person h3 {
    font-size: 1.4rem;
    margin: 0 0 20px 0;
    color: #1f2937;
}

/* Heart icon */
.synastry-heart {
    font-size: 3rem;
    align-self: center;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Form fields */
.astro-field {
    margin-bottom: 18px;
}

.astro-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #374151;
    font-size: 0.9rem;
}

.astro-field input[type="text"],
.astro-field input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.astro-field input:focus {
    outline: none;
    border-color: #9333ea;
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
}

/* Date and time selects */
.date-selects,
.time-selects {
    display: flex;
    gap: 8px;
    align-items: center;
}

.date-selects select,
.time-selects select {
    flex: 1;
    padding: 12px 10px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.95rem;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.date-selects select:focus,
.time-selects select:focus {
    outline: none;
    border-color: #9333ea;
}

.time-separator {
    font-size: 1.2rem;
    font-weight: bold;
    color: #6b7280;
}

/* Common section */
.synastry-common {
    grid-column: 1 / -1;
    max-width: 400px;
    margin: 0 auto;
}

/* Buttons */
.synastry-buttons {
    grid-column: 1 / -1;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
}

.btn-synastry-free,
.btn-synastry-paid {
    padding: 15px 35px;
    border: none;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-synastry-free {
    background: #f3f4f6;
    color: #374151;
    border: 2px solid #e5e7eb;
}

.btn-synastry-free:hover {
    background: #e5e7eb;
    transform: translateY(-2px);
}

.btn-synastry-paid {
    background: linear-gradient(135deg, #9333ea 0%, #7c3aed 50%, #6366f1 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.3);
}

.btn-synastry-paid:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(147, 51, 234, 0.4);
}

/* Loading */
.synastry-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 30px;
}

.synastry-loading .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e5e7eb;
    border-top-color: #9333ea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error */
.synastry-error {
    grid-column: 1 / -1;
    background: #fef2f2;
    color: #dc2626;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
}

/* =====================================================
   REZULTAT PRIKAZ
   ===================================================== */

.astro-synastry-result {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.synastry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.person-card {
    flex: 1;
    text-align: center;
    background: #fff;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.person-card.person-a {
    border-top: 4px solid #9333ea;
}

.person-card.person-b {
    border-top: 4px solid #3b82f6;
}

.person-card .zodiac-symbol {
    font-size: 3rem;
    display: block;
    margin-bottom: 10px;
}

.person-card h3 {
    font-size: 1.3rem;
    margin: 0 0 8px 0;
    color: #1f2937;
}

.person-card .sun-sign {
    color: #6b7280;
    margin: 4px 0;
    font-size: 0.95rem;
}

.person-card .asc-sign {
    color: #9ca3af;
    font-size: 0.85rem;
    margin: 0;
}

/* Compatibility score */
.compatibility-score {
    text-align: center;
    padding: 20px;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(
        var(--score-color, #9333ea) calc(var(--score, 50) * 3.6deg),
        #e5e7eb calc(var(--score, 50) * 3.6deg)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    position: relative;
}

.score-circle::before {
    content: '';
    width: 100px;
    height: 100px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
}

.score-number {
    position: relative;
    font-size: 1.8rem;
    font-weight: 700;
    color: #1f2937;
}

.score-level {
    font-weight: 600;
    color: #6b7280;
    margin: 0;
}

/* Summary */
.synastry-summary {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 30px;
}

.synastry-summary p {
    margin: 0;
    color: #4c1d95;
    font-size: 1.05rem;
}

/* Teaser */
.synastry-teaser {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
}

.synastry-teaser h3 {
    font-size: 1.3rem;
    margin: 0 0 20px 0;
    color: #1f2937;
}

.synastry-teaser ul {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    text-align: left;
}

.synastry-teaser li {
    padding: 8px 0;
    color: #4b5563;
}

.btn-upgrade-synastry {
    background: linear-gradient(135deg, #9333ea 0%, #7c3aed 50%, #6366f1 100%);
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.3);
}

.btn-upgrade-synastry:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(147, 51, 234, 0.4);
}

/* CTA Button */
.astro-synastry-cta {
    text-align: center;
    padding: 20px;
}

.btn-synastry-cta {
    display: inline-block;
    background: linear-gradient(135deg, #ec4899 0%, #9333ea 100%);
    color: white;
    padding: 18px 45px;
    border-radius: 50px;
    font-size: 1.15rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(236, 72, 153, 0.3);
}

.btn-synastry-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(236, 72, 153, 0.4);
    color: white;
}

/* Empty state */
.astro-synastry-empty {
    text-align: center;
    padding: 50px;
    background: #f9fafb;
    border-radius: 16px;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 768px) {
    .astro-synastry-forma {
        grid-template-columns: 1fr;
    }
    
    .synastry-heart {
        display: none;
    }
    
    .synastry-header {
        flex-direction: column;
    }
    
    .compatibility-score {
        order: -1;
    }
    
    .synastry-teaser ul {
        grid-template-columns: 1fr;
    }
    
    .synastry-buttons {
        flex-direction: column;
    }
    
    .btn-synastry-free,
    .btn-synastry-paid {
        width: 100%;
    }
}
