/* Custom styles for the betting site - Mobile First Design */

body {
    background-color: #f0f0f0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
}

/* Mobile Header */
.mobile-header {
    width: 100%;
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    padding: 10px 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.home-icon, .notification-icon {
    color: #6e00ff;
    text-decoration: none;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}

.home-icon:hover, .notification-icon:hover {
    transform: scale(1.1);
}



.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    border: 2px solid white;
    animation: pulse-notification 2s infinite;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

@keyframes pulse-notification {
    0% {
        transform: scale(1);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 4px 8px rgba(255, 71, 87, 0.4);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }
}

.header-center {
    flex: 1;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.settings-icon {
    color: #333;
    font-size: 20px;
    text-decoration: none;
}

.logo-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.country-selector {
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
}

.country-flag {
    margin-right: 5px;
    transition: all 0.3s ease;
}

#language-toggle:hover {
    transform: scale(1.1);
}

.dropdown-icon {
    font-size: 12px;
    color: #666;
    transition: all 0.3s ease;
}

.country-selector:hover .dropdown-icon {
    transform: rotate(180deg);
    color: #6e00ff;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    width: 150px;
    z-index: 1000;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.country-selector.active .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(5px);
}

.language-option {
    padding: 10px 15px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.language-option:hover {
    background-color: #f0e6ff;
}

.language-flag {
    margin-right: 10px;
}

.language-name {
    font-size: 14px;
    color: #333;
}

.breaking-news {
    background-color: #f0e6ff;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #4a0099;
    border-bottom: 1px solid #d9c2ff;
    overflow: hidden;
}

.breaking-news-label {
    background-color: #6e00ff;
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-weight: bold;
    margin-right: 10px;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.breaking-news-label i {
    margin-right: 5px;
}

.breaking-news-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 20px;
    margin-left: 0;
    padding-left: 0;
}

.news-ticker {
    position: absolute;
    white-space: nowrap;
    animation: ticker 10s linear infinite;
    animation-delay: 0.1s;
    left: 0;
}

.news-ticker span {
    display: inline-block;
    padding-right: 50px;
    color: #4a0099;
    font-weight: bold;
}

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

.close-news {
    margin-left: 10px;
    cursor: pointer;
    color: #6e00ff;
}

/* Mobile Container */
.mobile-container {
    padding: 0;
    max-width: 100%;
}

/* Banner Slideshow */
.banner-slideshow-container {
    width: 100%;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
    height: 1080px; /* Fixed height for banner container - set to 1080px */
}

/* Responsive banner height for different screen sizes */
@media (max-width: 1024px) {
    .banner-slideshow-container {
        height: 800px; /* Smaller height for tablets */
    }
}

@media (max-width: 768px) {
    .banner-slideshow-container {
        height: 300px; /* Smaller height for mobile */
    }
}

@media (max-width: 480px) {
    .banner-slideshow-container {
        height: 200px; /* Even smaller for very small screens */
    }
}

.banner-slideshow {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-slide {
    display: none;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: opacity 0.5s ease-in-out;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
}

.banner-slide.active {
    display: block !important;
    opacity: 1;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* This ensures images maintain aspect ratio and fit within container */
    display: block;
    border-radius: 8px;
}

/* Banner Navigation Dots */
.banner-dots {
    text-align: center;
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    padding: 8px 15px;
    z-index: 10;
    display: none!important;
}

.banner-dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
}

.banner-dot.active,
.banner-dot:hover {
    background-color: #fff;
    transform: scale(1.2);
}

/* Slideshow Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-30px);
    }
}

/* Main Banner (Legacy support) */
.main-banner {
    width: 100%;
    margin-bottom: 15px;
    text-align: center;
}

.banner-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
}

/* Golden Banner and Header (Default) */
.golden-banner {
    position: relative;
    margin-bottom: 15px;
    background-color: #000;
    border-top: 2px solid #ffd700;
    border-bottom: 2px solid #ffd700;
}

.golden-header {
    background-color: #000;
    color: #ffd700;
    text-align: center;
    padding: 15px 10px;
    position: relative;
    overflow: hidden;
}

.golden-header h2 {
    margin: 0;
    font-size: 18px;
    position: relative;
    z-index: 2;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.7);
    font-weight: bold;
}

.golden-stars-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/stars-bg.png') repeat;
    opacity: 0.5;
    z-index: 1;
}

.golden-star-left, .golden-star-right {
    position: absolute;
    width: 30px;
    height: 30px;
    background-color: #ffd700;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.9);
}

.golden-star-left {
    left: 10px;
}

.golden-star-right {
    right: 10px;
}

/* User Balance Section */
.user-balance-section {
    background-color: #fff;
    padding: 15px;
    margin-bottom: 15px;
}

.user-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.user-id {
    font-size: 16px;
    font-weight: bold;
}

.login-link {
    color: #6e00ff;
    text-decoration: none;
    margin-left: 5px;
    font-size: 14px;
}

.login-link:hover {
    text-decoration: underline;
}

.vip-badge {
    background-color: #ffd700;
    color: #000;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    margin-left: 5px;
}

.balance-amount {
    font-size: 16px;
    font-weight: bold;
}

.wallet-actions {
    margin-bottom: 15px;
}

.wallet-action-row {
    display: flex;
    justify-content: space-between;
}

.wallet-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    width: 25%;
}

.wallet-action-btn .wallet-icon {
    font-size: 24px;
    width: 32px;
    height: 32px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6e00ff;
    background-color: #f1f1f1;
    border-radius: 50%;
    padding: 12px;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.primary-action-btn, .secondary-action-btn {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.primary-action-btn {
    background-color: #6e00ff;
    color: white;
}

.primary-action-btn:hover {
    background-color: #5700cc;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(110, 0, 255, 0.3);
}

.secondary-action-btn {
    background-color: #f1f1f1;
    color: #333;
    border: 1px solid #ddd;
}

.secondary-action-btn:hover {
    background-color: #f0e6ff;
    border-color: #6e00ff;
    color: #6e00ff;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Match List */
.match-list {
    background-color: #f0f0f0;
}

.match-item-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.match-item-link:hover .match-item {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.match-item {
    padding: 12px;
    border-bottom: 1px solid #eee;
    background-color: #fff;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.match-item:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
}

.match-id {
    color: #6e00ff;
    font-weight: bold;
}

.match-score {
    color: #333;
}

.match-odds {
    color: #e74c3c;
    font-weight: bold;
    font-size: 14px;
}

.match-time {
    color: #999;
    font-size: 12px;
}

.match-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0;
    padding: 0 5px;
}

.team-left, .team-right {
    display: flex;
    align-items: center;
    width: 42%;
}

.team-left {
    justify-content: flex-start;
}

.team-right {
    justify-content: flex-end;
    flex-direction: row;
}

.team-logo {
    width: 28px;
    height: 28px;
    border: 1px solid #ddd;
    border-radius: 50%;
    padding: 2px;
    background-color: #fff;
    object-fit: contain;
}

.team-left .team-logo {
    margin-right: 8px;
}

.team-right .team-logo {
    margin-left: 8px;
    order: 2;
}

.team-name {
    font-weight: 600;
    font-size: 13px;
    color: #333;
    text-align: center;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-right .team-name {
    order: 1;
}

.vs-text {
    font-size: 12px;
    font-weight: bold;
    color: #6c7ae0;
    width: 16%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(108, 122, 224, 0.1);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    margin: 0 auto;
}

.category-badge {
    color: #fff;
    background-color: #e74c3c;
    font-size: 14px;
    font-weight: bold;
    padding: 3px 10px;
    border-radius: 4px;
    display: inline-block;
    margin: 5px auto;
    text-align: center;
    width: fit-content;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.match-time-remaining {
    color: #999;
    font-size: 12px;
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    box-shadow: 0 -2px 10px rgba(110, 0, 255, 0.15);
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 1px solid rgba(110, 0, 255, 0.1);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #999;
    font-size: 12px;
    position: relative;
    width: 20%;
    transition: all 0.3s ease;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #6e00ff;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-item.active::before {
    width: 40%;
}

.nav-item:active {
    transform: scale(0.95);
}

.nav-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: transform 0.3s ease;
}

.nav-item:hover .nav-icon {
    transform: translateY(-3px);
}

.icon-svg {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
    color: #999;
}

.nav-item.active .icon-svg {
    color: #6e00ff;
}

.match-icon-svg {
    width: 30px;
    height: 30px;
    transition: all 0.3s ease;
}

.nav-item:hover .icon-svg,
.nav-item:hover .match-icon-svg {
    transform: scale(1.1);
}

.match-item-nav {
    margin-top: -15px;
}

.match-icon-container {
    width: 50px;
    height: 50px;
    background-color: #6e00ff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2px;
    border: 3px solid white;
    box-shadow: 0 4px 10px rgba(110, 0, 255, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: pulse-match 2s infinite;
}

.match-icon-container::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        top: -50%;
        left: -50%;
    }
    100% {
        top: 150%;
        left: 150%;
    }
}

@keyframes pulse-match {
    0% {
        box-shadow: 0 4px 10px rgba(110, 0, 255, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(110, 0, 255, 0.7);
    }
    100% {
        box-shadow: 0 4px 10px rgba(110, 0, 255, 0.4);
    }
}

.match-item-nav:hover .match-icon-container {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(110, 0, 255, 0.5);
}

.match-item-nav:hover .match-icon-svg {
    transform: scale(1.1);
}

.nav-item.active {
    color: #6e00ff;
    animation: pop 0.3s ease;
}

.nav-item.active .icon-svg {
    filter: drop-shadow(0 0 3px rgba(110, 0, 255, 0.7));
}

.nav-item.pulse {
    animation: pulse 1s ease;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(110, 0, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(110, 0, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(110, 0, 255, 0);
    }
}

@keyframes pop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Add ripple effect for clicks */
.nav-item {
    position: relative;
    overflow: hidden;
}

.nav-item .ripple {
    position: absolute;
    background: rgba(110, 0, 255, 0.3);
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* Add padding to the bottom of the page to account for the fixed navigation */
body {
    padding-bottom: 60px;
}

.btn-primary {
    background-color: #6e00ff;
    border-color: #6e00ff;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: #5700cc;
    border-color: #5700cc;
}

/* Add styles for betting options */
.betting-option {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.betting-option:hover {
    border-color: #6e00ff;
    box-shadow: 0 2px 5px rgba(110, 0, 255, 0.2);
}

.betting-option.selected {
    border-color: #6e00ff;
    background-color: #f0e6ff;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .mobile-container {
        max-width: 540px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .match-item {
        padding: 10px;
        margin-bottom: 6px;
    }

    .match-header {
        flex-wrap: wrap;
        font-size: 11px;
        margin-bottom: 8px;
    }

    .match-id, .match-score, .match-odds, .match-time {
        margin-bottom: 3px;
        font-size: 11px;
    }

    .match-teams {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin: 6px 0;
        padding: 0 3px;
    }

    .team-left, .team-right {
        width: 40%;
        flex-direction: row;
    }

    .team-left {
        justify-content: flex-start;
    }

    .team-right {
        justify-content: flex-end;
    }

    .team-logo {
        width: 24px;
        height: 24px;
    }

    .team-left .team-logo {
        margin-right: 6px;
    }

    .team-right .team-logo {
        margin-left: 6px;
        order: 2;
    }

    .team-name {
        font-size: 12px;
        max-width: 80px;
    }

    .team-right .team-name {
        order: 1;
    }

    .vs-text {
        width: 28px;
        height: 28px;
        font-size: 10px;
        margin: 0;
    }

    .category-badge {
        font-size: 10px;
        padding: 2px 8px;
    }

    .match-time-remaining {
        font-size: 11px;
        margin-top: 6px;
    }
}
