/* Advanced SEO Optimized Styles */

/* Breadcrumb Navigation */
.breadcrumbs {
    padding: 1rem 0;
    background: rgba(255, 215, 0, 0.1);
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.breadcrumb-list {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.breadcrumb-item {
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb-item a {
    color: #FFD700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #FFF;
}

.breadcrumb-item:not(:last-child)::after {
    content: '›';
    margin: 0 0.5rem;
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb-item[aria-current="page"] {
    color: #FFF;
    font-weight: 500;
}

/* PWA Install Button */
.pwa-install-button {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 1rem;
    position: relative;
    overflow: hidden;
}

.pwa-install-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.pwa-install-button:active {
    transform: translateY(0);
}

/* PWA Update Notification */
.pwa-update-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    padding: 1rem;
    z-index: 10000;
    animation: slideInRight 0.5s ease;
}

.update-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.update-content p {
    margin: 0;
    color: #FFF;
    font-size: 0.9rem;
}

.update-content button {
    background: #FFD700;
    color: #000;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.update-content button:hover {
    background: #FFA500;
}

.update-content button:last-child {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Network Status Indicator */
.network-status {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 10000;
    animation: slideInBottom 0.5s ease;
}

.network-status.online {
    background: rgba(34, 197, 94, 0.9);
    color: #FFF;
    backdrop-filter: blur(10px);
}

.network-status.offline {
    background: rgba(239, 68, 68, 0.9);
    color: #FFF;
    backdrop-filter: blur(10px);
}

/* Rate Limit Message */
.rate-limit-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(239, 68, 68, 0.95);
    color: #FFF;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    z-index: 10000;
    animation: pulse 0.5s ease;
}

/* SEO-Optimized Content Structure */
.seo-content h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #FFD700;
    text-align: center;
}

.seo-content h2 {
    font-size: 2rem;
    margin: 2rem 0 1rem 0;
    color: #FFF;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    padding-bottom: 0.5rem;
}

.seo-content h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 0.75rem 0;
    color: rgba(255, 255, 255, 0.9);
}

.seo-content p {
    line-height: 1.7;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Schema.org Microdata Enhancement */
.organization-info {
    display: none; /* Hidden but readable by search engines */
}

/* Performance Optimized Elements */
.lazy-load {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.lazy-load.loaded {
    opacity: 1;
}

/* Security Enhancements */
.secure-form {
    position: relative;
}

.secure-form::before {
    content: '🔒 Secure Form';
    position: absolute;
    top: -1.5rem;
    right: 0;
    font-size: 0.8rem;
    color: rgba(255, 215, 0, 0.7);
}

/* Accessibility Enhancements for SEO */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Mobile PWA Optimizations */
@media (max-width: 768px) {
    .pwa-install-button {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        margin-left: 0.5rem;
    }
    
    .breadcrumb-list {
        padding: 0 1rem;
        font-size: 0.8rem;
    }
    
    .pwa-update-notification {
        right: 10px;
        left: 10px;
        transform: none;
    }
}

/* Critical CSS for above-the-fold content */
.critical-content {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Animations for better UX and engagement signals */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInBottom {
    from {
        transform: translate(-50%, 100%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
    }
}

/* Enhanced Loading States */
.loading-skeleton {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.1) 25%, 
        rgba(255, 215, 0, 0.2) 50%, 
        rgba(255, 255, 255, 0.1) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Print Styles for SEO */
@media print {
    .navbar, .footer, .pwa-install-button, .network-status {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .seo-content h1, .seo-content h2, .seo-content h3 {
        color: black !important;
    }
}
