/**
 * Teev Events - Custom Styles
 * Overrides and extensions to w3.CSS
 */

/* Typography */
body {
    font-family: 'Roboto', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
}

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

/* Custom blue color matching Teev brand */
.w3-blue, .w3-hover-blue:hover {
    background-color: #2196F3 !important;
    color: white !important;
}

.w3-text-blue, .w3-hover-text-blue:hover {
    color: #2196F3 !important;
}

.w3-border-blue {
    border-color: #2196F3 !important;
}

/* Card hover effects */
.w3-card:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

/* Image lazy loading placeholder */
img[data-src] {
    background: #f0f0f0;
}

/* Responsive images */
img {
    max-width: 100%;
    height: auto;
}

/* Navigation active state */
.w3-bar .w3-button.active {
    background-color: #2196F3 !important;
}

/* Mobile menu spacing */
@media (max-width: 992px) {
    .w3-margin-top-small {
        margin-top: 8px;
    }
}

/* Performance cards */
.performance-card {
    border-left: 4px solid #2196F3;
}

/* Talent grid */
.talent-grid-item {
    transition: all 0.3s ease;
}

.talent-grid-item:hover {
    transform: scale(1.05);
}

/* Show images - consistent aspect ratio */
.show-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
}

.talent-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center top;
}

/* Calendar styles */
.calendar-month {
    margin-bottom: 40px;
}

.calendar-day {
    border-left: 3px solid #2196F3;
    padding-left: 20px;
    margin-bottom: 20px;
}

/* Hero section animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

/* Button styles */
.btn-primary {
    background-color: #2196F3;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #1976D2;
}

/* Footer links */
footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

/* Loading spinner */
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2196F3;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Truncate text */
.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.truncate-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.truncate-3 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Hebrew/RTL support */
.rtl {
    direction: rtl;
    text-align: right;
}

.ltr {
    direction: ltr;
    text-align: left;
}

/* Video embed responsive */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Photo gallery grid */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.photo-grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.photo-grid-item img {
    transition: transform 0.3s ease;
}

.photo-grid-item:hover img {
    transform: scale(1.1);
}

/* Social media icons */
.social-icon {
    font-size: 24px;
    margin: 0 10px;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.2);
}

/* Print styles */
@media print {
    .w3-bar, footer, .no-print {
        display: none !important;
    }
}
