/* ToolsKit Navigation - Custom Styles */

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Header Styles */
.header {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Site Item Hover Effects */
.site-item {
    position: relative;
}

.site-item:hover {
    transform: translateX(2px);
}

.site-item:hover .bullet {
    content: '→';
}

/* Hot Badge Animation */
.hot-badge {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.15);
        opacity: 0.85;
    }
}

/* Search Box Focus */
.search-box:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#search-input:focus,
#search-input-mobile:focus {
    outline: none;
}

/* Theme Switcher Focus */
.theme-switcher:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Category Section Spacing */
.category-section {
    scroll-margin-top: 80px; /* Offset for sticky header */
}

/* Site Grid */
.site-grid {
    background: var(--bg-primary);
}

/* Internal Badge */
.internal-badge {
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Empty State */
.empty-state {
    animation: fadeIn 0.5s ease-in;
}

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

/* Loading Skeleton (for future use) */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-secondary) 25%,
        var(--bg-hover) 50%,
        var(--bg-secondary) 75%
    );
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .site-item {
        padding: 12px;
    }

    .site-title {
        font-size: 15px;
    }

    .site-url {
        font-size: 12px;
    }

    .hot-badge {
        top: 8px;
        right: 8px;
        font-size: 16px;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .search-box,
    .theme-switcher {
        display: none;
    }

    .site-item {
        break-inside: avoid;
    }
}

/* Accessibility Improvements */
.site-title:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .site-item {
        border-width: 2px;
    }

    .site-title {
        font-weight: 600;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}
