/* ===== Camzy.nl — cam grid styles ===== */

/*
 * Kleurenpalet (licht blauw):
 * Achtergrond body : #e8f0fb → #dce8f8
 * Navbar/footer    : #1a3a6e (donkerblauw accent)
 * Cards            : wit met subtiele blauwe rand
 * Tekst            : #1a2a4a (donkerblauw)
 * Accenten         : #2d6be4 (helder blauw)
 */

.camzy-body {
    background: linear-gradient(160deg, #e8f0fb 0%, #dce8f8 50%, #eaf1fd 100%);
    min-height: 100vh;
    color: #1a2a4a;
}
.camzy-nav {
    background: #1a3a6e !important;
    box-shadow: 0 2px 12px rgba(26, 58, 110, 0.18);
}
.camzy-footer {
    background: #1a3a6e;
    color: #b8cef0 !important;
}

/* Cam cards */
.cam-card {
    background: #ffffff;
    border: 1px solid #bad2f0;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(45, 107, 228, 0.08);
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.cam-card:hover {
    transform: translateY(-3px);
    border-color: #2d6be4;
    box-shadow: 0 6px 22px rgba(45, 107, 228, 0.2);
}
.cam-card .cam-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #d0e2f8;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.cam-card .cam-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cam-card .cam-thumb .cam-thumb-placeholder {
    font-size: 3rem;
    color: #7aaee8;
}
.cam-card .live-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: .05em;
    padding: 2px 6px;
    border-radius: 4px;
}
.cam-card .viewer-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    font-size: 0.72rem;
    background: rgba(26, 42, 74, 0.65);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
}

/* Blur overlay voor niet-ingelogde bezoekers */
.blur-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.18);
    z-index: 5;
}
.blur-login-btn {
    background: rgba(255,255,255,0.92);
    color: #1a5eb8;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    transition: background 0.15s;
    white-space: nowrap;
}
.blur-login-btn:hover {
    background: #fff;
    color: #1a5eb8;
}
.cam-card .cam-info {
    padding: 10px 12px;
    background: #fff;
}
.cam-card .cam-name {
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #1a2a4a;
}
.cam-card .cam-meta {
    font-size: 0.78rem;
    color: #4a7abf;
    margin-top: 2px;
}

/* Pulsing dot for live */
@keyframes pulse-blue {
    0%, 100% { opacity: 1; }
    50%       { opacity: .35; }
}
.live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2d6be4;
    margin-right: 4px;
    animation: pulse-blue 1.4s infinite;
}

/* Pulsing dot for live */
@keyframes pulse-blue {
    0%, 100% { opacity: 1; }
    50%       { opacity: .35; }
}
.live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2d6be4;
    margin-right: 4px;
    animation: pulse-blue 1.4s infinite;
}

/* Video modal */
#videoModal .modal-content {
    background: #f0f6ff;
    border: 1px solid #bad2f0;
    color: #1a2a4a;
}
#videoModal .modal-header {
    background: #1a3a6e;
}
#videoModal video {
    width: 100%;
    background: #0a1830;
    border-radius: 4px;
}

/* Chat panel */
.chat-panel {
    background: #f4f8ff;
    border-radius: 6px;
    height: 280px;
    display: flex;
    flex-direction: column;
    border: 1px solid #bad2f0;
}
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    font-size: 0.82rem;
    color: #1a2a4a;
    scrollbar-width: thin;
    scrollbar-color: #bad2f0 transparent;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: #bad2f0; }
.chat-msg {
    margin-bottom: 6px;
    word-break: break-word;
}
.chat-msg .chat-user {
    color: #1a5bbf;
    font-weight: 600;
    margin-right: 4px;
}
.chat-input-row {
    display: flex;
    gap: 6px;
    padding: 8px;
    border-top: 1px solid #bad2f0;
    background: #eaf2ff;
    border-radius: 0 0 6px 6px;
}
.chat-input-row input {
    flex: 1;
    background: #fff;
    border: 1px solid #bad2f0;
    color: #1a2a4a;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 0.82rem;
}
.chat-input-row input:focus {
    outline: none;
    border-color: #2d6be4;
    box-shadow: 0 0 0 2px rgba(45, 107, 228, 0.15);
}

/* Saved films grid */
.film-card {
    background: #ffffff;
    border: 1px solid #bad2f0;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(45, 107, 228, 0.07);
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.film-card:hover {
    transform: translateY(-3px);
    border-color: #2d6be4;
    box-shadow: 0 6px 18px rgba(45, 107, 228, 0.18);
}
.film-card .film-thumb {
    aspect-ratio: 16 / 9;
    background: #d0e2f8;
    overflow: hidden;
}
.film-card .film-thumb img,
.film-card .film-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg, #dce8f8 25%, #eaf2ff 50%, #dce8f8 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}
@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Cam$y punt-geven pop animatie */
@keyframes scale-pop {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.35); }
    100% { transform: scale(1); }
}
.scale-pop {
    animation: scale-pop 0.4s ease;
}

/* Hero intro */
.camzy-hero-title { font-size: 2rem; }
.camzy-hero-lead  { font-size: 1.05rem; color: #1a2a4a; }
.camzy-hero-sub   { font-size: 0.9rem;  color: #4a7abf; }

/* Auth formulier cards (register/login/profiel) */
.camzy-card {
    background: #fff;
    border: 1px solid #bad2f0;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(45, 107, 228, 0.08);
}
.camzy-card .card-body {
    color: #1a2a4a;
}

/* Hero intro tekst op lichte achtergrond */
.camzy-body .text-secondary { color: #4a7abf !important; }
.camzy-body .text-muted     { color: #7aaee8 !important; }




/* Pulsing dot for live */
@keyframes pulse-blue {
    0%, 100% { opacity: 1; }
    50%       { opacity: .35; }
}
.live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3d8ef8;
    margin-right: 4px;
    animation: pulse-blue 1.4s infinite;
}

/* Video modal */
#videoModal .modal-content {
    background: #0b1a2e;
    border: 1px solid #1e3a6e;
}
#videoModal video {
    width: 100%;
    background: #060e1c;
    border-radius: 4px;
}

/* Chat panel */
.chat-panel {
    background: #091526;
    border-radius: 6px;
    height: 280px;
    display: flex;
    flex-direction: column;
    border: 1px solid #1e3a6e;
}
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    font-size: 0.82rem;
    scrollbar-width: thin;
    scrollbar-color: #1e3a6e transparent;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: #1e3a6e; }
.chat-msg {
    margin-bottom: 6px;
    word-break: break-word;
}
.chat-msg .chat-user {
    color: #5ba4f5;
    font-weight: 600;
    margin-right: 4px;
}
.chat-input-row {
    display: flex;
    gap: 6px;
    padding: 8px;
    border-top: 1px solid #1e3a6e;
}
.chat-input-row input {
    flex: 1;
    background: #0f2340;
    border: 1px solid #1e3a6e;
    color: #c8deff;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 0.82rem;
}
.chat-input-row input:focus {
    outline: none;
    border-color: #3d8ef8;
}

/* Saved films grid */
.film-card {
    background: linear-gradient(145deg, #0f2340, #132a55);
    border: 1px solid #1e3a6e;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.film-card:hover {
    transform: translateY(-3px);
    border-color: #5ba4f5;
    box-shadow: 0 4px 16px rgba(91, 164, 245, 0.2);
}
.film-card .film-thumb {
    aspect-ratio: 16 / 9;
    background: #111;
    overflow: hidden;
}
.film-card .film-thumb img,
.film-card .film-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg, #0f2340 25%, #162e5a 50%, #0f2340 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}
@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Cam$y punt-geven pop animatie */
@keyframes scale-pop {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.35); }
    100% { transform: scale(1); }
}
.scale-pop {
    animation: scale-pop 0.4s ease;
}
