/* Safari Trail Reviews - Standalone CSS */
/* Based on Finishlijn.nl design system */

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables */
:root {
    --color-black: #1a1a1a;
    --color-white: #ffffff;
    --color-cream: #fafafa;
    --color-primary: #e85d4c;
    --color-primary-hover: #d14d3d;
    --color-primary-light: #fef2f0;
    --color-secondary: #3d3d3d;
    --color-secondary-light: #5a5a5a;
    --color-tertiary: #e9c46a;
    --color-text: #1a1a1a;
    --color-text-muted: #4a4a4a;
    --color-text-light: #717171;
    --color-surface: #ffffff;
    --color-surface-elevated: #f7f7f7;
    --color-border: #e8e8e8;
    --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.1);
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
}

/* Base Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-cream);
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-text);
    margin: 0 0 1rem;
}
h1 { font-size: clamp(2rem, 7vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 4vw, 1.75rem); }
p { font-family: var(--font-body); font-size: 1rem; line-height: 1.7; color: var(--color-text-muted); margin: 0 0 1rem; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--color-primary-hover); }

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}
.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}
.btn-primary:hover {
    background-color: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    color: var(--color-white);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Star Rating */
.star-rating {
    display: flex;
    gap: 0.25rem;
    flex-direction: row-reverse;
    justify-content: flex-end;
}
.star-rating input { display: none; }
.star-rating label {
    cursor: pointer;
    font-size: 1.875rem;
    color: #d1d5db;
    transition: all 0.15s ease;
    padding: 0.25rem;
    line-height: 1;
}
.star-rating label:hover,
.star-rating label:hover~label,
.star-rating input:checked~label {
    color: var(--color-tertiary);
}
.star-rating label:active { transform: scale(0.9); }

/* Rating Category Card */
.rating-category {
    border-radius: 0.75rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    transition: all 0.2s ease;
    overflow: hidden;
}
.rating-category:hover { border-color: var(--color-text-light); }
.rating-category.rated {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.04) 0%, rgba(255, 193, 7, 0.04) 100%);
    border-color: var(--color-secondary);
}
.rating-category.rating-missing {
    border-color: var(--color-primary);
    border-width: 2px;
    background: rgba(232, 93, 76, 0.05);
}

/* Tags Panel */
.tags-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}
.tags-panel.open { max-height: 500px; opacity: 1; }

/* Tag Chips */
.tag-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}
.tag-chip:hover {
    border-color: var(--color-text-light);
    color: var(--color-text);
    background: var(--color-cream);
}
.tag-chip.selected.negative { border-color: #fecaca; background: #fef2f2; color: #991b1b; }
.tag-chip.selected.neutral { border-color: #d1d5db; background: #f3f4f6; color: #374151; }
.tag-chip.selected.positive { border-color: #86efac; background: #dcfce7; color: #166534; }

/* Tags prompt */
.tags-prompt {
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}
.tags-prompt.negative { color: var(--color-primary); }
.tags-prompt.neutral { color: var(--color-text-muted); }
.tags-prompt.positive { color: var(--color-secondary); }

/* Mobile optimizations */
@media (max-width: 640px) {
    .rating-category-inner { padding: 0.625rem 0.75rem !important; gap: 0.25rem !important; }
    .rating-category-inner .rating-icon { display: none; }
    .star-rating { gap: 0; }
    .star-rating label {
        font-size: 1.625rem;
        padding: 0.125rem;
        min-width: 36px;
        min-height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .tag-chip { padding: 0.25rem 0.5rem; font-size: 0.625rem; }
}

/* Edition selection */
.edition-option { transition: all 0.15s ease; }
.edition-option:has(input:checked) {
    border-color: var(--color-primary);
    background: rgba(232, 93, 76, 0.05);
}

/* Animations */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.5s ease forwards; }

/* Thank You Page */
@keyframes thankYouFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}
@keyframes confetti-fall {
    0% { transform: translateY(-100vh) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}
@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 0; }
    50% { opacity: 0.3; }
    100% { transform: scale(2); opacity: 0; }
}
@keyframes checkmark {
    0% { stroke-dashoffset: 100; }
    100% { stroke-dashoffset: 0; }
}
@keyframes scaleIn {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}
@keyframes slideUp {
    0% { transform: translateY(30px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    top: -10px;
    z-index: 1000;
    pointer-events: none;
}
.confetti:nth-child(odd) { border-radius: 50%; }
.confetti:nth-child(even) { border-radius: 2px; }
.success-icon { animation: scaleIn 0.6s ease-out forwards; }
.success-icon .pulse { animation: pulse-ring 2s ease-out infinite; }
.success-icon .checkmark { stroke-dasharray: 100; animation: checkmark 0.8s ease-out 0.3s forwards; }
.content-card { animation: slideUp 0.6s ease-out 0.3s both; }
.content-card:nth-child(2) { animation-delay: 0.4s; }
.content-card:nth-child(3) { animation-delay: 0.5s; }
.content-card:nth-child(4) { animation-delay: 0.6s; }
.floating-emoji {
    position: absolute;
    font-size: 2rem;
    animation: thankYouFloat 4s ease-in-out infinite;
    opacity: 0.15;
}
.social-btn { transition: all 0.2s ease; }
.social-btn:hover { transform: translateY(-2px); }

/* Focus states */
:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 2px; }
::selection { background-color: var(--color-primary-light); color: var(--color-primary-hover); }

/* Admin styles */
.admin-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-text-light);
    border-bottom: 2px solid var(--color-border);
    background: var(--color-surface-elevated);
}
.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--color-border);
    vertical-align: top;
}
.admin-table tr:hover { background-color: var(--color-surface-elevated); }

/* Status badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
}
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-approved { background: #dcfce7; color: #166534; }
.badge-rejected { background: #fee2e2; color: #991b1b; }
.badge-spam { background: #f3f4f6; color: #6b7280; }

/* Input fields */
.input-field {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text);
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}
.input-field:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}

/* Photo upload */
.photo-drop-area {
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}
.photo-drop-area:hover {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
}
.photo-preview-container { position: relative; display: inline-block; }
