/* VideoRekrutacja - Custom styles (Modern Dating App Theme) */

/* CSS Variables */
:root {
    --primary: #0d9488;
    --primary-light: #5eead4;
    --primary-dark: #0f766e;
    --accent: #06b6d4;
    --accent-light: #67e8f9;
    --gradient-start: #0d9488;
    --gradient-end: #06b6d4;
}

/* Video card hover effect */
.video-card:hover .play-overlay {
    opacity: 1;
}

.play-overlay {
    opacity: 0;
    transition: opacity 0.25s ease-in-out;
}

/* Tag styling */
.tag {
    display: inline-block;
    background: #ecfdf5;
    color: #059669;
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #a7f3d0;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6ee7b7;
}

/* Plyr customization */
.plyr--video {
    border-radius: 0;
}

.plyr__control--overlaid {
    background: rgba(13, 148, 136, 0.9) !important;
}

.plyr--video .plyr__control:hover {
    background: #0d9488 !important;
}

.plyr--full-ui input[type=range] {
    color: #0d9488 !important;
}

/* Form focus states */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
    border-color: #0d9488 !important;
}

/* Smooth transitions */
a, button {
    transition: all 0.2s ease-in-out;
}

/* Loading spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0d9488;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Brand text utility */
.gradient-text {
    color: var(--primary);
}

/* Card glass effect */
.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(13, 148, 136, 0.1);
}

html.dark .glass-card {
    background: rgba(31, 41, 55, 0.85);
    border-color: rgba(255, 255, 255, 0.08);
}

/* Tag dark mode */
html.dark .tag {
    background: linear-gradient(135deg, rgba(6,95,70,0.25), rgba(8,145,178,0.2));
    color: #6ee7b7;
}

/* Video card - full overlay style */
.video-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-card:hover {
    box-shadow: 0 12px 30px -6px rgba(13, 148, 136, 0.2), 0 6px 12px -4px rgba(6, 182, 212, 0.1);
}

/* Card scale on hover */
.video-card:hover {
    transform: scale(1.02) translateY(-1px);
}

/* Phone content bg */
.phone-content {
    background: #f0fdf4;
}

/* Bottom sheet style cards */
.bottom-sheet-card {
    background: white;
    border-radius: 1.5rem 1.5rem 0 0;
    box-shadow: 0 -4px 30px rgba(13, 148, 136, 0.1);
}

/* ───── Floating Nav Pill ───── */
:root {
    --nav-pill-bg: rgba(255, 255, 255, 0.85);
    --nav-pill-shadow: 0 -2px 20px rgba(0, 0, 0, 0.08);
    --nav-pill-border: rgba(0, 0, 0, 0.06);
    --nav-separator: rgba(0, 0, 0, 0.08);
    --nav-tab-color: #9ca3af;
    --nav-tab-active-color: #059669;
    --nav-tab-active-bg: rgba(5, 150, 105, 0.08);
    --nav-tab-pink-color: #06b6d4;
    --nav-tab-pink-bg: rgba(6, 182, 212, 0.08);
    --nav-theme-bg: rgba(0, 0, 0, 0.04);
    --nav-theme-color: #6b7280;
}

html.dark {
    --nav-pill-bg: rgba(10, 25, 20, 0.92);
    --nav-pill-shadow: 0 -2px 30px rgba(0, 0, 0, 0.4), 0 4px 20px rgba(13, 148, 136, 0.1);
    --nav-pill-border: rgba(255, 255, 255, 0.08);
    --nav-separator: rgba(255, 255, 255, 0.1);
    --nav-tab-color: #d1d5db;
    --nav-tab-active-color: #a7f3d0;
    --nav-tab-active-bg: rgba(52, 211, 153, 0.15);
    --nav-tab-pink-color: #67e8f9;
    --nav-tab-pink-bg: rgba(103, 232, 249, 0.15);
    --nav-theme-bg: rgba(52, 211, 153, 0.12);
    --nav-theme-color: #6ee7b7;
}

.nav-tab {
    color: var(--nav-tab-color);
}

.nav-tab-active {
    color: var(--nav-tab-active-color);
    background: var(--nav-tab-active-bg);
}

.nav-tab-active.nav-tab-pink {
    color: var(--nav-tab-pink-color);
    background: var(--nav-tab-pink-bg);
}

.nav-theme-toggle {
    background: var(--nav-theme-bg);
    color: var(--nav-theme-color);
}

.nav-theme-toggle:hover {
    background: var(--nav-tab-active-bg);
}

.nav-theme-toggle:active {
    transform: scale(0.9) rotate(-15deg);
}

/* Smooth theme transition on nav */
.nav-pill,
.nav-tab,
.nav-theme-toggle {
    transition: background 0.35s ease, color 0.3s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

/* ───── Tap target safety (min 44px) ───── */
@media (pointer: coarse) {
    a, button, [role="button"], input[type="submit"], input[type="button"] {
        min-height: 44px;
    }
    /* Small inline links excluded */
    p a, span a, li a, td a {
        min-height: auto;
    }
}

/* Floating action button */
.fab {
    background: #0d9488;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
    transition: all 0.2s ease;
}

.fab:hover {
    box-shadow: 0 6px 16px rgba(13, 148, 136, 0.4);
    transform: translateY(-1px);
}
