/* Custom styles for Croatia Cleveland website */

:root {
    --croatia-red: #D32F2F;
    --croatia-blue: #1976D2;
    --croatia-white: #FFFFFF;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Navigation hover effects */
nav a {
    transition: all 0.3s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--croatia-blue);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Button animations */
button {
    transition: all 0.3s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

button:active {
    transform: translateY(0);
}

/* Card hover effects */
.hover-card {
    transition: all 0.3s ease;
}

.hover-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Custom scrollbar for news banner */
#newsBanner::-webkit-scrollbar {
    display: none;
}

/* Loading animation */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Modal backdrop */
.modal-backdrop {
    backdrop-filter: blur(4px);
}

/* Form input focus */
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--croatia-blue);
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

/* Table styles */
table {
    border-collapse: collapse;
    width: 100%;
}

th {
    background-color: var(--croatia-red);
    color: white;
    font-weight: bold;
    text-align: left;
    padding: 12px;
}

td {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
}

tr:hover {
    background-color: #f9fafb;
}

/* Badge styles */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.badge-success {
    background-color: #dcfce7;
    color: #166534;
}

.badge-warning {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

.badge-info {
    background-color: #dbeafe;
    color: #1e40af;
}

/* Croatian flag stripe decoration */
.croatian-stripes {
    background: linear-gradient(
        to bottom,
        var(--croatia-red) 0%,
        var(--croatia-red) 33.33%,
        var(--croatia-white) 33.33%,
        var(--croatia-white) 66.66%,
        var(--croatia-blue) 66.66%,
        var(--croatia-blue) 100%
    );
    height: 6px;
    width: 100%;
}

/* Responsive table */
@media (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
    }
}

/* Print styles */
@media print {
    nav, footer, button {
        display: none;
    }
}
