/* =============================================
   STYLE.CSS - URL Submitter
   Versi Modern & Clean (Bootstrap 5)
   ============================================= */

:root {
    --primary: #0d6efd;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* Navbar */
.navbar {
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.15);
}

/* Card Style */
.card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 30px rgba(13, 110, 253, 0.15);
}

.card-img-top {
    transition: transform 0.4s ease;
}

.card:hover .card-img-top {
    transform: scale(1.08);
}

.card-body {
    padding: 1.25rem;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-text.text-muted {
    font-size: 0.85rem;
}

/* Button */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary);
}

.btn-primary:hover {
    background-color: #0b5ed7;
    transform: translateY(-1px);
}

/* Redirect Page (detail.php) */
.redirect-box {
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .card-title {
        font-size: 1rem;
    }
    
    .card-img-top {
        height: 160px !important;
    }
}

/* Utility */
.text-primary {
    color: var(--primary) !important;
}

.shadow-sm {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}