/* FlarBox Homepage Plugin Styles */
/* Version 2.0 - Fully Responsive */

:root {
    --primary-color: #ED1C24;
    --secondary-color: #B80006;
    --accent-color: #ED1C24;
    --heading-color: #1E293B;
    --text-color: #67768E;
    --dark-bg: #111111;
    --light-bg: #F9F6FE;
    --white-bg: #FFFFFF;
    --border-color: #E2E2E2;
    --gradient-1: linear-gradient(135deg, #ED1C24 0%, #B80006 100%);
    --gradient-2: linear-gradient(135deg, #1E293B 0%, #67768E 100%);
}

.flarbox-homepage-wrapper * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.flarbox-homepage-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--light-bg);
    color: var(--text-color);
    overflow-x: hidden;
    font-size: 16px;
    line-height: 1.5;
}

.flarbox-homepage-wrapper .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

/* Breaking News Ticker */
.flarbox-homepage-wrapper .breaking-news {
    background: var(--gradient-1);
    padding: 10px 0;
    overflow: hidden;
    position: relative;
    animation: slideDown 0.5s ease-out;
}

.flarbox-homepage-wrapper .breaking-news-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.flarbox-homepage-wrapper .breaking-label {
    background: white;
    color: var(--primary-color);
    padding: 6px 12px;
    font-weight: bold;
    border-radius: 4px;
    white-space: nowrap;
    animation: pulse 2s infinite;
    font-size: 12px;
    flex-shrink: 0;
}

.flarbox-homepage-wrapper .news-ticker {
    overflow: hidden;
    flex: 1;
    min-width: 0;
}

.flarbox-homepage-wrapper .ticker-content {
    display: flex;
    gap: 40px;
    animation: scroll 30s linear infinite;
    color: white;
}

.flarbox-homepage-wrapper .ticker-item {
    white-space: nowrap;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.flarbox-homepage-wrapper .ticker-icon {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #FFD700;
    border-radius: 50%;
    flex-shrink: 0;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Hero Section */
.flarbox-homepage-wrapper .hero-section {
    position: relative;
    height: 400px;
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.flarbox-homepage-wrapper .hero-slider {
    position: relative;
    height: 100%;
}

.flarbox-homepage-wrapper .hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.flarbox-homepage-wrapper .hero-slide.active {
    opacity: 1;
}

.flarbox-homepage-wrapper .hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flarbox-homepage-wrapper .hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(17,17,17,0.95) 0%, rgba(17,17,17,0.7) 50%, transparent 100%);
    padding: 25px 20px;
    transform: translateY(20px);
    opacity: 0;
    animation: slideUp 0.8s ease-out 0.3s forwards;
}

.flarbox-homepage-wrapper .hero-category {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.flarbox-homepage-wrapper .hero-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.3;
    color: white;
}

.flarbox-homepage-wrapper .hero-title a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.flarbox-homepage-wrapper .hero-title a:hover {
    color: var(--primary-color);
}

.flarbox-homepage-wrapper .hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    opacity: 0.9;
    color: white;
}

.flarbox-homepage-wrapper .hero-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Meta Icons */
.flarbox-homepage-wrapper .meta-icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.8;
}

.flarbox-homepage-wrapper .date-icon::before { content: "📅"; font-size: 12px; }
.flarbox-homepage-wrapper .author-icon::before { content: "✍️"; font-size: 12px; }
.flarbox-homepage-wrapper .time-icon::before { content: "⏱️"; font-size: 12px; }

/* Section Icons */
.flarbox-homepage-wrapper .section-icon {
    margin-right: 8px;
}

.flarbox-homepage-wrapper .trending-icon::before { content: "🔥"; }
.flarbox-homepage-wrapper .soccer-icon::before { content: "⚽"; }
.flarbox-homepage-wrapper .star-icon::before { content: "⭐"; }
.flarbox-homepage-wrapper .video-icon::before { content: "🎥"; }
.flarbox-homepage-wrapper .folder-icon::before { content: "📂"; }
.flarbox-homepage-wrapper .stats-icon::before { content: "📊"; }
.flarbox-homepage-wrapper .newsletter-icon::before { content: "⚽"; }

@keyframes fadeInUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideUp {
    to { transform: translateY(0); opacity: 1; }
}

/* Section Headers */
.flarbox-homepage-wrapper .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    animation: fadeIn 0.6s ease-out;
    flex-wrap: wrap;
    gap: 10px;
}

.flarbox-homepage-wrapper .section-title {
    font-size: 1.25rem;
    font-weight: bold;
    position: relative;
    color: var(--heading-color);
    display: flex;
    align-items: center;
}

.flarbox-homepage-wrapper .view-all-btn {
    background: var(--gradient-1);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
}

.flarbox-homepage-wrapper .view-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(237, 28, 36, 0.3);
}

/* Trending Articles Grid */
.flarbox-homepage-wrapper .trending-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.flarbox-homepage-wrapper .article-card {
    background: var(--white-bg);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    animation: fadeInScale 0.6s ease-out;
    animation-fill-mode: both;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.flarbox-homepage-wrapper .article-card:nth-child(1) { animation-delay: 0.05s; }
.flarbox-homepage-wrapper .article-card:nth-child(2) { animation-delay: 0.1s; }
.flarbox-homepage-wrapper .article-card:nth-child(3) { animation-delay: 0.15s; }
.flarbox-homepage-wrapper .article-card:nth-child(4) { animation-delay: 0.2s; }
.flarbox-homepage-wrapper .article-card:nth-child(5) { animation-delay: 0.25s; }
.flarbox-homepage-wrapper .article-card:nth-child(6) { animation-delay: 0.3s; }

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.flarbox-homepage-wrapper .article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(237, 28, 36, 0.15);
}

.flarbox-homepage-wrapper .article-card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.flarbox-homepage-wrapper .article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.flarbox-homepage-wrapper .article-card:hover .article-card-image img {
    transform: scale(1.05);
}

/* Article Card without image */
.flarbox-homepage-wrapper .article-card.no-image {
    display: flex;
    flex-direction: column;
}

.flarbox-homepage-wrapper .article-card.no-image .article-content {
    flex: 1;
}

.flarbox-homepage-wrapper .article-category-only {
    padding: 15px 15px 0;
}

.flarbox-homepage-wrapper .article-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
}

.flarbox-homepage-wrapper .article-category-only .article-badge {
    position: static;
    display: inline-block;
}

.flarbox-homepage-wrapper .article-content {
    padding: 15px;
}

.flarbox-homepage-wrapper .article-title {
    font-size: 1rem;
    margin-bottom: 8px;
    line-height: 1.4;
    transition: color 0.3s;
    color: var(--heading-color);
}

.flarbox-homepage-wrapper .article-title a {
    color: var(--heading-color);
    text-decoration: none;
}

.flarbox-homepage-wrapper .article-card:hover .article-title a {
    color: var(--primary-color);
}

.flarbox-homepage-wrapper .article-excerpt {
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.8;
    margin-bottom: 10px;
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.flarbox-homepage-wrapper .article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    opacity: 0.6;
    color: var(--text-color);
}

.flarbox-homepage-wrapper .article-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Match Results Section */
.flarbox-homepage-wrapper .match-results {
    background: var(--white-bg);
    border-radius: 12px;
    padding: 20px;
    margin: 30px 0;
    animation: fadeIn 0.8s ease-out;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.flarbox-homepage-wrapper .match-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--light-bg);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    transition: all 0.3s;
    border: 2px solid transparent;
    gap: 10px;
    text-align: center;
}

.flarbox-homepage-wrapper .match-card:last-child {
    margin-bottom: 0;
}

.flarbox-homepage-wrapper .match-card:hover {
    border-color: var(--primary-color);
}

.flarbox-homepage-wrapper .team {
    display: flex;
    align-items: center;
    gap: 10px;
}

.flarbox-homepage-wrapper .team-logo {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    color: white;
    flex-shrink: 0;
}

.flarbox-homepage-wrapper .team-name {
    color: var(--heading-color);
    font-weight: 600;
    font-size: 14px;
}

.flarbox-homepage-wrapper .match-score {
    font-size: 1.5rem;
    font-weight: bold;
    padding: 5px 15px;
    color: var(--primary-color);
}

.flarbox-homepage-wrapper .match-status {
    background: var(--secondary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Player Spotlight */
.flarbox-homepage-wrapper .player-spotlight {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin: 30px 0;
    background: var(--gradient-2);
    border-radius: 12px;
    padding: 25px;
    animation: fadeIn 1s ease-out;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.flarbox-homepage-wrapper .player-image-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    min-height: 250px;
}

.flarbox-homepage-wrapper .player-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.flarbox-homepage-wrapper .player-spotlight:hover .player-image-container img {
    transform: scale(1.03);
}

.flarbox-homepage-wrapper .player-stats {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.flarbox-homepage-wrapper .player-name {
    font-size: 1.75rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: white;
}

.flarbox-homepage-wrapper .player-position {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 20px;
    color: white;
}

.flarbox-homepage-wrapper .stat-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.flarbox-homepage-wrapper .stat-label {
    font-size: 14px;
    opacity: 0.9;
    color: white;
}

.flarbox-homepage-wrapper .stat-value {
    font-size: 1.25rem;
    font-weight: bold;
    color: white;
}

/* Video Highlights */
.flarbox-homepage-wrapper .video-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 30px 0;
}

.flarbox-homepage-wrapper .video-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    animation: fadeInUp 0.6s ease-out;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.flarbox-homepage-wrapper .video-card.no-image .video-title {
    padding: 20px;
}

.flarbox-homepage-wrapper .video-thumbnail {
    position: relative;
    height: 200px;
}

.flarbox-homepage-wrapper .video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.flarbox-homepage-wrapper .video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.flarbox-homepage-wrapper .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(237, 28, 36, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.flarbox-homepage-wrapper .play-button::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 18px solid white;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    margin-left: 4px;
}

.flarbox-homepage-wrapper .video-card:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
}

.flarbox-homepage-wrapper .video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.8);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    color: white;
}

.flarbox-homepage-wrapper .video-title {
    padding: 15px;
    background: var(--white-bg);
    font-size: 15px;
    font-weight: bold;
    color: var(--heading-color);
}

.flarbox-homepage-wrapper .video-title.no-thumbnail {
    background: var(--light-bg);
    border-left: 4px solid var(--primary-color);
}

.flarbox-homepage-wrapper .video-title a {
    color: var(--heading-color);
    text-decoration: none;
}

.flarbox-homepage-wrapper .video-title a:hover {
    color: var(--primary-color);
}

/* Category Tabs */
.flarbox-homepage-wrapper .category-section {
    margin: 30px 0;
}

.flarbox-homepage-wrapper .category-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    overflow-x: auto;
    padding-bottom: 5px;
    -webkit-overflow-scrolling: touch;
}

.flarbox-homepage-wrapper .tab-btn {
    background: var(--white-bg);
    color: var(--heading-color);
    border: 2px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.flarbox-homepage-wrapper .tab-btn:hover,
.flarbox-homepage-wrapper .tab-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.flarbox-homepage-wrapper .tab-content {
    display: block;
    animation: fadeIn 0.5s;
}

/* Statistics Section */
.flarbox-homepage-wrapper .stats-section {
    background: var(--white-bg);
    border-radius: 12px;
    padding: 25px 20px;
    margin: 30px 0;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
}

.flarbox-homepage-wrapper .stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.flarbox-homepage-wrapper .stat-box {
    text-align: center;
    padding: 20px 15px;
    background: var(--light-bg);
    border-radius: 10px;
    transition: all 0.3s;
    cursor: pointer;
}

.flarbox-homepage-wrapper .stat-box:hover {
    transform: translateY(-3px);
    background: var(--gradient-1);
}

.flarbox-homepage-wrapper .stat-box:hover .stat-number,
.flarbox-homepage-wrapper .stat-box:hover .stat-description {
    color: white;
}

.flarbox-homepage-wrapper .stat-number {
    font-size: 1.75rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 5px;
    line-height: 1;
}

.flarbox-homepage-wrapper .stat-description {
    font-size: 12px;
    opacity: 0.8;
    color: var(--heading-color);
}

/* Newsletter Section */
.flarbox-homepage-wrapper .newsletter-section {
    background: var(--gradient-1);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    margin: 30px 0;
    animation: fadeIn 0.8s;
    box-shadow: 0 8px 30px rgba(237, 28, 36, 0.3);
}

.flarbox-homepage-wrapper .newsletter-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.flarbox-homepage-wrapper .newsletter-subtitle {
    font-size: 14px;
    opacity: 0.95;
    margin-bottom: 20px;
    color: white;
    line-height: 1.5;
}

.flarbox-homepage-wrapper .newsletter-form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: 0 auto;
    gap: 12px;
}

.flarbox-homepage-wrapper .newsletter-input {
    flex: 1;
    padding: 14px 18px;
    border: none;
    border-radius: 25px;
    font-size: 15px;
    outline: none;
    width: 100%;
}

.flarbox-homepage-wrapper .newsletter-btn {
    background: var(--heading-color);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 25px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.flarbox-homepage-wrapper .newsletter-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(30, 41, 59, 0.4);
}

.flarbox-homepage-wrapper .newsletter-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.flarbox-homepage-wrapper .newsletter-message {
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 14px;
    margin-top: 10px;
}

.flarbox-homepage-wrapper .newsletter-message.success {
    background: rgba(255,255,255,0.2);
    color: white;
}

.flarbox-homepage-wrapper .newsletter-message.error {
    background: rgba(0,0,0,0.2);
    color: #FFD700;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Loading Spinner */
.flarbox-homepage-wrapper .loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(237, 28, 36, 0.3);
    border-radius: 50%;
    border-top-color: #ED1C24;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.flarbox-homepage-wrapper .loading-container {
    text-align: center;
    padding: 40px;
}

/* Scroll Animations */
.flarbox-homepage-wrapper .animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.flarbox-homepage-wrapper .animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   RESPONSIVE BREAKPOINTS
   ========================================== */

/* Small tablets and large phones (576px and up) */
@media (min-width: 576px) {
    .flarbox-homepage-wrapper .container {
        padding: 0 20px;
    }
    
    .flarbox-homepage-wrapper .hero-section {
        height: 450px;
    }
    
    .flarbox-homepage-wrapper .hero-title {
        font-size: 1.5rem;
    }
    
    .flarbox-homepage-wrapper .hero-overlay {
        padding: 30px;
    }
    
    .flarbox-homepage-wrapper .trending-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .flarbox-homepage-wrapper .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .flarbox-homepage-wrapper .newsletter-form {
        flex-direction: row;
    }
    
    .flarbox-homepage-wrapper .newsletter-btn {
        width: auto;
    }
    
    .flarbox-homepage-wrapper .match-card {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* Tablets (768px and up) */
@media (min-width: 768px) {
    .flarbox-homepage-wrapper {
        font-size: 16px;
    }
    
    .flarbox-homepage-wrapper .container {
        padding: 0 30px;
    }
    
    .flarbox-homepage-wrapper .hero-section {
        height: 500px;
        margin: 25px 0;
    }
    
    .flarbox-homepage-wrapper .hero-title {
        font-size: 1.75rem;
    }
    
    .flarbox-homepage-wrapper .hero-overlay {
        padding: 40px;
    }
    
    .flarbox-homepage-wrapper .hero-category {
        padding: 6px 16px;
        font-size: 12px;
    }
    
    .flarbox-homepage-wrapper .section-header {
        margin: 40px 0 25px;
    }
    
    .flarbox-homepage-wrapper .section-title {
        font-size: 1.5rem;
    }
    
    .flarbox-homepage-wrapper .trending-grid {
        gap: 25px;
    }
    
    .flarbox-homepage-wrapper .article-card-image {
        height: 200px;
    }
    
    .flarbox-homepage-wrapper .article-title {
        font-size: 1.1rem;
    }
    
    .flarbox-homepage-wrapper .player-spotlight {
        flex-direction: row;
        padding: 35px;
    }
    
    .flarbox-homepage-wrapper .player-image-container {
        flex: 1;
        min-height: 300px;
    }
    
    .flarbox-homepage-wrapper .player-stats {
        flex: 1;
    }
    
    .flarbox-homepage-wrapper .player-name {
        font-size: 2rem;
    }
    
    .flarbox-homepage-wrapper .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
    
    .flarbox-homepage-wrapper .stat-number {
        font-size: 2rem;
    }
    
    .flarbox-homepage-wrapper .newsletter-section {
        padding: 40px 30px;
    }
    
    .flarbox-homepage-wrapper .newsletter-title {
        font-size: 1.75rem;
    }
    
    .flarbox-homepage-wrapper .newsletter-subtitle {
        font-size: 15px;
    }
}

/* Laptops and Desktops (992px and up) */
@media (min-width: 992px) {
    .flarbox-homepage-wrapper .container {
        padding: 0 40px;
    }
    
    .flarbox-homepage-wrapper .hero-section {
        height: 550px;
        margin: 30px 0;
        border-radius: 16px;
    }
    
    .flarbox-homepage-wrapper .hero-title {
        font-size: 2rem;
    }
    
    .flarbox-homepage-wrapper .hero-overlay {
        padding: 50px;
    }
    
    .flarbox-homepage-wrapper .trending-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
    
    .flarbox-homepage-wrapper .video-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
    
    .flarbox-homepage-wrapper .section-title {
        font-size: 1.75rem;
    }
    
    .flarbox-homepage-wrapper .view-all-btn {
        padding: 10px 25px;
        font-size: 14px;
    }
    
    .flarbox-homepage-wrapper .match-results {
        padding: 30px;
    }
    
    .flarbox-homepage-wrapper .match-score {
        font-size: 2rem;
    }
    
    .flarbox-homepage-wrapper .player-spotlight {
        padding: 45px;
        gap: 40px;
    }
    
    .flarbox-homepage-wrapper .player-name {
        font-size: 2.5rem;
    }
    
    .flarbox-homepage-wrapper .stat-value {
        font-size: 1.5rem;
    }
    
    .flarbox-homepage-wrapper .newsletter-section {
        padding: 50px 40px;
    }
    
    .flarbox-homepage-wrapper .newsletter-title {
        font-size: 2rem;
    }
}

/* Large Desktops (1200px and up) */
@media (min-width: 1200px) {
    .flarbox-homepage-wrapper .hero-section {
        height: 600px;
    }
    
    .flarbox-homepage-wrapper .hero-title {
        font-size: 2.5rem;
    }
    
    .flarbox-homepage-wrapper .trending-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .flarbox-homepage-wrapper .section-header {
        margin: 50px 0 30px;
    }
    
    .flarbox-homepage-wrapper .section-title {
        font-size: 2rem;
    }
    
    .flarbox-homepage-wrapper .article-title {
        font-size: 1.15rem;
    }
    
    .flarbox-homepage-wrapper .stat-number {
        font-size: 2.5rem;
    }
    
    .flarbox-homepage-wrapper .stat-description {
        font-size: 14px;
    }
    
    .flarbox-homepage-wrapper .newsletter-title {
        font-size: 2.25rem;
    }
}

/* Extra small devices - ensures nothing breaks on very small screens */
@media (max-width: 360px) {
    .flarbox-homepage-wrapper .container {
        padding: 0 10px;
    }
    
    .flarbox-homepage-wrapper .breaking-label {
        padding: 4px 8px;
        font-size: 10px;
    }
    
    .flarbox-homepage-wrapper .hero-section {
        height: 300px;
    }
    
    .flarbox-homepage-wrapper .hero-title {
        font-size: 1.1rem;
    }
    
    .flarbox-homepage-wrapper .hero-overlay {
        padding: 15px;
    }
    
    .flarbox-homepage-wrapper .section-title {
        font-size: 1.1rem;
    }
    
    .flarbox-homepage-wrapper .view-all-btn {
        padding: 6px 14px;
        font-size: 12px;
    }
    
    .flarbox-homepage-wrapper .tab-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .flarbox-homepage-wrapper .newsletter-title {
        font-size: 1.25rem;
    }
    
    .flarbox-homepage-wrapper .newsletter-subtitle {
        font-size: 13px;
    }
    
    .flarbox-homepage-wrapper .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .flarbox-homepage-wrapper .stat-number {
        font-size: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .flarbox-homepage-wrapper .breaking-news,
    .flarbox-homepage-wrapper .newsletter-section {
        display: none;
    }
    
    .flarbox-homepage-wrapper .article-card,
    .flarbox-homepage-wrapper .video-card {
        break-inside: avoid;
    }
}

/* ========================================
   UNSUBSCRIBE SHORTCODE STYLES
======================================== */
.flarbox-unsubscribe-wrapper,
.flarbox-account-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    max-width: 600px;
    margin: 30px auto;
    padding: 0 15px;
}

.flarbox-unsubscribe-card,
.flarbox-account-login {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 40px;
    text-align: center;
}

.flarbox-unsubscribe-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ED1C24 0%, #B80006 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.flarbox-unsubscribe-icon .dashicons {
    font-size: 36px;
    width: 36px;
    height: 36px;
    color: #fff;
}

.flarbox-unsubscribe-icon.flarbox-icon-sad {
    background: #999;
}

.flarbox-unsubscribe-icon.flarbox-icon-happy {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

.flarbox-unsubscribe-icon.flarbox-icon-inactive {
    background: #f0f0f0;
}

.flarbox-unsubscribe-icon.flarbox-icon-inactive .dashicons {
    color: #999;
}

.flarbox-login-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.flarbox-login-icon .dashicons {
    font-size: 36px;
    width: 36px;
    height: 36px;
    color: #999;
}

.flarbox-unsubscribe-card h3,
.flarbox-account-login h3 {
    font-size: 24px;
    color: #1E293B;
    margin: 0 0 15px;
}

.flarbox-unsubscribe-card p {
    color: #67768E;
    margin: 0 0 10px;
    font-size: 16px;
}

.flarbox-status-text,
.flarbox-email-text {
    font-size: 15px !important;
}

.flarbox-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.flarbox-badge-active {
    background: #d4edda;
    color: #155724;
}

.flarbox-badge-inactive {
    background: #f8d7da;
    color: #721c24;
}

.flarbox-persuade-box {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

.flarbox-persuade-box h4 {
    font-size: 18px;
    color: #1E293B;
    margin: 0 0 15px;
}

.flarbox-benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.flarbox-benefits-list li {
    padding: 8px 0 8px 30px;
    position: relative;
    color: #67768E;
}

.flarbox-benefits-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.flarbox-farewell-box {
    background: #fff3cd;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

.flarbox-farewell-box p {
    color: #856404;
    margin: 0;
}

.flarbox-unsubscribe-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* Buttons */
.flarbox-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.flarbox-btn-primary {
    background: linear-gradient(135deg, #ED1C24 0%, #B80006 100%);
    color: #fff;
}

.flarbox-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(237, 28, 36, 0.4);
}

.flarbox-btn-secondary {
    background: #f0f0f0;
    color: #1E293B;
}

.flarbox-btn-secondary:hover {
    background: #e0e0e0;
}

.flarbox-btn-danger {
    background: #dc3545;
    color: #fff;
}

.flarbox-btn-danger:hover {
    background: #c82333;
}

.flarbox-btn-small {
    padding: 6px 12px;
    font-size: 13px;
}

.flarbox-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Forms */
.flarbox-form-group {
    margin-bottom: 20px;
    text-align: left;
}

.flarbox-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1E293B;
    font-size: 14px;
}

.flarbox-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E2E2E2;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s ease;
}

.flarbox-input:focus {
    outline: none;
    border-color: #ED1C24;
}

/* Messages */
.flarbox-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 14px;
}

.flarbox-message-success {
    background: #d4edda;
    color: #155724;
}

.flarbox-message-error {
    background: #f8d7da;
    color: #721c24;
}

/* ========================================
   MY ACCOUNT SHORTCODE STYLES
======================================== */
.flarbox-account-wrapper {
    max-width: 800px;
}

.flarbox-account-tabs {
    display: flex;
    gap: 5px;
    background: #f0f0f0;
    padding: 5px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.flarbox-tab-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #67768E;
    cursor: pointer;
    transition: all 0.3s ease;
}

.flarbox-tab-btn:hover {
    color: #1E293B;
}

.flarbox-tab-btn.active {
    background: #fff;
    color: #ED1C24;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.flarbox-tab-content {
    display: none;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 30px;
}

.flarbox-tab-content.active {
    display: block;
}

/* Profile Tab */
.flarbox-profile-header {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.flarbox-avatar-wrapper {
    position: relative;
}

.flarbox-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #f0f0f0;
}

.flarbox-avatar-edit {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ED1C24 0%, #B80006 100%);
    border: 3px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.flarbox-avatar-edit .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #fff;
}

.flarbox-profile-info {
    text-align: left;
}

.flarbox-profile-name {
    font-size: 24px;
    color: #1E293B;
    margin: 0 0 5px;
}

.flarbox-profile-email {
    font-size: 15px;
    color: #67768E;
    margin: 0 0 5px;
}

.flarbox-profile-role {
    display: inline-block;
    padding: 4px 12px;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 12px;
    color: #67768E;
    text-transform: uppercase;
    margin: 0;
}

/* My Posts */
.flarbox-my-posts h3 {
    font-size: 18px;
    color: #1E293B;
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ED1C24;
}

.flarbox-posts-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.flarbox-post-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    align-items: center;
}

.flarbox-post-thumb {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
}

.flarbox-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flarbox-post-info {
    flex: 1;
    text-align: left;
}

.flarbox-post-info h4 {
    font-size: 15px;
    margin: 0 0 5px;
    color: #1E293B;
}

.flarbox-post-info h4 a {
    color: inherit;
    text-decoration: none;
}

.flarbox-post-info h4 a:hover {
    color: #ED1C24;
}

.flarbox-post-date {
    font-size: 13px;
    color: #67768E;
}

.flarbox-no-content {
    color: #999;
    text-align: center;
    padding: 30px;
}

/* Settings Tab */
.flarbox-settings-section h3 {
    font-size: 18px;
    color: #1E293B;
    margin: 0 0 20px;
}

.flarbox-settings-form {
    max-width: 400px;
}

.flarbox-divider {
    border: none;
    border-top: 1px solid #E2E2E2;
    margin: 30px 0;
}

.flarbox-forgot-password {
    margin-top: 15px;
}

.flarbox-forgot-password a {
    color: #ED1C24;
    text-decoration: none;
}

.flarbox-forgot-password a:hover {
    text-decoration: underline;
}

/* Comments Tab */
.flarbox-comments-section h3 {
    font-size: 18px;
    color: #1E293B;
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ED1C24;
}

.flarbox-comments-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.flarbox-comment-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.flarbox-comment-content {
    flex: 1;
    min-width: 200px;
    text-align: left;
}

.flarbox-comment-text {
    font-size: 14px;
    color: #1E293B;
    margin: 0 0 8px;
    line-height: 1.5;
}

.flarbox-comment-meta {
    font-size: 13px;
    color: #67768E;
}

.flarbox-comment-meta a {
    color: #ED1C24;
    text-decoration: none;
}

.flarbox-comment-meta a:hover {
    text-decoration: underline;
}

.flarbox-comment-actions {
    display: flex;
    gap: 10px;
}

/* Responsive for new shortcodes */
@media (max-width: 576px) {
    .flarbox-unsubscribe-card,
    .flarbox-account-login {
        padding: 25px 20px;
    }
    
    .flarbox-unsubscribe-card h3,
    .flarbox-account-login h3 {
        font-size: 20px;
    }
    
    .flarbox-unsubscribe-actions {
        flex-direction: column;
    }
    
    .flarbox-unsubscribe-actions .flarbox-btn {
        width: 100%;
    }
    
    .flarbox-account-tabs {
        flex-direction: column;
    }
    
    .flarbox-profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .flarbox-profile-info {
        text-align: center;
    }
    
    .flarbox-tab-content {
        padding: 20px 15px;
    }
    
    .flarbox-post-item,
    .flarbox-comment-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .flarbox-post-thumb {
        width: 100%;
        height: 150px;
    }
    
    .flarbox-comment-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

/* ========================================
   NEWSLETTER SUBSCRIBED VIEW
======================================== */
.newsletter-subscribed {
    text-align: center;
    padding: 20px 0;
}

.newsletter-subscribed-icon {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    border: 3px solid rgba(255, 255, 255, 0.4);
}

.newsletter-subscribed-icon .dashicons,
.newsletter-subscribed-icon .dashicons::before {
    font-size: 50px !important;
    width: 50px !important;
    height: 50px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    line-height: 1 !important;
}

.newsletter-badge-active {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #28a745;
    color: #fff;
    border-radius: 25px;
    font-weight: 600;
    font-size: 15px;
}

.newsletter-badge-active .dashicons,
.newsletter-badge-active .dashicons::before {
    font-size: 18px !important;
    width: 18px !important;
    height: 18px !important;
    color: #fff !important;
}

/* ========================================
   POPUP STYLES
======================================== */
.flarbox-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.flarbox-popup-overlay.flarbox-popup-visible {
    display: flex !important;
}

.flarbox-popup-content {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: flarbox-popup-in 0.3s ease;
}

@keyframes flarbox-popup-in {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.flarbox-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.flarbox-popup-close:hover {
    background: #e0e0e0;
}

.flarbox-popup-close .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: #67768E;
}

.flarbox-unsubscribe-popup-content {
    text-align: center;
}

.flarbox-popup-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ED1C24 0%, #B80006 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.flarbox-popup-icon .dashicons {
    font-size: 36px;
    width: 36px;
    height: 36px;
    color: #fff;
}

.flarbox-popup-icon.flarbox-icon-sad {
    background: #999;
}

.flarbox-unsubscribe-popup-content h3 {
    font-size: 24px;
    color: #1E293B;
    margin: 0 0 10px;
}

.flarbox-unsubscribe-popup-content p {
    color: #67768E;
    margin: 0 0 15px;
    font-size: 16px;
}

.flarbox-popup-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* Newsletter Status in Settings */
.flarbox-newsletter-status {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 10px;
}

.flarbox-newsletter-status p {
    margin: 0 0 10px;
    color: #67768E;
}

.flarbox-newsletter-status .flarbox-btn {
    margin-top: 10px;
}

.flarbox-newsletter-status .flarbox-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 5px;
}

/* Responsive for popup */
@media (max-width: 576px) {
    .flarbox-popup-content {
        padding: 25px 20px;
        margin: 10px;
    }
    
    .flarbox-popup-actions {
        flex-direction: column;
    }
    
    .flarbox-popup-actions .flarbox-btn {
        width: 100%;
    }
}
