/**
 * Famous Birthdays Plugin Styles
 * Designed to work harmoniously with any WordPress theme
 */

/* Container */
.famous-birthdays-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Page Header */
.fb-page-header {
    margin-bottom: 40px;
    text-align: center;
}

.fb-breadcrumbs {
    font-size: 14px;
    margin-bottom: 15px;
    color: #666;
}

.fb-breadcrumbs a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.fb-breadcrumbs a:hover {
    color: #0052a3;
    text-decoration: underline;
}

.fb-breadcrumbs .separator {
    margin: 0 8px;
    color: #ccc;
}

.fb-breadcrumbs .current {
    color: #333;
    font-weight: 500;
}

.fb-main-title {
    font-size: 2.5em;
    margin: 0 0 15px 0;
    color: #1a1a1a;
    font-weight: 700;
    line-height: 1.2;
}

.fb-header-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.fb-count,
.fb-zodiac {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    background: #f0f7ff;
    border-radius: 20px;
    font-size: 14px;
    color: #0066cc;
    font-weight: 500;
}

.fb-zodiac .zodiac-icon {
    font-size: 18px;
}

.fb-intro-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 16px;
    color: #555;
}

/* Search Box */
.fb-search-box {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 30px auto;
}

.fb-search-input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.fb-search-input:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.fb-search-btn {
    padding: 12px 30px;
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fb-search-btn:hover {
    background: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

/* Featured Section */
.fb-featured-section {
    margin: 50px 0;
}

.fb-featured-section h2 {
    font-size: 1.8em;
    margin-bottom: 25px;
    color: #1a1a1a;
    font-weight: 600;
}

.fb-featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.fb-featured-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.fb-featured-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.fb-person-name {
    font-size: 1.4em;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.fb-person-name a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.fb-person-name a:hover {
    color: #0066cc;
}

.fb-birth-year {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.fb-profession {
    margin: 10px 0;
    font-size: 15px;
    color: #0066cc;
}

.fb-achievement {
    margin: 12px 0;
    padding: 12px;
    background: #f8f9fa;
    border-left: 3px solid #0066cc;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
}

.fb-nationality {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 10px 0;
    padding: 6px 12px;
    background: #f0f7ff;
    border-radius: 15px;
    font-size: 13px;
    color: #555;
}

.fb-flag {
    font-size: 16px;
}

.fb-card-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.fb-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.fb-btn-primary {
    background: #0066cc;
    color: white;
}

.fb-btn-primary:hover {
    background: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.fb-btn-secondary {
    background: white;
    color: #0066cc;
    border: 2px solid #0066cc;
}

.fb-btn-secondary:hover {
    background: #f0f7ff;
    transform: translateY(-2px);
}

/* All Birthdays List */
.fb-all-birthdays-section {
    margin: 50px 0;
}

.fb-all-birthdays-section h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #1a1a1a;
    font-weight: 600;
}

.fb-sort-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.fb-sort-controls label {
    font-weight: 500;
    color: #555;
}

.fb-sort-dropdown {
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.fb-sort-dropdown:focus {
    outline: none;
    border-color: #0066cc;
}

.fb-people-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.fb-person-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.fb-person-item:hover {
    border-color: #0066cc;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.1);
}

.fb-person-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f7ff;
    color: #0066cc;
    border-radius: 50%;
    font-weight: 700;
    font-size: 16px;
}

.fb-person-details {
    flex: 1;
}

.fb-person-details .fb-person-name {
    font-size: 1.2em;
    margin-bottom: 8px;
}

.fb-person-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.fb-meta-profession {
    color: #0066cc;
    font-weight: 500;
}

.fb-person-achievement {
    font-size: 14px;
    color: #555;
    margin: 8px 0 0 0;
}

.fb-person-actions {
    flex-shrink: 0;
}

.fb-action-link {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s ease;
}

.fb-action-link:hover {
    color: #0052a3;
    text-decoration: underline;
}

/* Fun Facts Section */
.fb-fun-facts {
    margin: 50px 0;
    padding: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    color: white;
}

.fb-fun-facts h2 {
    font-size: 1.8em;
    margin-bottom: 25px;
    color: white;
    font-weight: 600;
    text-align: center;
}

.fb-facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.fb-fact-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.fb-fact-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-4px);
}

.fb-fact-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
}

.fb-fact-content h4 {
    margin: 0 0 10px 0;
    font-size: 1.2em;
    font-weight: 600;
}

.fb-fact-content p {
    margin: 0;
    opacity: 0.95;
    line-height: 1.5;
}

/* Navigation */
.fb-navigation {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 15px;
    margin: 50px 0;
    align-items: center;
}

.fb-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.fb-nav-link:hover {
    border-color: #0066cc;
    background: #f0f7ff;
}

.fb-nav-prev {
    justify-content: flex-start;
}

.fb-nav-next {
    justify-content: flex-end;
}

.fb-nav-month {
    justify-content: center;
    background: #0066cc;
    color: white;
    border-color: #0066cc;
    font-weight: 600;
}

.fb-nav-month:hover {
    background: #0052a3;
    border-color: #0052a3;
}

.fb-nav-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fb-nav-text small {
    font-size: 12px;
    opacity: 0.7;
}

.fb-nav-text strong {
    font-size: 15px;
}

.fb-nav-arrow {
    font-size: 20px;
    font-weight: bold;
}

/* Related Links */
.fb-related-links {
    margin: 50px 0;
}

.fb-related-links h2 {
    font-size: 1.8em;
    margin-bottom: 25px;
    color: #1a1a1a;
    font-weight: 600;
    text-align: center;
}

.fb-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.fb-link-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 25px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.fb-link-card:hover {
    border-color: #0066cc;
    background: #f0f7ff;
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.15);
}

.fb-link-card strong {
    font-size: 1.2em;
    color: #1a1a1a;
}

.fb-link-card span {
    font-size: 14px;
    color: #666;
}

/* Month Archive Styles */
.fb-month-calendar {
    margin: 40px 0;
}

.fb-calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
}

.fb-day-card {
    padding: 20px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.fb-day-card:hover {
    border-color: #0066cc;
    background: #f0f7ff;
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.15);
}

.fb-day-number {
    font-size: 2em;
    font-weight: 700;
    color: #0066cc;
    margin-bottom: 10px;
}

.fb-day-count {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.fb-day-preview {
    font-size: 13px;
    color: #555;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 768px) {
    .fb-main-title {
        font-size: 1.8em;
    }
    
    .fb-featured-grid {
        grid-template-columns: 1fr;
    }
    
    .fb-navigation {
        grid-template-columns: 1fr;
    }
    
    .fb-nav-link {
        justify-content: center !important;
    }
    
    .fb-person-item {
        flex-direction: column;
        text-align: center;
    }
    
    .fb-person-actions {
        width: 100%;
    }
    
    .fb-action-link {
        display: block;
    }
    
    .fb-search-box {
        flex-direction: column;
    }
    
    .fb-search-btn {
        width: 100%;
    }
}

/* Loading Animation */
.fb-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px;
}

.fb-loading::after {
    content: "";
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #0066cc;
    border-radius: 50%;
    animation: fb-spin 1s linear infinite;
}

@keyframes fb-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Print Styles */
@media print {
    .fb-search-box,
    .fb-card-actions,
    .fb-navigation,
    .fb-related-links,
    .fb-person-actions {
        display: none;
    }
}