/* =====================================================
   ASI Cabo Verde - Custom Theme Styles
   Tailwind is loaded via CDN in functions.php
   This file handles custom configs + overrides
   ===================================================== */

:root {
    --asi-blue-dark: #001A4A;
    --asi-red: #E30613;
    --asi-blue-light: #f0f4ff;
}

/* Dropdown navigation */
.dropdown:hover .dropdown-menu {
    display: block !important;
}

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

/* Sticky header */
header.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
}

/* Smooth transitions */
*, *::before, *::after {
    transition-property: color, background-color, border-color, transform, box-shadow;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 200ms;
}

/* Image hover zoom utility */
.img-zoom {
    overflow: hidden;
}
.img-zoom img {
    transition: transform 0.7s ease;
}
.img-zoom:hover img {
    transform: scale(1.1);
}

/* Animated card hover */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 26, 74, 0.15);
}

/* Hero section */
.hero-section {
    background-color: var(--asi-blue-dark);
}

/* Post thumbnail placeholders */
.post-thumbnail-placeholder {
    background: linear-gradient(135deg, var(--asi-blue-light), #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--asi-blue-dark);
    font-weight: bold;
    font-size: 2rem;
}

/* WordPress pagination */
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    border: 2px solid #e5e7eb;
    color: var(--asi-blue-dark);
    font-weight: 600;
    text-decoration: none;
    margin: 0 0.25rem;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background-color: var(--asi-red);
    border-color: var(--asi-red);
    color: white;
}

/* WordPress admin bar compensation */
.admin-bar header.site-header {
    top: 32px;
}

/* Event badge colors by category */
.badge-workshop  { background: #dbeafe; color: #1e40af; }
.badge-palestra  { background: #dcfce7; color: #166534; }
.badge-formacao  { background: #fef9c3; color: #854d0e; }
.badge-evento    { background: #f3e8ff; color: #6b21a8; }

/* Responsive tweaks */
@media (max-width: 768px) {
    .hero-section h1 { font-size: 2rem !important; }
    .dropdown-menu { position: static !important; box-shadow: none !important; }
}
