/* ======================================
   China Holiday Check Tool - Styles
   ====================================== */

/* Tool Hero */
.tool-hero {
    padding: 140px 0 60px;
    text-align: center;
}

.tool-hero-content {
    max-width: 600px;
    margin: 0 auto;
}

.tool-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: white;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-gray);
    box-shadow: var(--shadow-card);
    margin-bottom: var(--spacing-md);
}

.tool-badge-icon {
    font-size: 1.2rem;
}

.tool-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.tool-hero-desc {
    font-size: 1.05rem;
    color: var(--text-gray);
    line-height: 1.7;
}

/* Tool Main Layout */
.tool-main {
    padding: var(--spacing-lg) 0 var(--spacing-2xl);
}

.tool-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

/* Input Card */
.tool-input-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-card);
}

.tool-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-lg);
}

.date-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.date-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.date-field label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-gray);
}

.date-input {
    padding: 14px 16px;
    border: 2px solid var(--bg-main);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-dark);
    transition: all var(--transition-fast);
}

.date-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(255, 139, 90, 0.15);
}

.btn-check {
    width: 100%;
    padding: 16px;
    font-size: 1rem;
    font-weight: 600;
}

/* Result Card */
.tool-result-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-card);
    min-height: 400px;
}

.result-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    color: var(--text-light);
}

.placeholder-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    opacity: 0.5;
}

/* Score Ring */
.score-section {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.score-ring {
    width: 140px;
    height: 140px;
    margin: 0 auto var(--spacing-sm);
    position: relative;
}

.score-ring svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.score-bg {
    fill: none;
    stroke: var(--bg-main);
    stroke-width: 8;
}

.score-progress {
    fill: none;
    stroke: var(--color-primary);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease-out;
}

.score-ring.excellent .score-progress {
    stroke: #22C55E;
}

.score-ring.good .score-progress {
    stroke: #84CC16;
}

.score-ring.fair .score-progress {
    stroke: #F59E0B;
}

.score-ring.poor .score-progress {
    stroke: #F97316;
}

.score-ring.bad .score-progress {
    stroke: #EF4444;
}

.score-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.score-label {
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* Rating Badge */
.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
}

.rating-badge.excellent {
    background: #DCFCE7;
    color: #16A34A;
}

.rating-badge.good {
    background: #ECFCCB;
    color: #65A30D;
}

.rating-badge.fair {
    background: #FEF3C7;
    color: #D97706;
}

.rating-badge.poor {
    background: #FFEDD5;
    color: #EA580C;
}

.rating-badge.bad {
    background: #FEE2E2;
    color: #DC2626;
}

.rating-icon {
    font-size: 1.1rem;
}

/* Conflicts Section */
.conflicts-section {
    margin-bottom: var(--spacing-lg);
}

.conflicts-title,
.advice-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.conflicts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.conflict-item {
    background: #FEF2F2;
    border-left: 4px solid #EF4444;
    padding: 14px 16px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.conflict-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.conflict-name {
    font-weight: 600;
    color: var(--text-dark);
}

.conflict-impact {
    font-weight: 600;
    color: #DC2626;
    font-size: 0.9rem;
}

.conflict-dates {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 8px;
}

.conflict-desc {
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.5;
}

.no-conflicts {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px;
    background: #DCFCE7;
    border-radius: var(--radius-sm);
    color: #16A34A;
    font-weight: 500;
}

.no-conflicts-icon {
    font-size: 1.2rem;
}

.conflicts-section.no-conflict .conflicts-title {
    display: none;
}

/* Advice Section */
.advice-section {
    background: var(--bg-main);
    padding: 16px;
    border-radius: var(--radius-md);
}

.advice-text {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.7;
}

/* Holiday Reference */
.holiday-reference {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-card);
}

.reference-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.reference-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
}

.year-section {
    background: var(--bg-main);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
}

.year-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
    padding-bottom: var(--spacing-xs);
    border-bottom: 2px solid white;
}

.holiday-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.holiday-item {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    background: white;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

.holiday-item.high {
    border-left: 3px solid #EF4444;
}

.holiday-item.medium {
    border-left: 3px solid #F59E0B;
}

.holiday-item.low {
    border-left: 3px solid #22C55E;
}

.holiday-name {
    font-weight: 500;
    color: var(--text-dark);
}

.holiday-dates {
    color: var(--text-gray);
    font-size: 0.8rem;
}

.holiday-impact {
    font-weight: 600;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    background: var(--bg-main);
    color: var(--text-gray);
}

.holiday-item.high .holiday-impact {
    background: #FEE2E2;
    color: #DC2626;
}

.holiday-item.medium .holiday-impact {
    background: #FEF3C7;
    color: #D97706;
}

/* Responsive */
@media (max-width: 768px) {
    .tool-hero {
        padding: 120px 0 40px;
    }

    .tool-hero-title {
        font-size: 1.75rem;
    }

    .tool-layout {
        grid-template-columns: 1fr;
    }

    .date-inputs {
        grid-template-columns: 1fr;
    }

    .reference-grid {
        grid-template-columns: 1fr;
    }

    .tool-result-card {
        min-height: auto;
    }
}