/**
 * SportBiz Style Guide CSS
 * Based on styleguide/claude_styleguide.md
 */

/* ===========================
   Font Smoothing & Base Setup
   =========================== */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===========================
   Responsive Typography with Clamp
   =========================== */
h1, .elementor-widget-heading h1 {
    font-size: clamp(2rem, 5vw, 3rem) !important;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 32px;
}

h2, .elementor-widget-heading h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem) !important;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin-bottom: 24px;
}

/* Exception for markenindex-title - override to 1.2rem */
h2.markenindex-title,
.elementor-widget-heading h2.markenindex-title {
    font-size: 1.2rem !important;
    line-height: 1.3 !important;
}

h3, .elementor-widget-heading h3 {
    font-size: clamp(1.5rem, 3vw, 1.75rem) !important;
    line-height: 1.4;
    margin-bottom: 20px;
}

h4, .elementor-widget-heading h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.375rem) !important;
    line-height: 1.4;
    margin-bottom: 16px;
}

h5, .elementor-widget-heading h5 {
    font-size: clamp(1rem, 2vw, 1.125rem) !important;
    line-height: 1.5;
    margin-bottom: 12px;
}

h6, .elementor-widget-heading h6 {
    font-size: clamp(0.75rem, 1.5vw, 0.875rem) !important;
    line-height: 1.5;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

/* ===========================
   Button Enhancements
   =========================== */
.elementor-button,
.elementor-button-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.elementor-button:hover,
.elementor-button-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(227, 6, 19, 0.2);
}

/* Primary Button */
.elementor-button-primary,
.elementor-button {
    background-color: #E30613;
    color: #FFFFFF;
    padding: 14px 32px;
    border-radius: 6px;
}

.elementor-button-primary:hover,
.elementor-button:hover {
    background-color: #B80510;
}

/* Secondary Button */
.elementor-button-secondary {
    background-color: transparent;
    color: #E30613;
    border: 2px solid #E30613;
    padding: 14px 32px;
    border-radius: 6px;
}

.elementor-button-secondary:hover {
    background-color: #E30613;
    color: #FFFFFF;
}

/* Small Button */
.elementor-button-sm {
    font-size: 14px;
    padding: 10px 24px;
}

/* Large Button (CTA) */
.elementor-button-lg {
    font-size: 18px;
    padding: 18px 40px;
    font-weight: 700;
}

/* ===========================
   Sport-Themed Accent Styles
   =========================== */
.sport-accent {
    position: relative;
    display: inline-block;
}

.sport-accent::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #E30613 0%, #FF2633 100%);
}

/* ===========================
   Form Field Styles
   =========================== */
.elementor-field,
.elementor-field-textual {
    font-size: 16px;
    line-height: 1.5;
    padding: 12px 16px;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
    background: #FFFFFF;
    transition: border-color 0.3s ease;
}

.elementor-field:focus,
.elementor-field-textual:focus {
    border-color: #E30613;
    outline: none;
    box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.1);
}

.elementor-field::placeholder {
    color: #7A7A7A;
}

/* Field Labels */
.elementor-field-label {
    font-size: 14px;
    font-weight: 500;
    color: #2C2C2C;
    margin-bottom: 8px;
    letter-spacing: 0.01em;
}

/* ===========================
   Image Styles
   =========================== */
.elementor-image img {
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.elementor-image:hover img {
    transform: scale(1.05);
}

/* Card Images */
.elementor-card .elementor-image img {
    border-radius: 8px 8px 0 0;
}

/* Thumbnail Images */
.elementor-thumbnail img {
    border-radius: 4px;
}

/* Avatar Images */
.elementor-avatar img {
    border-radius: 50%;
}

/* ===========================
   Blockquotes
   =========================== */
blockquote,
.elementor-blockquote {
    font-size: 20px;
    line-height: 1.6;
    font-weight: 500;
    font-style: italic;
    border-left: 4px solid #E30613;
    padding-left: 24px;
    color: #2C2C2C;
}

/* ===========================
   Sport-Specific Elements
   =========================== */

/* Team/Product Cards */
.sport-card {
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

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

.sport-card .card-header {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 16px;
}

.sport-card .card-price {
    font-size: 28px;
    font-weight: 700;
    color: #E30613;
}

/* Event Listings */
.event-date {
    font-size: 14px;
    text-transform: uppercase;
    color: #E30613;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.event-title {
    font-size: 28px;
    font-weight: 600;
    margin: 12px 0;
}

.event-location {
    color: #7A7A7A;
    font-size: 16px;
}

/* Score/Statistics */
.sport-stats {
    text-align: center;
}

.sport-stats-number {
    font-size: 36px;
    font-weight: 700;
    color: #E30613;
    line-height: 1.2;
}

.sport-stats-label {
    font-size: 12px;
    text-transform: uppercase;
    color: #7A7A7A;
    letter-spacing: 0.08em;
    margin-top: 8px;
}

/* ===========================
   Helper Classes
   =========================== */
.text-primary { color: #E30613 !important; }
.text-secondary { color: #2C2C2C !important; }
.text-accent { color: #1E88E5 !important; }
.text-success { color: #4CAF50 !important; }
.text-warning { color: #FF9800 !important; }
.text-error { color: #F44336 !important; }

.bg-primary { background-color: #E30613 !important; }
.bg-secondary { background-color: #2C2C2C !important; }
.bg-light-grey { background-color: #F5F5F5 !important; }
.bg-white { background-color: #FFFFFF !important; }

/* ===========================
   Animations
   =========================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ===========================
   Responsive Adjustments
   =========================== */
@media (max-width: 768px) {
    /* Mobile padding adjustments */
    .elementor-section {
        padding: 40px 20px;
    }
    
    /* Mobile button adjustments */
    .elementor-button,
    .elementor-button-link {
        padding: 12px 24px;
        font-size: 14px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    /* Tablet adjustments */
    .elementor-section {
        padding: 50px 30px;
    }
}

@media (min-width: 1025px) {
    /* Desktop minimum section padding */
    .elementor-section {
        padding: 60px 40px;
    }
}

/* ===========================
   Accessibility
   =========================== */
a:focus,
button:focus,
.elementor-button:focus {
    outline: 2px solid #1E88E5;
    outline-offset: 2px;
}

/* Skip to content link */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: #E30613;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-to-content:focus {
    top: 0;
}