/* ROC Birthday Calculator - Calculator-Specific Styles */
/* Global classes (.glass-card, .form-input, .btn-custom, etc.) are defined in layout.css */
/* DO NOT redefine global classes here! */

/* Year Format Toggle */
.year-format-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.year-format-toggle label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

/* Result Display */
.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.3s;
}

.result-item:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateX(5px);
}

.result-label {
    font-weight: 600;
    color: #4a5568;
}

.result-value {
    font-weight: 700;
    font-size: 1.2rem;
    color: #667eea;
    font-family: 'Roboto Mono', monospace;
}

/* Zodiac Display */
.zodiac-card {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
    margin-bottom: 15px;
}

.zodiac-icon {
    font-size: 4rem;
    margin-bottom: 10px;
}

.zodiac-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.zodiac-element {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Sign (Western Zodiac) Display */
.sign-card {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 12px;
    color: white;
    margin-bottom: 15px;
}

.sign-symbol {
    font-size: 4rem;
    margin-bottom: 10px;
}

.sign-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.sign-dates {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Category Headers */
.category-header {
    font-size: 1.1rem;
    font-weight: 700;
    color: #667eea;
    margin-top: 20px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #667eea;
}

.category-header:first-child {
    margin-top: 0;
}

/* Historical Events List */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 15px;
    margin-bottom: 20px;
}

.event-item {
    padding: 15px;
    background: rgba(102, 126, 234, 0.05);
    border-left: 4px solid #667eea;
    border-radius: 8px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.event-item:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.event-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.event-title {
    font-weight: 700;
    color: #2d3748;
    font-size: 0.95rem;
}

.event-date {
    font-size: 0.85rem;
    color: #667eea;
    font-weight: 600;
    font-family: 'Roboto Mono', monospace;
    background: rgba(102, 126, 234, 0.1);
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
    align-self: flex-start;
}

.event-description {
    font-size: 0.85rem;
    color: #4a5568;
    line-height: 1.6;
    flex: 1;
}

.event-category {
    display: inline-block;
    padding: 3px 10px;
    background: #667eea;
    color: white;
    border-radius: 12px;
    font-size: 0.75rem;
    margin-top: 8px;
    align-self: flex-start;
}

.event-importance {
    color: #f59e0b;
    margin-left: 5px;
}

/* Famous People List */
.people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 15px;
    margin-bottom: 20px;
}

.person-item {
    padding: 15px;
    background: rgba(245, 158, 11, 0.05);
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.person-item:hover {
    background: rgba(245, 158, 11, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
}

.person-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}

.person-name {
    font-weight: 700;
    color: #2d3748;
    font-size: 0.95rem;
}

.person-name-en {
    font-size: 0.8rem;
    color: #718096;
    display: block;
    margin-top: 2px;
}

.person-dates {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.person-birthday {
    font-size: 0.8rem;
    color: #f59e0b;
    font-weight: 600;
    font-family: 'Roboto Mono', monospace;
    background: rgba(245, 158, 11, 0.1);
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
}

.person-status {
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 10px;
    white-space: nowrap;
}

.person-status.alive {
    background: #48bb78;
    color: white;
}

.person-status.deceased {
    background: #cbd5e0;
    color: #4a5568;
}

.person-achievement {
    font-size: 0.85rem;
    color: #4a5568;
    line-height: 1.6;
    flex: 1;
}

.person-category {
    display: inline-block;
    padding: 3px 10px;
    background: #f59e0b;
    color: white;
    border-radius: 12px;
    font-size: 0.75rem;
    margin-top: 8px;
    align-self: flex-start;
}

/* Saved Birthdays */
.saved-list {
    max-height: 300px;
    overflow-y: auto;
}

.saved-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    margin-bottom: 8px;
}

.saved-info {
    flex: 1;
}

.saved-name-display {
    font-weight: 600;
    color: #2d3748;
}

.saved-date-display {
    font-size: 0.85rem;
    color: #718096;
}

.saved-actions {
    display: flex;
    gap: 5px;
}

.saved-actions button {
    padding: 5px 10px;
    font-size: 0.8rem;
}

/* Show More/Less Button */
.show-more-btn {
    width: 100%;
    margin-top: 10px;
    padding: 8px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid #667eea;
    color: #667eea;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.show-more-btn:hover {
    background: #667eea;
    color: white;
}

/* Quick Fill Button */
.quick-fill-btn {
    margin-left: 10px;
    padding: 5px 15px;
    background: #48bb78;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
}

.quick-fill-btn:hover {
    background: #38a169;
    transform: translateY(-2px);
}

/* Search Button */
.btn-search {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-search:hover {
    background: linear-gradient(135deg, #5568d3 0%, #653a8b 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
    color: white;
    text-decoration: none;
}

.btn-search i {
    font-size: 0.8rem;
}

/* Event Footer (contains category badges and search button) */
.event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    gap: 10px;
    flex-wrap: wrap;
}

.event-footer > div {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Person Footer (contains category badges and search button) */
.person-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    gap: 10px;
    flex-wrap: wrap;
}

.person-footer > div {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Region Filter Tabs */
.region-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.region-tab {
    padding: 8px 16px;
    background: rgba(102, 126, 234, 0.1);
    border: 2px solid #667eea;
    color: #667eea;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.region-tab:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.region-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Holidays List */
.holidays-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 15px;
    margin-bottom: 20px;
}

.holiday-item {
    padding: 15px;
    background: rgba(72, 187, 120, 0.05);
    border-left: 4px solid #48bb78;
    border-radius: 8px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.holiday-item:hover {
    background: rgba(72, 187, 120, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.15);
}

.holiday-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.holiday-title {
    font-weight: 700;
    color: #2d3748;
    font-size: 0.95rem;
}

.holiday-date {
    font-size: 0.8rem;
    color: #48bb78;
    font-weight: 600;
    font-family: 'Roboto Mono', monospace;
    background: rgba(72, 187, 120, 0.1);
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
    margin-top: 4px;
}

.holiday-description {
    font-size: 0.85rem;
    color: #4a5568;
    line-height: 1.6;
    flex: 1;
}

.holiday-category {
    display: inline-block;
    padding: 3px 10px;
    background: #48bb78;
    color: white;
    border-radius: 12px;
    font-size: 0.75rem;
    margin-top: 8px;
    align-self: flex-start;
}

.holiday-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    gap: 10px;
    flex-wrap: wrap;
}

.holiday-footer > div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.public-holiday-badge {
    display: inline-block;
    padding: 4px 10px;
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    color: white;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.region-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
}

.region-badge {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border: 1px solid #667eea;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .result-value {
        font-size: 1rem;
    }

    .zodiac-icon,
    .sign-symbol {
        font-size: 3rem;
    }

    .zodiac-name,
    .sign-name {
        font-size: 1.2rem;
    }

    .events-grid,
    .people-grid,
    .holidays-grid {
        grid-template-columns: 1fr;
    }

    .event-header,
    .person-header,
    .holiday-header {
        gap: 6px;
    }

    .event-date,
    .person-birthday,
    .holiday-date {
        font-size: 0.75rem;
        padding: 3px 8px;
    }

    .event-title,
    .person-name,
    .holiday-title {
        font-size: 0.9rem;
    }

    .event-description,
    .person-achievement,
    .holiday-description {
        font-size: 0.8rem;
    }

    .category-header {
        font-size: 1rem;
    }

    .btn-search {
        font-size: 0.7rem;
        padding: 4px 10px;
    }

    .event-footer,
    .person-footer,
    .holiday-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .region-tabs {
        gap: 6px;
    }

    .region-tab {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
}
