/**
 * BarefootBeat Custom Styles
 *
 * Supplementary styles for WordPress-specific elements
 * and any overrides not covered by Tailwind utilities.
 */

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Fix WordPress admin bar + sticky nav overlap */
body.admin-bar .sticky-nav {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .sticky-nav {
        top: 46px;
    }
}

/* WordPress block editor content compatibility */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    font-weight: 700;
    color: #111827;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.entry-content p {
    margin-bottom: 1em;
    line-height: 1.75;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1em;
    padding-left: 1.5em;
}

.entry-content ul {
    list-style-type: disc;
}

.entry-content ol {
    list-style-type: decimal;
}

.entry-content a {
    color: var(--color-forest);
    text-decoration: underline;
}

.entry-content a:hover {
    opacity: 0.8;
}

.entry-content blockquote {
    border-left: 4px solid var(--color-earth);
    padding-left: 1rem;
    margin: 1.5em 0;
    font-style: italic;
    color: #6b7280;
}

.entry-content img {
    border-radius: 0.75rem;
    margin: 1.5em 0;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}

.entry-content th,
.entry-content td {
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    text-align: left;
}

.entry-content th {
    background-color: #f9fafb;
    font-weight: 600;
}

/* Custom select arrow override */
select.appearance-none {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* Shoe card hover animations */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Range slider styling for forest color */
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: var(--color-forest);
    border-radius: 50%;
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: var(--color-forest);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

input[type="range"]::-webkit-slider-runnable-track {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
}

input[type="range"]::-moz-range-track {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
}

/* Loading skeleton animation */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 0.5rem;
}

/* Prose styles for single shoe content */
.prose {
    max-width: 65ch;
}

.prose p {
    margin-bottom: 1.25em;
}

.prose h2 {
    font-size: 1.5em;
    font-weight: 700;
    margin-top: 2em;
    margin-bottom: 0.75em;
}

.prose h3 {
    font-size: 1.25em;
    font-weight: 600;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

/* Print styles */
@media print {
    nav, footer, .no-print { display: none; }
    body { font-size: 12pt; }
}
