/* Chrome Extension Promotion Styles */

#chrome-extension-banner {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

#chrome-extension-banner button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.extension-card {
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Chrome Extension Banner responsive styles */
@media (max-width: 768px) {
    #chrome-extension-banner .max-w-6xl {
        flex-direction: column;
        gap: 1rem;
    }
    
    #chrome-extension-banner .flex.items-center.space-x-3 {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    #chrome-extension-banner .flex.items-center.space-x-3 button {
        width: 100%;
        text-align: center;
    }
}

/* Mobile menu accordion styles */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

#mobile-menu.hidden {
    max-height: 0 !important;
}

#mobile-menu:not(.hidden) {
    max-height: 300px;
}

/* Extension info section */
.extension-info-highlight {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    position: relative;
    overflow: hidden;
}

.extension-info-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" fill="none"><path d="M16 32C7.163 32 0 24.837 0 16S7.163 0 16 0s16 7.163 16 16-7.163 16-16 16z" fill="white" fill-opacity="0.1"/></svg>') repeat;
    opacity: 0.1;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(180deg); }
}

/* Browser compatibility indicator */
.browser-support {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: #065f46;
    margin-top: 0.75rem;
}

.browser-support svg {
    width: 1rem;
    height: 1rem;
    fill: #10b981;
}

/* Installation success animation */
@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.installation-success {
    animation: successPulse 2s ease-in-out;
}

/* Feature list styling */
.extension-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.extension-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.extension-features li:last-child {
    border-bottom: none;
}

.extension-features li svg {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    fill: #10b981;
}

/* Extension badge */
.extension-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.extension-badge::before {
    content: '';
    width: 0.5rem;
    height: 0.5rem;
    background: #34d399;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Chrome Web Store button styling */
.cws-button {
    background: linear-gradient(135deg, #4285f4 0%, #34a853 50%, #fbbc05 75%, #ea4335 100%);
    position: relative;
    overflow: hidden;
}

.cws-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cws-button:hover::before {
    left: 100%;
}

/* Mobile optimizations */
@media (max-width: 640px) {
    .extension-card {
        margin: 1rem;
    }
    
    .extension-card .p-8 {
        padding: 1.5rem;
    }
    
    #chrome-extension-banner {
        padding: 1rem;
    }
    
    #chrome-extension-banner h4 {
        font-size: 1rem;
    }
    
    #chrome-extension-banner p {
        font-size: 0.875rem;
        display: none; /* Hide description on very small screens */
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .extension-card {
        background: #1f2937;
        border-color: #374151;
    }
    
    .extension-card .text-gray-700 {
        color: #d1d5db;
    }
    
    .extension-card .text-gray-500 {
        color: #9ca3af;
    }
    
    #chrome-extension-banner {
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    #chrome-extension-banner {
        border-bottom: 2px solid white;
    }
    
    .extension-card {
        border: 2px solid #000;
    }
    
    .extension-features li {
        border-bottom-color: #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    #chrome-extension-banner,
    .extension-card,
    .cws-button::before,
    .extension-badge::before {
        animation: none;
        transition: none;
    }
    
    #chrome-extension-banner {
        transform: translateY(0) !important;
    }
}
