/* Modern Theme CSS for EasySportStream */
/* Colors: Primary #00BE6F, Secondary #4DEA89 */

/* Base Typography */
body {
    font-family: 'Roboto', sans-serif;
    font-size: 20px;
    line-height: 1.6;
    color: #333;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.9rem; }
h4 { font-size: 1.6rem; }
h5 { font-size: 1.35rem; }
h6 { font-size: 1.1rem; }

p {
    margin-bottom: 1rem;
    font-size: 1.4rem;
    line-height: 1.6;
}

a {
    color: #00BE6F;
    text-decoration: none;
}

a:hover {
    color: #4DEA89;
    text-decoration: underline;
}

/* Form Elements */
.form-control {
    font-size: 20px;
    padding: 14px 18px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.btn {
    font-size: 20px;
    padding: 14px 26px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: 500;
}

/* Table text */
table {
    font-size: 18px;
}

th, td {
    padding: 12px 16px;
}

/* Additional base styles */
.container {
    font-size: 20px;
}

.text-muted {
    font-size: 18px;
}

small {
    font-size: 17px;
}

.alert {
    font-size: 19px;
}

label {
    font-size: 19px;
    font-weight: 500;
    margin-bottom: 5px;
}

.form-group {
    margin-bottom: 20px;
}

/* Navigation text sizes */
.nav-links a {
    font-size: 20px;
}

.mobile-menu a {
    font-size: 20px;
}

/* Button Group Mobile Fixes */
.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.btn-group .btn {
    border-radius: 25px !important;
    margin: 0;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Override Bootstrap btn-group styling */
.btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) {
    border-radius: 25px !important;
}

.btn-group > .btn:first-child:not(:last-child):not(.dropdown-toggle) {
    border-top-right-radius: 25px !important;
    border-bottom-right-radius: 25px !important;
    border-top-left-radius: 25px !important;
    border-bottom-left-radius: 25px !important;
}

.btn-group > .btn:last-child:not(:first-child),
.btn-group > .dropdown-toggle:not(:first-child) {
    border-top-left-radius: 25px !important;
    border-bottom-left-radius: 25px !important;
    border-top-right-radius: 25px !important;
    border-bottom-right-radius: 25px !important;
}

/* Prevent horizontal scroll */
.container {
    max-width: 100%;
    overflow-x: hidden;
}

.row {
    margin-left: -10px;
    margin-right: -10px;
}

.row > [class*='col-'] {
    padding-left: 10px;
    padding-right: 10px;
}

@media (max-width: 768px) {
    /* Mobile button group fixes */
    .btn-group {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        width: 100%;
    }
    
    .btn-group .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
        padding: 12px 20px;
        font-size: 18px;
    }
    
    /* Container padding fixes */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .row {
        margin-left: -5px;
        margin-right: -5px;
    }
    
    .row > [class*='col-'] {
        padding-left: 5px;
        padding-right: 5px;
    }
    
    /* Form fixes for mobile */
    .modern-form {
        margin: 0;
        padding: 20px 15px;
    }
    
    /* Page header mobile spacing */
    .page-header {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .btn-group .btn {
        font-size: 15px;
        padding: 10px 16px;
    }
    
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* Match management mobile fixes */
    .modern-form .row {
        margin-left: 0;
        margin-right: 0;
    }
    
    .modern-form .row > [class*='col-'] {
        padding-left: 0;
        padding-right: 0;
        margin-bottom: 15px;
    }
    
    .modern-form form {
        flex-direction: column !important;
        gap: 10px;
    }
    
    .modern-form .form-control {
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 10px;
    }
    
    .modern-form .btn {
        width: 100%;
        margin: 0;
    }
    
    /* Input group mobile fixes */
    .input-group {
        flex-direction: column;
        width: 100%;
    }
    
    .input-group .form-control {
        border-radius: 4px;
        margin-bottom: 8px;
    }
    
    .input-group-btn {
        display: block;
        width: 100%;
    }
    
    .input-group-btn .btn {
        width: 100%;
        border-radius: 25px;
    }
}

/* Landing Page Styles */
.hero-section {
    background: linear-gradient(135deg, #4DEA89 0%, #00BE6F 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 0;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.6rem;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.4;
}

.stats-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.stat-card {
    text-align: center;
    padding: 30px;
    margin-bottom: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #00BE6F;
    display: block;
}

.stat-label {
    color: #6c757d;
    font-size: 1.4rem;
    margin-top: 10px;
}

.featured-section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #333;
}

.match-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
    height: 400px;
    display: flex;
    flex-direction: column;
}

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

.match-thumbnail {
    position: relative;
    height: 180px;
    background: #f0f0f0;
    overflow: hidden;
}

.match-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.live-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #dc3545;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 1.0rem;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.match-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.match-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 2.8em;
}

.match-details {
    color: #6c757d;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.match-content {
    flex-grow: 1;
}

.match-actions {
    margin-top: auto;
    padding-top: 15px;
}

.btn-cta {
    background: linear-gradient(135deg, #4DEA89 0%, #00BE6F 100%);
    border: none;
    padding: 15px 40px;
    font-size: 1.3rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
}

.btn-cta:hover,
.btn-cta:focus {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(77, 234, 137, 0.4);
    text-decoration: none;
}

.btn-cta.btn-sm {
    padding: 10px 25px;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.btn-cta.active {
    background: linear-gradient(135deg, #00BE6F 0%, #4DEA89 100%) !important;
    box-shadow: 0 6px 20px rgba(0, 190, 111, 0.5) !important;
    transform: translateY(-2px) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    position: relative;
}

.btn-cta.active::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #4DEA89, #00BE6F);
    border-radius: inherit;
    z-index: -1;
    opacity: 0.3;
}

.cta-section {
    background: linear-gradient(135deg, #4DEA89 0%, #00BE6F 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.placeholder-thumbnail {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px;
    background: #e9ecef;
    color: #6c757d;
    font-size: 1.3rem;
}

.live-icon {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #dc3545;
    border-radius: 50%;
    margin-right: 5px;
    animation: blink 2s infinite ease-in-out;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Modern Navigation */
.modern-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 190, 111, 0.1);
    padding: 15px 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.modern-nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00BE6F;
    text-decoration: none;
}

.nav-brand:hover {
    color: #4DEA89;
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links li {
    margin-left: 30px;
}

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

.nav-links a:hover {
    color: #00BE6F;
    text-decoration: none;
}

.nav-cta {
    background: linear-gradient(135deg, #4DEA89 0%, #00BE6F 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(77, 234, 137, 0.3);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 190, 111, 0.1);
    padding: 20px;
    z-index: 999;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu a {
    display: block;
    color: #333;
    text-decoration: none;
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

.mobile-menu a:hover {
    color: #00BE6F;
    text-decoration: none;
}

.mobile-menu .nav-cta {
    display: inline-block;
    margin-top: 15px;
    border-bottom: none;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    /* Mobile typography for hero section */
    .hero-title {
        font-size: 3rem !important;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.4rem !important;
        margin-bottom: 30px;
    }
    
    .hero-section {
        padding: 60px 0 !important;
    }
    
    /* Tablet page header styling */
    .page-header {
        padding: 50px 0 35px !important;
    }
    
    .page-header h1 {
        font-size: 2.5rem !important;
        line-height: 1.2;
    }
    
    .page-header .subtitle {
        font-size: 1.3rem !important;
        line-height: 1.3;
    }
}

/* Extra small devices (phones) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2.4rem !important;
        margin-bottom: 18px;
    }
    
    .hero-subtitle {
        font-size: 1.2rem !important;
        margin-bottom: 25px;
    }
    
    .hero-section {
        padding: 40px 0 !important;
    }
    
    /* Mobile page header styling */
    .page-header {
        padding: 40px 0 30px !important;
    }
    
    .page-header h1 {
        font-size: 2.2rem !important;
        margin-bottom: 12px;
        line-height: 1.3;
    }
    
    .page-header .subtitle {
        font-size: 1.1rem !important;
        line-height: 1.3;
    }
}

/* Adjust content for fixed nav */
.main-content {
    margin-top: 70px;
}

/* Override default for pages that need to be under the fixed nav */
.main-content.hero-page {
    margin-top: 0;
}

.main-content.hero-page .hero-section {
    margin-top: 70px;
}

/* Modern Footer */
.modern-footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    margin-top: 80px;
}

.footer-content {
    padding: 60px 0 40px;
}

.footer-section {
    margin-bottom: 30px;
}

.footer-brand {
    color: #4DEA89;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-description {
    color: #bdc3c7;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-title {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.modern-footer .footer-links a,
.modern-footer .footer-links a:link,
.modern-footer .footer-links a:visited {
    color: #ecf0f1 !important;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

.modern-footer .footer-links a:hover,
.modern-footer .footer-links a:focus {
    color: #4DEA89 !important;
    text-decoration: none !important;
}

.footer-newsletter-text {
    color: #bdc3c7;
    margin-bottom: 20px;
    line-height: 1.6;
}

.btn-footer-cta {
    background: linear-gradient(135deg, #4DEA89 0%, #00BE6F 100%);
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
}

.btn-footer-cta:hover {
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(77, 234, 137, 0.3);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright {
    color: #bdc3c7;
    margin: 0;
    font-size: 0.9rem;
}

.footer-legal {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: right;
    display: flex;
    justify-content: flex-end;
}

.footer-legal li {
    margin-left: 25px;
}

.modern-footer .footer-legal a,
.modern-footer .footer-legal a:link,
.modern-footer .footer-legal a:visited {
    color: #ecf0f1 !important;
    text-decoration: none !important;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.modern-footer .footer-legal a:hover,
.modern-footer .footer-legal a:focus {
    color: #4DEA89 !important;
    text-decoration: none !important;
}

@media (max-width: 768px) {
    .footer-legal {
        text-align: left;
        justify-content: flex-start;
        margin-top: 15px;
    }
    
    .footer-legal li {
        margin-left: 0;
        margin-right: 25px;
    }
}

/* Form Styling */
.modern-form {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.modern-form .form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 15px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.modern-form .form-control:focus {
    border-color: #00BE6F;
    box-shadow: 0 0 0 3px rgba(0, 190, 111, 0.1);
    outline: none;
}

.modern-form .btn {
    border-radius: 8px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.modern-form .btn-success {
    background: linear-gradient(135deg, #4DEA89 0%, #00BE6F 100%);
    border: none;
}

.modern-form .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(77, 234, 137, 0.3);
}

/* Stream Grid Styling */
.stream-grid {
    padding: 40px 0;
}

.stream-grid-row {
    display: flex;
    flex-wrap: wrap;
}

.stream-grid-row > [class*='col-'] {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}

.stream-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.stream-card-link {
    display: block;
    text-decoration: none !important;
    color: inherit !important;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
}

.stream-card-link:hover,
.stream-card-link:focus,
.stream-card-link:active {
    text-decoration: none !important;
    color: inherit !important;
}

.stream-card-link:hover .stream-card {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.competition-link {
    color: #6c757d !important;
    text-decoration: none !important;
    transition: color 0.3s ease;
    cursor: pointer;
}

.competition-link:hover {
    color: #00BE6F !important;
    text-decoration: none !important;
}

.stream-thumbnail {
    position: relative;
    height: 200px;
    background: #f0f0f0;
    overflow: hidden;
}

.stream-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stream-info {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.stream-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    line-height: 1.4;
}

.stream-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.stream-title a:hover {
    color: #00BE6F;
    text-decoration: none;
}

.stream-subtitle {
    color: #6c757d;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.stream-subtitle a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.stream-subtitle a:hover {
    color: #00BE6F;
    text-decoration: none;
}

/* Stream Grid Responsive */
@media (max-width: 991px) {
    .stream-grid-row {
        margin-left: -15px;
        margin-right: -15px;
    }
}

@media (max-width: 767px) {
    .stream-grid-row > [class*='col-'] {
        margin-bottom: 20px;
    }
    
    .stream-card {
        margin-bottom: 0;
    }
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #4DEA89 0%, #00BE6F 100%);
    color: white;
    padding: 70px 0 50px;
    margin-bottom: 40px;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.page-header .subtitle {
    font-size: 1.5rem;
    opacity: 0.9;
    line-height: 1.4;
}

/* Alert Styling */
.alert {
    border-radius: 8px;
    border: none;
    padding: 15px 20px;
}

.alert-success {
    background: linear-gradient(135deg, rgba(77, 234, 137, 0.1) 0%, rgba(0, 190, 111, 0.1) 100%);
    color: #00BE6F;
    border-left: 4px solid #00BE6F;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border-left: 4px solid #dc3545;
}

.alert-info {
    background: rgba(23, 162, 184, 0.1);
    color: #17a2b8;
    border-left: 4px solid #17a2b8;
}

.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    border-left: 4px solid #ffc107;
}