/* css/advanced-horoscope-style.css */
.advanced-horoscope-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Arial', sans-serif;
    background: #f8f9fa;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Sign Selection Section */
.sign-selection-section h2,
.period-selection-section h2,
.category-selection-section h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 1.8em;
}

.zodiac-signs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.zodiac-sign-option {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 15px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.zodiac-sign-option:hover {
    border-color: #3498db;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.zodiac-sign-option.active {
    border-color: #e74c3c;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.sign-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sign-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.zodiac-sign-option span {
    font-weight: 600;
    font-size: 0.9em;
}

/* Period and Category Selection */
.period-options,
.category-options {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.period-option,
.category-option {
    padding: 12px 24px;
    border: 2px solid #3498db;
    background: white;
    color: #3498db;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.period-option.active,
.period-option:hover,
.category-option.active,
.category-option:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

/* Horoscope Display Section */
.horoscope-display-section {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.horoscope-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #ecf0f1;
}

.selected-sign-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sign-icon-large {
    width: 80px;
    height: 80px;
}

.sign-icon-large img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sign-text h2 {
    color: #2c3e50;
    margin: 0;
    font-size: 2.2em;
}

.horoscope-period {
    color: #7f8c8d;
    font-size: 1.1em;
    margin-top: 5px;
}

.horoscope-date {
    color: #34495e;
    font-size: 1em;
    text-align: right;
}

.horoscope-content {
    margin-bottom: 30px;
}

.category-title h3 {
    color: #e74c3c;
    font-size: 1.5em;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.horoscope-text {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #3498db;
    line-height: 1.8;
    font-size: 1.1em;
    color: #2c3e50;
}

.horoscope-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.change-selection-btn,
.view-all-categories-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.change-selection-btn {
    background: #95a5a6;
    color: white;
}

.view-all-categories-btn {
    background: #e74c3c;
    color: white;
}

.change-selection-btn:hover {
    background: #7f8c8d;
    transform: translateY(-2px);
}

.view-all-categories-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

/* All Categories Modal */
.all-categories-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.all-categories-modal .modal-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    max-width: 900px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #7f8c8d;
}

.close-modal:hover {
    color: #2c3e50;
}

.all-categories-modal h3 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.8em;
}

.all-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.category-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #3498db;
}

.category-card h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.2em;
}

.category-card p {
    color: #34495e;
    line-height: 1.6;
    margin: 0;
}

/* Loading Animation */
.loading {
    opacity: 0.7;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .advanced-horoscope-container {
        padding: 15px;
    }
    
    .zodiac-signs-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 10px;
    }
    
    .horoscope-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .selected-sign-info {
        flex-direction: column;
        text-align: center;
    }
    
    .horoscope-date {
        text-align: center;
    }
    
    .period-options,
    .category-options {
        gap: 8px;
    }
    
    .period-option,
    .category-option {
        padding: 10px 18px;
        font-size: 0.9em;
    }
    
    .all-categories-grid {
        grid-template-columns: 1fr;
    }
    
    .horoscope-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .zodiac-signs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .period-options,
    .category-options {
        flex-direction: column;
        align-items: center;
    }
    
    .period-option,
    .category-option {
        width: 200px;
    }
}