/* Horoscope Styles - Adapted for WordPress Plugin */

.jyotisham-horoscope-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

.jyotisham-horoscope-header {
    text-align: center;
    padding: 32px 24px;
    margin-bottom: 24px;
}

.jyotisham-horoscope-header h1 {
    font-size: 2.75rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 12px 0;
    letter-spacing: -0.025em;
}

.jyotisham-horoscope-header p {
    color: #64748b;
    font-size: 1rem;
    margin: 0;
}

.jyotisham-horoscope-language-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    margin-top: 0;
    padding: 0;
    min-height: 50px;
}

.jyotisham-horoscope-lang-dropdown {
    padding: 14px 16px;
    padding-right: 40px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.5;
    background-color: #fff;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    min-height: 48px;
    height: auto;
    width: auto;
    min-width: 150px;
    box-sizing: border-box;
    display: inline-block;
    vertical-align: middle;
}

.jyotisham-horoscope-lang-dropdown:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Prevent select from collapsing */
.jyotisham-horoscope-lang-dropdown option {
    padding: 10px;
    min-height: 40px;
    line-height: 1.5;
}

/* Ensure proper spacing and prevent collapse */
.jyotisham-horoscope-language-selector + .jyotisham-horoscope-zodiac-grid {
    margin-top: 0;
}

.jyotisham-horoscope-zodiac-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0;
    margin-bottom: 32px;
    width: 100%;
    padding-top: 0;
}

.jyotisham-horoscope-zodiac-card {
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.jyotisham-horoscope-zodiac-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-color: #3b82f6;
}

.jyotisham-horoscope-zodiac-card.jyotisham-horoscope-selected {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.jyotisham-horoscope-zodiac-card.jyotisham-horoscope-selected .jyotisham-horoscope-zodiac-icon {
    filter: brightness(0) invert(1);
}

.jyotisham-horoscope-zodiac-card.jyotisham-horoscope-selected .jyotisham-horoscope-zodiac-name {
    color: #fff;
}

.jyotisham-horoscope-zodiac-icon {
    font-size: 64px;
    margin-bottom: 10px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    color: #3b82f6;
    font-weight: normal;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.jyotisham-horoscope-zodiac-icon-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    display: block;
}

.jyotisham-horoscope-zodiac-icon-symbol {
    display: block;
    font-size: 64px;
    line-height: 1;
}

.jyotisham-horoscope-zodiac-card.jyotisham-horoscope-selected .jyotisham-horoscope-zodiac-icon {
    color: #fff;
}

.jyotisham-horoscope-zodiac-card.jyotisham-horoscope-selected .jyotisham-horoscope-zodiac-icon-symbol {
    filter: brightness(0) invert(1);
}

.jyotisham-horoscope-zodiac-card.jyotisham-horoscope-selected .jyotisham-horoscope-zodiac-icon-img {
    filter: brightness(0) invert(1);
}

.jyotisham-horoscope-zodiac-name {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin-top: 8px;
}

.jyotisham-horoscope-section {
    max-width: 1200px;
    margin: 32px auto 0;
    padding: 0;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.jyotisham-horoscope-content-header {
    text-align: center;
    padding: 32px 32px 0;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.jyotisham-horoscope-content-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.875rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 24px;
}

.jyotisham-horoscope-title-icon {
    font-size: 1.875rem;
    color: #3b82f6;
}

.jyotisham-horoscope-tabs {
    display: flex;
    gap: 0;
    justify-content: center;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 0;
}

.jyotisham-horoscope-tab-btn {
    padding: 16px 24px;
    border: none;
    background: none;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 0;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
    position: relative;
}

.jyotisham-horoscope-tab-btn:hover:not(.jyotisham-horoscope-active) {
    background: #f1f5f9;
    color: #374151;
}

.jyotisham-horoscope-tab-btn.jyotisham-horoscope-active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
    background: #ffffff;
    font-weight: 600;
}

.jyotisham-horoscope-sub-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    padding: 0;
    flex-wrap: wrap;
}

.jyotisham-horoscope-sub-tab-btn {
    padding: 8px 16px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.jyotisham-horoscope-sub-tab-btn.jyotisham-horoscope-active {
    background: #3b82f6;
    color: #fff;
    border-color: #3b82f6;
}

.jyotisham-horoscope-sub-tab-btn:hover:not(.jyotisham-horoscope-active) {
    background: #f1f5f9;
    color: #374151;
}

.jyotisham-horoscope-content {
    padding: 32px;
}

.jyotisham-horoscope-loading {
    text-align: center;
    padding: 48px;
    color: #64748b;
    font-size: 18px;
}

.jyotisham-horoscope-spinner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    margin: 0 auto;
    max-width: 400px;
}

.jyotisham-horoscope-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f1f5f9;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: jyotisham-horoscope-spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes jyotisham-horoscope-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.jyotisham-horoscope-loading-text {
    color: #374151;
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

.jyotisham-horoscope-shimmer {
    background: linear-gradient(90deg, #f8fafc 25%, #e2e8f0 50%, #f8fafc 75%);
    background-size: 200% 100%;
    animation: jyotisham-horoscope-shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes jyotisham-horoscope-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.jyotisham-horoscope-skeleton-container {
    padding: 32px;
}

.jyotisham-horoscope-skeleton-date {
    height: 24px;
    width: 200px;
    margin-bottom: 24px;
    border-radius: 4px;
}

.jyotisham-horoscope-shimmer-lucky {
    height: 80px;
    margin-bottom: 24px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 20px;
    display: flex;
    gap: 16px;
}

.jyotisham-horoscope-shimmer-lucky-item {
    height: 40px;
    width: 150px;
    border-radius: 8px;
}

.jyotisham-horoscope-skeleton-category-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.jyotisham-horoscope-shimmer-category {
    height: 60px;
    margin-bottom: 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.jyotisham-horoscope-date-period {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #3b82f6;
}

.jyotisham-horoscope-lucky-info {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.jyotisham-horoscope-lucky-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.jyotisham-horoscope-lucky-color-box {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.jyotisham-horoscope-lucky-label {
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
}

.jyotisham-horoscope-lucky-value {
    color: #64748b;
    font-size: 0.875rem;
}

.jyotisham-horoscope-category-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.jyotisham-horoscope-category-item {
    display: flex;
    gap: 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.jyotisham-horoscope-category-item:hover {
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
    border-color: #cbd5e0;
}

.jyotisham-horoscope-category-item-no-desc {
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

.jyotisham-horoscope-category-label {
    padding: 12px 16px;
    flex: 1;
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
    text-transform: capitalize;
}

.jyotisham-horoscope-category-item-no-desc .jyotisham-horoscope-category-percentage {
    width: auto;
    min-width: 90px;
    border-radius: 0 8px 8px 0;
    flex-shrink: 0;
    padding: 12px 16px;
}

.jyotisham-horoscope-category-item-total {
    flex-direction: column;
    gap: 0;
}

.jyotisham-horoscope-category-description-total {
    padding: 16px;
    background-color: #fff;
    color: #4a5568;
    line-height: 1.6;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.875rem;
}

.jyotisham-horoscope-category-item-total .jyotisham-horoscope-category-percentage {
    width: 100%;
    border-radius: 0 0 8px 8px;
}

.jyotisham-horoscope-category-percentage {
    min-width: 90px;
    padding: 12px 16px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
}

.jyotisham-horoscope-category-percentage.total { background-color: #a78bfa; }
.jyotisham-horoscope-category-percentage.health { background-color: #f87171; }
.jyotisham-horoscope-category-percentage.friends { background-color: #4ade80; }
.jyotisham-horoscope-category-percentage.family { background-color: #60a5fa; }
.jyotisham-horoscope-category-percentage.travel { background-color: #fb923c; }
.jyotisham-horoscope-category-percentage.career { background-color: #34d399; }
.jyotisham-horoscope-category-percentage.relationship { background-color: #f472b6; }
.jyotisham-horoscope-category-percentage.finance { background-color: #4ade80; }
.jyotisham-horoscope-category-percentage.finances { background-color: #4ade80; }
.jyotisham-horoscope-category-percentage.status { background-color: #94a3b8; }
.jyotisham-horoscope-category-percentage.physique { background-color: #cbd5e1; }
.jyotisham-horoscope-category-percentage.love { background-color: #f472b6; }
.jyotisham-horoscope-category-percentage.education { background-color: #60a5fa; }

.jyotisham-horoscope-percentage-value {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}

.jyotisham-horoscope-category-name {
    font-size: 0.75rem;
    text-transform: capitalize;
    opacity: 0.9;
}

.jyotisham-horoscope-yearly-phase {
    margin-bottom: 24px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    background-color: #fff;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
}

.jyotisham-horoscope-yearly-phase:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.jyotisham-horoscope-phase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.jyotisham-horoscope-phase-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a202c;
}

.jyotisham-horoscope-phase-score {
    font-size: 1.25rem;
    font-weight: 700;
    color: #3b82f6;
}

.jyotisham-horoscope-phase-prediction {
    background-color: #f8fafc;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    line-height: 1.6;
    color: #4a5568;
    border-left: 4px solid #3b82f6;
}

.jyotisham-horoscope-yearly-categories {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.jyotisham-horoscope-yearly-category {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    background-color: #fff;
    transition: all 0.2s ease;
}

.jyotisham-horoscope-yearly-category:hover {
    background-color: #f8fafc;
    border-color: #3b82f6;
}

.jyotisham-horoscope-yearly-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.jyotisham-horoscope-yearly-category-name {
    font-weight: 600;
    color: #374151;
    text-transform: capitalize;
    font-size: 0.875rem;
}

.jyotisham-horoscope-yearly-category-score {
    font-weight: 700;
    color: #3b82f6;
    font-size: 1rem;
}

.jyotisham-horoscope-yearly-category-prediction {
    color: #64748b;
    line-height: 1.6;
    font-size: 0.875rem;
}

.jyotisham-horoscope-monthly-info {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.jyotisham-horoscope-monthly-item {
    padding: 12px 16px;
    background-color: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.jyotisham-horoscope-monthly-item-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    font-size: 0.875rem;
}

.jyotisham-horoscope-monthly-item-value {
    color: #64748b;
    font-size: 0.875rem;
}

.jyotisham-horoscope-error-message {
    background-color: #fee;
    border: 1px solid #fcc;
    border-radius: 8px;
    padding: 16px;
    color: #c33;
    text-align: center;
    margin: 20px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .jyotisham-horoscope-container {
        padding: 16px;
    }

    .jyotisham-horoscope-header {
        padding: 24px 16px;
    }

    .jyotisham-horoscope-header h1 {
        font-size: 2.25rem;
    }

    .jyotisham-horoscope-zodiac-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
        margin-top: 0;
    }
    
    .jyotisham-horoscope-language-selector {
        margin-bottom: 32px;
        min-height: 50px;
    }
    
    .jyotisham-horoscope-lang-dropdown {
        min-height: 44px;
        padding: 12px 16px;
        padding-right: 40px;
    }

    .jyotisham-horoscope-section {
        margin: 24px auto 0;
        border-radius: 12px;
    }

    .jyotisham-horoscope-content-header {
        padding: 24px 20px 0;
    }
    
    .jyotisham-horoscope-content-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .jyotisham-horoscope-content {
        padding: 20px;
    }

    .jyotisham-horoscope-tab-btn {
        padding: 12px 16px;
        font-size: 13px;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .jyotisham-horoscope-zodiac-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 16px;
    }

    .jyotisham-horoscope-category-item {
        flex-direction: column;
    }

    .jyotisham-horoscope-category-percentage {
        min-width: 100%;
        flex-direction: row;
        justify-content: space-between;
        padding: 16px;
    }

    .jyotisham-horoscope-lucky-info {
        flex-direction: column;
        gap: 16px;
    }

    .jyotisham-horoscope-content-header {
        padding: 28px 28px 0;
    }

    .jyotisham-horoscope-content {
        padding: 28px;
    }
}
