/**
 * ConvMaster - World Holidays Calendar Styles
 * 
 * @package    ConvMaster
 * @version    1.0.0
 */

/* =====================================================
   TOOL PAGE LAYOUT
   ===================================================== */
.tool-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.tool-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tool-header__icon {
    font-size: 2.5rem;
}

.tool-header__icon .icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    background: var(--bg-tertiary);
    font-weight: 700;
    font-size: 2rem;
}

.tool-header__icon .icon--green {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.tool-header__text h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    color: var(--text-primary);
}

.tool-header__text p {
    margin: 0;
    color: var(--text-secondary);
}

/* =====================================================
   CURRENT DATE BANNER
   ===================================================== */
.current-date-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(16, 185, 129, 0.1));
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
}

.current-date-banner__icon {
    font-size: 1.25rem;
}

.current-date-banner__text {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* =====================================================
   HOLIDAYS WIDGET
   ===================================================== */
.holidays-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* =====================================================
   TOOLBAR
   ===================================================== */
.widget-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-tertiary);
    flex-wrap: wrap;
    gap: 1rem;
}

.widget-toolbar__left,
.widget-toolbar__right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.widget-toolbar__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Toolbar Buttons */
.btn-toolbar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-toolbar:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
    border-color: var(--text-tertiary);
}

.btn-toolbar__icon {
    font-size: 1rem;
}

/* Popup Button */
.btn-popup {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-popup:hover {
    background: rgba(34, 197, 94, 0.2);
    border-color: #22c55e;
}

.btn-popup__icon {
    font-size: 1rem;
}

/* =====================================================
   SELECTION SECTION
   ===================================================== */
.selection-section {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.selection-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

.selection-group {
    flex: 1;
    min-width: 180px;
}

.selection-group--button {
    flex: 0 0 auto;
    min-width: auto;
}

.selection-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.selection-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    cursor: pointer;
}

.selection-group select:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

/* Year Input Wrapper */
.year-input-wrapper {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-secondary);
    transition: all 0.2s ease;
}

.year-input-wrapper:focus-within {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.year-input-wrapper input {
    flex: 1;
    min-width: 80px;
    padding: 0.875rem 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    color: var(--text-primary);
    background: transparent;
    border: none;
}

.year-input-wrapper input:focus {
    outline: none;
}

/* Hide number input spinners */
.year-input-wrapper input[type="number"] {
    -moz-appearance: textfield;
}

.year-input-wrapper input[type="number"]::-webkit-outer-spin-button,
.year-input-wrapper input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.year-input-wrapper input::placeholder {
    color: var(--text-tertiary);
    opacity: 0.6;
}

.year-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    padding: 0;
    background: var(--bg-tertiary);
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    color: var(--text-secondary);
}

.year-btn:hover {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.year-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2.5;
    fill: none;
}

/* Today Button */
.btn-today {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-today:hover {
    background: rgba(34, 197, 94, 0.2);
    border-color: #22c55e;
}

/* =====================================================
   MESSAGE CONTAINER
   ===================================================== */
.widget-message {
    margin: 1rem 1.5rem;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.widget-message--error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.widget-message--success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.widget-message--info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #3b82f6;
}

/* =====================================================
   STATS SECTION - ULTRA COMPACT BADGES
   ===================================================== */
.stats-section {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.stat-card {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.8rem;
}

.stat-card--highlight {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.4);
}

.stat-card--blue {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

.stat-card--purple {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
}

.stat-card--orange {
    background: rgba(249, 115, 22, 0.1);
    border-color: rgba(249, 115, 22, 0.3);
}

.stat-card__icon {
    font-size: 0.75rem;
    line-height: 1;
}

.stat-card__value {
    font-weight: 700;
    font-size: 0.8rem;
    line-height: 1;
}

.stat-card--highlight .stat-card__value { color: #22c55e; }
.stat-card--blue .stat-card__value { color: #3b82f6; }
.stat-card--purple .stat-card__value { color: #8b5cf6; }
.stat-card--orange .stat-card__value { color: #f97316; }

.stat-card__label {
    font-size: 0.6rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* =====================================================
   HOLIDAYS LIST
   ===================================================== */
.holidays-list-section {
    padding: 1rem 1.25rem;
}

.holidays-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.holidays-list-header h2 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.holidays-list-filters {
    display: flex;
    gap: 0.375rem;
}

.filter-btn {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    color: var(--text-primary);
    border-color: var(--text-tertiary);
}

.filter-btn.active {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
}

.holidays-list {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

/* Holiday Item - Compact */
.holiday-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.15s ease;
}

.holiday-item:hover {
    border-color: rgba(34, 197, 94, 0.3);
    background: rgba(34, 197, 94, 0.03);
}

.holiday-item--passed {
    opacity: 0.5;
}

.holiday-item--today {
    background: rgba(34, 197, 94, 0.1);
    border-color: #22c55e;
}

.holiday-item--today .holiday-item__date {
    color: #22c55e;
}

.holiday-item__icon {
    font-size: 1.1rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.holiday-item--today .holiday-item__icon {
    background: rgba(34, 197, 94, 0.2);
}

.holiday-item__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 45px;
    padding: 0.25rem 0.375rem;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    text-align: center;
}

.holiday-item__day {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.holiday-item__month {
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-top: 0.125rem;
}

.holiday-item__weekday {
    font-size: 0.55rem;
    color: var(--text-tertiary);
}

.holiday-item__info {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.holiday-item__name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.holiday-item__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.375rem;
    font-size: 0.6rem;
    font-weight: 600;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.holiday-item__badge--fixed {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.holiday-item__badge--movable {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
}

.holiday-item__type {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    color: var(--text-tertiary);
}

.holiday-item__type-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.holiday-item__type-dot--fixed {
    background: #3b82f6;
}

.holiday-item__type-dot--movable {
    background: #f59e0b;
}

.holiday-item__countdown {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-tertiary);
    white-space: nowrap;
    text-align: right;
    min-width: 70px;
}

.holiday-item__countdown--today {
    color: #22c55e;
    font-weight: 600;
}

.holiday-item__countdown--soon {
    color: #f97316;
}

.holiday-item__status {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-tertiary);
    white-space: nowrap;
}

.holiday-item__status--upcoming {
    color: #22c55e;
}

.holiday-item__status--today {
    color: #22c55e;
    font-weight: 700;
}

.holiday-item__status--passed {
    color: var(--text-tertiary);
}

/* Empty State */
.holidays-list-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    color: var(--text-tertiary);
    text-align: center;
}

.holidays-list-empty__icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.holidays-list-empty__text {
    font-size: 1rem;
}

/* =====================================================
   LEGEND
   ===================================================== */
.legend-section {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 1rem 1.5rem;
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.legend-dot--fixed {
    background: #3b82f6;
}

.legend-dot--movable {
    background: #f59e0b;
}

.legend-dot--today {
    background: #22c55e;
}

/* =====================================================
   PRIVACY NOTICE
   ===================================================== */
.privacy-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-tertiary);
    text-align: center;
}

/* =====================================================
   SEO CONTENT
   ===================================================== */
.tool-seo-content {
    margin-top: 3rem;
}

.tool-section {
    margin-bottom: 2.5rem;
}

.tool-section h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.tool-section > p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.feature-card {
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-align: center;
}

.feature-card__icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    display: block;
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
}

.feature-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* Steps Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.step-card {
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative;
}

.step-card__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 0.75rem;
}

.step-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
}

.step-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* FAQ List */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq-item summary {
    padding: 1rem 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.25rem;
    color: var(--text-tertiary);
    transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item summary:hover {
    background: var(--bg-secondary);
}

.faq-item p {
    padding: 0 1.25rem 1rem;
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* =====================================================
   HIDDEN STATE
   ===================================================== */
[hidden] {
    display: none !important;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 900px) {
    .stats-section {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .tool-page {
        padding: 1rem;
    }
    
    .tool-header {
        flex-direction: column;
        text-align: center;
    }
    
    .tool-header__text h1 {
        font-size: 1.5rem;
    }
    
    .widget-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .widget-toolbar__left,
    .widget-toolbar__right {
        justify-content: center;
    }
    
    .selection-row {
        flex-direction: column;
    }
    
    .selection-group {
        min-width: 100%;
    }
    
    .selection-group--button {
        min-width: 100%;
    }
    
    .btn-today {
        width: 100%;
        justify-content: center;
    }
    
    .stats-section {
        grid-template-columns: repeat(2, 1fr);
        padding: 1rem;
    }
    
    .holidays-list-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .holidays-list-filters {
        justify-content: center;
    }
    
    .holiday-item {
        flex-wrap: wrap;
        padding: 0.875rem;
    }
    
    .holiday-item__status {
        width: 100%;
        text-align: right;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px solid var(--border-color);
    }
    
    .features-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .legend-section {
        gap: 1rem;
    }
    
    .btn-popup__text,
    .btn-toolbar__text {
        display: none;
    }
}

@media (max-width: 480px) {
    .current-date-banner {
        padding: 0.75rem 1rem;
        flex-wrap: wrap;
        text-align: center;
    }
    
    .current-date-banner__text {
        font-size: 0.95rem;
    }
    
    .stats-section {
        gap: 0.375rem;
        padding: 0.5rem 0.75rem;
    }
    
    .stat-card__label {
        display: none;
    }
    
    .holiday-item__date {
        min-width: 50px;
    }
    
    .holiday-item__day {
        font-size: 1.25rem;
    }
}

/* =====================================================
   DARK THEME SPECIFIC
   ===================================================== */
[data-theme="dark"] .holiday-item:hover {
    background: rgba(34, 197, 94, 0.08);
}

[data-theme="dark"] .holiday-item--today {
    background: rgba(34, 197, 94, 0.15);
}

[data-theme="dark"] .holiday-item__date {
    background: var(--bg-tertiary);
}

/* =====================================================
   PRINT STYLES
   ===================================================== */
@media print {
    .tool-page {
        max-width: 100%;
        padding: 0;
    }
    
    .widget-toolbar,
    .selection-section,
    .legend-section,
    .privacy-notice,
    .tool-seo-content,
    .current-date-banner,
    .holidays-list-filters,
    .btn-toolbar,
    .btn-popup {
        display: none !important;
    }
    
    .holidays-widget {
        border: none;
        box-shadow: none;
    }
    
    .holidays-list {
        max-height: none;
        overflow: visible;
    }
    
    .holiday-item {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .stats-section {
        border: 1px solid #ddd;
        margin-bottom: 1rem;
    }
}

/* =====================================================
   COUNTRY SELECT WITH FLAGS
   ===================================================== */
.country-select-wrapper {
    position: relative;
}

.country-select-wrapper select {
    padding-left: 2.5rem;
}

.country-flag-display {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 15px;
    border-radius: 2px;
    overflow: hidden;
    pointer-events: none;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
}

.country-flag-display img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Custom dropdown for country select */
.country-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 350px;
    overflow-y: auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    z-index: 1000;
    display: none;
}

.country-dropdown.active {
    display: block;
}

.country-dropdown__group {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.country-dropdown__group:last-child {
    border-bottom: none;
}

.country-dropdown__label {
    padding: 0.5rem 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
    background: var(--bg-secondary);
}

.country-dropdown__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1rem;
    cursor: pointer;
    transition: background 0.15s ease;
}

.country-dropdown__item:hover {
    background: rgba(34, 197, 94, 0.1);
}

.country-dropdown__item.selected {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.country-dropdown__flag {
    width: 24px;
    height: 18px;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.country-dropdown__flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.country-dropdown__name {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.country-dropdown__count {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    background: var(--bg-secondary);
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
}

/* Custom select trigger */
.custom-country-select {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 200px;
}

.custom-country-select:hover {
    border-color: var(--text-tertiary);
}

.custom-country-select:focus,
.custom-country-select.active {
    border-color: #22c55e;
    outline: none;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

.custom-country-select__flag {
    width: 24px;
    height: 18px;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.custom-country-select__flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.custom-country-select__text {
    flex: 1;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.custom-country-select__arrow {
    color: var(--text-tertiary);
    transition: transform 0.2s ease;
}

.custom-country-select.active .custom-country-select__arrow {
    transform: rotate(180deg);
}

/* =====================================================
   COMPARISON SECTION
   ===================================================== */
.comparison-section {
    padding: 1rem 1.25rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.comparison-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.comparison-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.comparison-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comparison-toggle label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #22c55e;
    border-color: #22c55e;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

.comparison-content {
    display: none;
}

.comparison-content.active {
    display: block;
}

.comparison-selectors {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.compare-select {
    padding: 0.5rem 2.25rem 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-family: inherit;
    color: var(--text-primary);
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.625rem center;
    min-width: 150px;
}

[data-theme="dark"] .compare-select {
    background-color: #1e293b;
    color: #f1f5f9;
}

.compare-select:hover {
    border-color: #22c55e;
}

.compare-select:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.comparison-vs {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-tertiary);
}

.comparison-results {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.comparison-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
}

.comparison-card__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.comparison-card__flag {
    width: 32px;
    height: 24px;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
}

.comparison-card__flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comparison-card__name {
    font-weight: 600;
    color: var(--text-primary);
}

.comparison-card__stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.comparison-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.comparison-stat__label {
    color: var(--text-secondary);
}

.comparison-stat__value {
    font-weight: 600;
    color: var(--text-primary);
}

.comparison-stat__value--better {
    color: #22c55e;
}

.comparison-stat__value--worse {
    color: #ef4444;
}

.comparison-diff {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    text-align: center;
}

.comparison-diff__value {
    font-size: 1.5rem;
    font-weight: 700;
}

.comparison-diff__value--positive {
    color: #22c55e;
}

.comparison-diff__value--negative {
    color: #ef4444;
}

.comparison-diff__label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* =====================================================
   HOLIDAY ITEM ENHANCED
   ===================================================== */
.holiday-item__icon {
    font-size: 1.25rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.holiday-item--today .holiday-item__icon {
    background: rgba(34, 197, 94, 0.2);
}

.holiday-item__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.holiday-item__badge--fixed {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.holiday-item__badge--movable {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.holiday-item__countdown {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.holiday-item__countdown--today {
    color: #22c55e;
    font-weight: 600;
}

.holiday-item__countdown--soon {
    color: #f97316;
    font-weight: 500;
}

/* =====================================================
   RESPONSIVE COMPARISON
   ===================================================== */
@media (max-width: 768px) {
    .comparison-results {
        grid-template-columns: 1fr;
    }
    
    .comparison-selectors {
        flex-direction: column;
        align-items: stretch;
    }
    
    .comparison-vs {
        text-align: center;
    }
    
    .custom-country-select {
        width: 100%;
    }
}

