/**
 * Weton Calendar Plugin Styles
 * Version: 1.5.3
 * SEO-friendly, minimal colors, readable fonts, Maghrib notice with link
 * Added: Week and Month view table styles
 * Updated: Professions display in square boxes like traits
 * Added: Navigation CTAs (yesterday, today, tomorrow links)
 */

/* Main Container */
.weton-calendar {
    max-width: 800px;
    margin: 0 auto;
    font-family: inherit;
    line-height: 1.7;
    color: inherit;
}

/* Header - Weton Title & Date */
.weton-header {
    text-align: center;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 2px solid #ddd;
}

.weton-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 20px;
    color: inherit;
}

.weton-main-info {
    margin: 20px 0;
}

.weton-display,
.weton-neptu {
    font-size: 18px;
    margin: 10px 0;
}

.weton-label,
.neptu-label {
    color: #666;
    font-weight: normal;
}

.weton-name {
    color: #2563eb;
    font-size: 22px;
}

.neptu-value {
    font-weight: 700;
    color: #060;
}

/* Maghrib Notice Box */
.weton-maghrib-notice {
    background: #fff8e5;
    border: 2px solid #cc8800;
    border-radius: 6px;
    padding: 18px;
    margin: 25px auto 0;
    max-width: 700px;
}

.maghrib-info {
    font-size: 15px;
    line-height: 1.7;
    color: #333;
    margin: 0;
    text-align: left;
}

.maghrib-info strong {
    color: #cc8800;
}

.check-tomorrow-link {
    display: inline-block;
    margin-top: 12px;
    margin-right: 10px;
    padding: 8px 16px;
    background: #cc8800;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.check-tomorrow-link:hover {
    background: #b37700;
    color: #fff;
}

.check-yesterday-link {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 16px;
    background: #666;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.check-yesterday-link:hover {
    background: #555;
    color: #fff;
}

.check-today-link {
    display: inline-block;
    padding: 8px 16px;
    background: #2563eb;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.check-today-link:hover {
    background: #1e40af;
    color: #fff;
}

/* Content Area */
.weton-content {
    margin-top: 35px;
}

/* Section Headings - SEO Optimized */
.section-heading {
    font-size: 24px;
    font-weight: 600;
    margin: 35px 0 18px;
    color: inherit;
    border-bottom: 2px solid #ddd;
    padding-bottom: 10px;
}

.subsection-heading {
    font-size: 20px;
    font-weight: 600;
    margin: 28px 0 14px;
    color: inherit;
}

/* Sial Status Section */
.weton-sial-section {
    margin-bottom: 35px;
}

.weton-sial-info {
    background: #f8f8f8;
    padding: 18px;
    border-radius: 4px;
    border-left: 3px solid #999;
    margin: 18px 0;
}

.sial-label {
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 16px;
}

.sial-value {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 4px;
    font-weight: 600;
    margin-left: 10px;
    font-size: 15px;
}

.sial-value.sial {
    background: #ffd4d4;
    color: #c00;
}

.sial-value.aman {
    background: #d4ffd4;
    color: #060;
}

.sial-reason-label {
    font-weight: 600;
    margin-top: 14px;
    margin-bottom: 6px;
    font-size: 16px;
}

.sial-reason {
    background: #fff8e5;
    padding: 14px;
    border-radius: 4px;
    border-left: 3px solid #cc8800;
    color: inherit;
    font-size: 15px;
}

/* Wes Section */
.weton-wes-section {
    margin-top: 28px;
}

.wes-heading {
    color: inherit;
}

.wes-intro {
    font-size: 15px;
    color: #666;
    margin-bottom: 18px;
}

.wes-list {
    margin: 0;
    padding: 0;
}

.wes-item {
    background: #f8f8f8;
    padding: 14px;
    margin-bottom: 12px;
    border-radius: 4px;
    border-left: 3px solid #999;
}

.wes-item.wes-gede {
    background: #ffe5e5;
    border-left-color: #c00;
}

.wes-term {
    font-weight: 600;
    color: inherit;
    margin-bottom: 6px;
    font-size: 16px;
}

.wes-definition {
    margin: 0;
    color: inherit;
    font-size: 15px;
}

.wes-definition small {
    display: block;
    font-size: 14px;
    color: #666;
    margin-top: 6px;
}

/* Characteristics Section */
.weton-characteristics {
    margin-top: 35px;
}

/* Tulang Wangi Section */
.tulang-wangi-section {
    background: #f8f8f8;
    padding: 18px;
    border-radius: 4px;
    border-left: 3px solid #999;
    margin-bottom: 28px;
}

.tulang-wangi-status {
    margin-bottom: 14px;
}

.status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 15px;
}

.status-badge.aman {
    background: #d4ffd4;
    color: #060;
}

.status-badge.neutral {
    background: #e8e8e8;
    color: #666;
}

.description {
    font-size: 15px;
    line-height: 1.6;
    color: inherit;
    margin: 0;
}

/* Traits Section */
.traits-section {
    margin-bottom: 28px;
}

.traits-list {
    list-style: none;
    padding: 0;
    margin: 18px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.trait-item {
    background: #e8e8e8;
    color: inherit;
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
}

.element-display {
    font-size: 17px;
    margin: 16px 0;
}

.element-value {
    font-weight: 700;
    font-size: 18px;
    color: #2563eb;
}

/* Lucky Section */
.lucky-section {
    margin-bottom: 28px;
}

.lucky-attributes {
    background: #f8f8f8;
    padding: 18px;
    border-radius: 4px;
    border-left: 3px solid #999;
}

.lucky-attributes dt {
    font-weight: 600;
    color: inherit;
    margin-top: 10px;
    font-size: 16px;
}

.lucky-attributes dt:first-child {
    margin-top: 0;
}

.lucky-attributes dd {
    margin: 6px 0 10px 0;
    font-weight: 600;
    color: inherit;
    font-size: 15px;
}

/* Profession Section */
.profession-section {
    margin-bottom: 28px;
}

.profession-list {
    list-style: none;
    padding: 0;
    margin: 18px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.profession-item {
    background: #e8e8e8;
    color: inherit;
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
}

.profession-item::before {
    content: none;
}

/* Compatibility Section */
.compatibility-section {
    margin-bottom: 28px;
}

.compatibility-text {
    background: #f8f8f8;
    padding: 18px;
    border-radius: 4px;
    border-left: 3px solid #999;
    line-height: 1.7;
    color: inherit;
    font-size: 15px;
}

/* Error Message */
.weton-calendar-error {
    background: #ffe5e5;
    border-left: 3px solid #c00;
    padding: 18px;
    border-radius: 4px;
    margin: 20px 0;
}

.weton-calendar-error p {
    margin: 8px 0;
    color: #c00;
    font-size: 15px;
}

.error-details {
    font-size: 14px;
    color: #c00;
}

/* Responsive Design */
@media (max-width: 768px) {
    .weton-title {
        font-size: 28px;
    }

    .section-heading {
        font-size: 22px;
    }

    .subsection-heading {
        font-size: 18px;
    }

    .traits-list {
        gap: 8px;
    }
}

/* Print Styles */
@media print {
    .weton-calendar {
        max-width: 100%;
    }

    .weton-header {
        border-bottom: 1px solid #000;
    }

    .section-heading {
        border-bottom: 1px solid #000;
    }

    .wes-item,
    .tulang-wangi-section,
    .profession-item,
    .compatibility-text {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* Week and Month View Styles */
.weton-week-view,
.weton-month-view {
    max-width: 900px;
}

.week-range {
    font-size: 16px;
    color: #666;
    margin-top: 10px;
}

.weton-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 15px;
    background: #fff;
    border: 1px solid #ddd;
}

.weton-table thead tr {
    background: #f8f8f8;
    text-align: left;
    font-weight: 600;
}

.weton-table th,
.weton-table td {
    padding: 14px 16px;
    border: 1px solid #ddd;
}

.weton-table tbody tr {
    border-bottom: 1px solid #ddd;
    transition: background 0.2s ease;
}

.weton-table tbody tr:hover {
    background: #f8f8f8;
}

.weton-table tbody tr:last-child {
    border-bottom: 2px solid #ddd;
}

.weton-table tbody tr.today-row {
    background: #fff8e5;
    font-weight: 600;
}

.weton-table tbody tr.today-row:hover {
    background: #fff3d4;
}

/* Responsive table for mobile */
@media (max-width: 768px) {
    .weton-table {
        font-size: 14px;
    }

    .weton-table th,
    .weton-table td {
        padding: 10px 8px;
    }

    .weton-week-view,
    .weton-month-view {
        max-width: 100%;
    }
}
