/* ── MoodFlix Custom Styles (CDN-compatible, no build needed) ── */

:root {
    --mf-primary: #6366f1;
    --mf-primary-light: #818cf8;
    --mf-dark: #0f0d1a;
    --mf-darker: #080612;
    --mf-card: #1a1730;
    --mf-card-hover: #231f3e;
    --mf-surface: #13112a;
    --mf-accent: #f59e0b;
}

/* Glass card effect */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
}

/* Mood card hover glow */
.mood-glow {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.mood-glow:hover {
    box-shadow: 0 0 30px -5px var(--glow-color, var(--mf-primary));
    transform: translateY(-4px);
}

/* Movie card */
.movie-card {
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.movie-card:hover {
    box-shadow: 0 20px 25px -5px rgba(99, 102, 241, 0.1), 0 8px 10px -6px rgba(99, 102, 241, 0.1);
    transform: translateY(-6px);
}

/* Gradient text */
.gradient-text {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    background-image: linear-gradient(to right, #818cf8, #a78bfa);
}

/* Custom scrollbar for dark theme */
.moodflix-scroll::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.moodflix-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.moodflix-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
}

.moodflix-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Platform badge */
.platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.platform-badge:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

/* Line clamp utility */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Scrollbar hide */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* MoodFlix button */
.mf-gradient {
    background: linear-gradient(135deg, #6366f1 0%, #a78bfa 50%, #f472b6 100%);
}

.mf-card {
    background: var(--mf-card);
    border: 1px solid rgba(255, 255, 255, .06);
}

.mf-btn {
    background: var(--mf-primary);
    transition: all .2s;
}

.mf-btn:hover {
    background: #4f46e5;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(99, 102, 241, .4);
}

/* Shared toastr styling */
#toast-container {
    z-index: 70;
}

#toast-container > div {
    opacity: 1;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
    border-radius: 0.9rem;
    border: 1px solid rgba(255, 255, 255, .08);
    padding: 14px 16px;
    background-image: none !important;
    color: #fff;
}

#toast-container > .toast-success {
    background-color: #16a34a !important;
}

#toast-container > .toast-error {
    background-color: #dc2626 !important;
}

#toast-container > .toast-info {
    background-color: #2563eb !important;
}

#toast-container > .toast-warning {
    background-color: #d97706 !important;
}

#toast-container .toast-message {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.mood-badge {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .125rem .5rem;
    border-radius: 9999px;
    font-size: .75rem;
    font-weight: 600;
}

.from-indigo-500 {
    --tw-gradient-from: #dc2626 var(--tw-gradient-from-position) !important;
}

/* Forms plugin styles for dark inputs */
[type='text'],
[type='email'],
[type='url'],
[type='password'],
[type='number'],
[type='date'],
[type='datetime-local'],
[type='month'],
[type='search'],
[type='tel'],
[type='time'],
[type='week'],
[multiple],
textarea,
select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-width: 1px;
    border-radius: 0;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5rem;
}

[type='text']:focus,
[type='email']:focus,
[type='url']:focus,
[type='password']:focus,
[type='number']:focus,
[type='date']:focus,
[type='datetime-local']:focus,
[type='month']:focus,
[type='search']:focus,
[type='tel']:focus,
[type='time']:focus,
[type='week']:focus,
[multiple]:focus,
textarea:focus,
select:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    --tw-ring-color: #6366f1;
    box-shadow: 0 0 0 0px #fff, 0 0 0 2px var(--tw-ring-color), 0 0 0 0px rgba(0, 0, 0, 0);
    border-color: #6366f1;
}

[type='checkbox'],
[type='radio'] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding: 0;
    display: inline-block;
    vertical-align: middle;
    background-origin: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    flex-shrink: 0;
    height: 1rem;
    width: 1rem;
    accent-color: #6366f1;
    border-width: 1px;
    border-color: #6b7280;
    cursor: pointer;
}

[type='checkbox'] {
    border-radius: 0.25rem;
}

[type='radio'] {
    border-radius: 100%;
}

[type='checkbox']:checked,
[type='radio']:checked {
    background-color: #6366f1;
    border-color: #6366f1;
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

[type='checkbox']:focus,
[type='radio']:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    box-shadow: 0 0 0 0px #fff, 0 0 0 2px #6366f1, 0 0 0 0px rgba(0, 0, 0, 0);
    border-color: #6366f1;
}