/* ============================================================
   MO:ST Social Media Dashboard - Custom Styles
   ============================================================ */

/* Branding CSS Custom Properties */
:root {
    --brand-primary: #ed1847;
    --brand-secondary: #cf0e3d;
    --brand-light: #f73e5b;
    --brand-gray: #f8f9fa;
    --brand-text: #333333;
    --brand-light-gray: #e9ecef;
}

/* Tailwind-kompatible Branding-Farben */
.bg-brand-primary { background-color: var(--brand-primary); }
.bg-brand-secondary { background-color: var(--brand-secondary); }
.text-brand-primary { color: var(--brand-primary); }
.text-brand-secondary { color: var(--brand-secondary); }
.border-brand-primary { border-color: var(--brand-primary); }
.ring-brand-primary { --tw-ring-color: var(--brand-primary); }
.hover\:bg-brand-primary:hover { background-color: var(--brand-primary); }
.hover\:bg-brand-secondary:hover { background-color: var(--brand-secondary); }
.hover\:text-brand-primary:hover { color: var(--brand-primary); }
.bg-brand-primary\/5 { background-color: color-mix(in srgb, var(--brand-primary) 5%, transparent); }
.bg-brand-primary\/10 { background-color: color-mix(in srgb, var(--brand-primary) 10%, transparent); }
.ring-brand-primary\/30 { --tw-ring-color: color-mix(in srgb, var(--brand-primary) 30%, transparent); }

/* Video-Cards */
.video-card {
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Video-Container */
.video-container {
    position: relative;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}
.video-container img,
.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    vertical-align: top;
}

/* Status-Badges */
.status-approved { background: linear-gradient(135deg, #22c55e, #16a34a); }
.status-pending { background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary)); }
.status-rejected { background: linear-gradient(135deg, #ef4444, #dc2626); }

/* Card-Content */
.card-content {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Smooth Scroll */
.smooth-scroll { scroll-behavior: smooth; }

/* Caption-Truncation */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.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;
}
.caption-full {
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Grid Alignment */
#posts-grid {
    align-items: start;
}
#posts-grid > div {
    align-self: stretch;
    vertical-align: top;
}

/* Welcome-Gradient (GSAP-Animation Target) */
.welcome-gradient {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .video-card:hover {
        transform: none;
    }
    .video-card:active {
        transform: scale(0.98);
    }
    button:active {
        transform: scale(0.95);
    }
}

/* Modal Overlay */
.modal-overlay {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

/* Active Navigation */
[data-nav].active {
    font-weight: 700;
    border-bottom: 2px solid var(--brand-primary);
}

/* Sort-Modus Drag-Hover */
.drag-over {
    ring: 2px;
    ring-color: var(--brand-primary);
}
