/* FightPulse Homepage Styles */

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Main Articles Section */
.main-articles-section {
    padding: 40px 0;
}

.featured-article {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: auto;
}

.article-image-container {
    position: relative;
    overflow: hidden;
}

.article-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-category {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgb(135, 0, 27);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.article-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-title {
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    margin-bottom: 20px !important;
    color: #1a1a1a !important;
}

.article-excerpt {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.article-meta {
    display: flex !important;
    margin-bottom: 20px;
    font-size: 14px;
    color: #999;
    font-weight: 500;
}

.article-date {
    color: #999;
    font-size: 14px;
}

.article-date::before {
    content: '•';
    margin-right: 8px;
    margin-left: 16px;
    color: #999;
}

.article-author {
    color: rgb(135, 0, 27);
    font-weight: 600;
    font-size: 14px;
}

.article-byline {
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: center;
    margin-bottom: 24px;
    font-size: 14px;
}

.read-more-btn {
    background: rgb(135, 0, 27);
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
    margin-left: 24px;
}

.read-more-btn:hover {
    background: rgb(105, 0, 20);
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.primary-column {
    display: block;
    gap: 0;
}

.article-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-card .article-content {
    padding: 20px;
}

.article-card .article-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.article-card .article-excerpt {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* Secondary Column */
.secondary-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.secondary-article {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.secondary-article .article-title {
    font-size: 1rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.secondary-article .article-excerpt {
    font-size: 0.85rem;
    margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
        width: 100%;
        overflow-x: hidden;
    }

    .featured-article {
        grid-template-columns: 1fr;
        min-height: auto;
        margin-bottom: 12px;
        border-radius: 8px;
    }

    .article-image-container {
        min-height: 220px;
        max-height: 280px;
    }

    .article-title {
        font-size: 1.2rem;
        line-height: 1.2;
        margin-bottom: 12px;
    }

    .article-excerpt {
        font-size: 0.95rem;
        margin-bottom: 16px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .article-content {
        padding: 16px;
    }

    .article-byline {
        display: flex !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        align-items: center !important;
        gap: 6px !important;
        font-size: 12px !important;
    }

    .article-author {
        font-size: 12px !important;
    }

    .article-date {
        font-size: 12px !important;
    }

    .article-category {
        top: 12px !important;
        left: 12px !important;
        padding: 6px 12px !important;
        font-size: 12px !important;
    }

    /* Global h1 size for tablets */
    h1 {
        font-size: 1.5rem !important;
        line-height: 1.2 !important;
    }

    /* Prevent horizontal overflow */
    * {
        max-width: 100%;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
        width: 100%;
        overflow-x: hidden;
    }

    .main-articles-section {
        padding: 20px 0;
    }

    .featured-article {
        margin-bottom: 10px;
        border-radius: 6px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }

    .article-image-container {
        min-height: 180px;
        max-height: 220px;
    }

    .article-title {
        font-size: 1rem;
        line-height: 1.3;
        margin-bottom: 10px;
    }

    .article-excerpt {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }

    .article-content {
        padding: 12px;
    }

    .article-byline {
        display: flex !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        align-items: center !important;
        gap: 4px !important;
        font-size: 11px !important;
    }

    .article-author {
        font-size: 11px !important;
    }

    .article-date {
        font-size: 11px !important;
    }

    .article-category {
        top: 10px !important;
        left: 10px !important;
        padding: 5px 10px !important;
        font-size: 11px !important;
    }

    /* Global h1 size for small mobile */
    h1 {
        font-size: 1.2rem !important;
        line-height: 1.2 !important;
    }

    /* Prevent overflow */
    body, html {
        overflow-x: hidden;
    }

    * {
        max-width: 100%;
    }
}

/* Header Styles */
.site-header {
    background: rgb(135, 0, 27);
    color: white;
    padding: 20px 0;
}

.site-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Video Embed Styles - Large Responsive Videos */
.video-embed {
    position: relative !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 50px auto !important;
    padding-bottom: 56.25% !important; /* 16:9 aspect ratio */
    height: 0 !important;
    overflow: hidden !important;
    border-radius: 15px !important;
    box-shadow: 0 15px 50px rgba(0,0,0,0.3) !important;
    background: #000 !important;
}

.video-embed iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: none !important;
    border-radius: 12px !important;
    min-height: 500px !important;
}

/* Video embed responsive adjustments */
@media (max-width: 768px) {
    .video-embed {
        max-width: 100%;
        margin: 20px auto;
        border-radius: 6px;
    }
}

@media (max-width: 480px) {
    .video-embed {
        margin: 15px auto;
        border-radius: 4px;
    }
}

/* Footer */
.site-footer {
    background: #1a1a1a;
    color: white;
    padding: 40px 0;
    margin-top: 60px;
}