/* Horoscope Page Styles (Unified Daily/Monthly) */

/* Floating Toggle Below Header */
.floating-toggle {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    background: #F0F0F0;
    border-radius: 25px;
    padding: 4px;
    display: flex;
    gap: 4px;
    z-index: 90;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.toggle-btn {
    padding: 8px 24px;
    border-radius: 22px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.toggle-btn.active {
    background: var(--background);
    color: var(--text-primary);
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Sign Info Section */
.sign-info {
    text-align: center;
    padding: 120px 20px 30px; /* Extra top padding for toggle */
    background: linear-gradient(180deg, var(--background-gray) 0%, var(--background) 100%);
}

.sign-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 16px;
}

.sign-name {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.sign-dates {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.forecast-date {
    font-size: 16px;
    color: var(--text-primary);
    font-weight: 500;
}

/* Forecast Content */
.forecast-content {
    padding: 20px 16px 100px;
}

.forecast-card {
    background: var(--background);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.forecast-text {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
}

.forecast-text p {
    margin-bottom: 16px;
}

.forecast-text p:last-child {
    margin-bottom: 0;
}

/* Skeleton Loading */
.skeleton-text {
    height: 20px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 12px;
}

.skeleton-text:nth-child(2) {
    width: 90%;
}

.skeleton-text:nth-child(3) {
    width: 75%;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Other Signs Section */
.other-signs {
    margin-top: 40px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.signs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.sign-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    background: var(--background-light-gray);
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.2s, background 0.2s;
}

.sign-card:hover {
    transform: translateY(-2px);
    background: #E8F4FF;
}

.sign-card-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
}

.sign-card-name {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
}

/* Footer CTA */
.footer-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--background);
    padding: 10px 16px 16px;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
}

.cta-button {
    width: 100%;
    border-radius: 28px;
    border: none;
    overflow: hidden;
    background: transparent;
    padding: 0;
}

.cta-gradient {
    display: block;
    background: linear-gradient(90deg, var(--primary-light-blue), var(--primary-blue));
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    letter-spacing: 0.2px;
}

/* Share Button */
.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.share-btn:hover {
    background: #E8E8E8;
}

/* Share Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: var(--background);
    border-radius: 20px;
    padding: 24px;
    max-width: 400px;
    width: 100%;
}

.modal-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.modal-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.share-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.share-option {
    padding: 12px;
    background: var(--background-light-gray);
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.share-option:hover {
    background: #E8F4FF;
}

.modal-close {
    width: 100%;
    padding: 14px;
    background: var(--text-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 380px) {
    .sign-name {
        font-size: 24px;
    }
    
    .signs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .toggle-btn {
        padding: 8px 20px;
        font-size: 13px;
    }
}

/* Safe area handling for iOS */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .footer-cta {
        padding-bottom: calc(16px + env(safe-area-inset-bottom));
    }
}