/* UserPortal Specific Styles */

/* Enhanced Hero Section */
.hero-section {
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(0, 166, 81, 0.9), rgba(0, 126, 62, 0.95)), url('/images/cricket-bg.jpg') center/cover no-repeat;
    position: relative;
    overflow: hidden;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

    .hero-content h1 {
        font-size: 3.5rem;
        margin-bottom: 1.5rem;
        line-height: 1.2;
    }

    .hero-content .lead {
        font-size: 1.25rem;
        margin-bottom: 2rem;
        max-width: 600px;
    }

/* Animated Elements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* Enhanced Feature Cards */
.feature-card {
    border: none;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    transition: all 0.3s ease;
    position: relative;
}

    .feature-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0, 166, 81, 0.1);
    }

.feature-icon {
    font-size: 3rem;
    background: linear-gradient(135deg, #00a651, #007e3e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.feature-card h4 {
    color: #2c3e50;
    font-weight: 700;
}

.feature-card p {
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.6;
}

/* Enhanced Buttons */
.btn-cricbuzz {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 50px;
    background: linear-gradient(135deg, #00a651, #007e3e);
    color: white !important;
    border: none;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 166, 81, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

    .btn-cricbuzz:hover {
        background: linear-gradient(135deg, #007e3e, #005c2d);
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0, 166, 81, 0.3);
        color: white !important;
        text-decoration: none;
    }

    .btn-cricbuzz:active {
        transform: translateY(0);
        box-shadow: 0 4px 10px rgba(0, 166, 81, 0.2);
    }

/* Ensure links are clickable */
.feature-card a {
    position: relative;
    z-index: 2;
}

.feature-card .text-center {
    position: relative;
    z-index: 1;
}

/* Stats Counter Section */
.stats-counter {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    padding: 4rem 0;
    margin: 3rem 0;
}

.stats-item {
    text-align: center;
    padding: 2rem;
}

    .stats-item .number {
        font-size: 2.5rem;
        font-weight: 700;
        color: #00a651;
        margin-bottom: 1rem;
    }

    .stats-item .label {
        color: #6c757d;
        font-size: 1.1rem;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

/* Match Cards */
.matches-container {
    padding: 2rem 0;
}

.match-card {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 166, 81, 0.1);
    margin-bottom: 1.5rem;
}

    .match-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 166, 81, 0.1);
    }

.match-header {
    background: linear-gradient(135deg, #0C3D2E, #0F5132);
    color: white;
    padding: 1rem;
    position: relative;
}

.match-type-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.match-teams {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: white;
}

.team {
    text-align: center;
    flex: 1;
}

.team-name {
    font-weight: 600;
    color: #2c3e50;
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.versus {
    font-size: 1.2rem;
    color: #00a651;
    margin: 0 1rem;
    font-weight: bold;
}

.match-details {
    background: #f8f9fa;
    padding: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.match-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #6c757d;
    font-size: 0.9rem;
}

.match-result {
    text-align: center;
    padding: 1rem;
    background: white;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.winner-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: linear-gradient(135deg, #00a651, #007e3e);
    color: white;
    font-weight: 600;
}

.match-cta {
    text-align: center;
    padding: 1rem;
    background: white;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-match-details {
    background: linear-gradient(135deg, #00a651, #007e3e);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

    .btn-match-details:hover {
        background: linear-gradient(135deg, #007e3e, #005c2d);
        color: white;
        transform: translateY(-2px);
    }

/* Match Filters */
.matches-filter {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.filter-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 1rem;
}

.filter-group {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Team Logos */
.team-logo {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #00a651;
}

/* Match Stats */
.match-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1rem;
    background: #f8f9fa;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: #00a651;
}

.stat-label {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Match Page Specific Styles */
.matches-header {
/*    background: linear-gradient(135deg, #0C3D2E, #0F5132);*/
    background: linear-gradient(135deg, #0C3D2E, #0F5132);
    padding: 2rem 0;
    margin-bottom: 2rem;
    border-radius: 10px;
    color: white;
}

.match-filters {
    background: white;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.filter-pills {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.5rem 0;
}

.filter-pill {
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    background: #f8f9fa;
    color: #495057;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
}

    .filter-pill.active {
        background: #00a651;
        color: white;
        border-color: #00a651;
    }

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

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

.match-status-bar {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.match-status {
    color: #00a651;
    font-weight: 600;
}

.match-type {
    background: #f8f9fa;
    padding: 0.2rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    color: #666;
}

.match-teams-section {
    padding: 1.5rem;
}

.team-vs-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.team-block {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.team-flag {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #eee;
}

.team-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1rem;
}

.vs-text {
    color: #aaa;
    font-weight: 500;
    margin: 0 1rem;
}

.match-info-bar {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

    .info-item i {
        color: #00a651;
    }

.winner-tag {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: linear-gradient(135deg, #00a651, #007e3e);
    color: white;
    border-radius: 15px;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.match-stats-bar {
    display: flex;
    justify-content: space-around;
    padding: 1rem;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

.stat-block {
    text-align: center;
}

.stat-number {
    font-size: 1.2rem;
    font-weight: 600;
    color: #00a651;
}

.stat-label {
    font-size: 0.8rem;
    color: #666;
}

.view-details-btn {
    display: block;
    text-align: center;
    padding: 0.8rem;
    background: white;
    color: #00a651;
    text-decoration: none;
    border-top: 1px solid #eee;
    transition: background-color 0.3s ease;
}

    .view-details-btn:hover {
        background: #f8f9fa;
        color: #007e3e;
    }

/* Enhanced Search Bar */
.search-container {
    margin-bottom: 1.5rem;
}

.search-form .input-group {
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-form .form-control {
    border: 1px solid #e0e0e0;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border-radius: 50px 0 0 50px;
    border-right: none;
}

    .search-form .form-control:focus {
        box-shadow: none;
        border-color: #00a651;
    }

.search-form .btn {
    padding: 0.8rem 1.5rem;
    border-radius: 0 50px 50px 0;
    background: linear-gradient(135deg, #00a651, #007e3e);
    border: none;
    font-weight: 500;
}

    .search-form .btn:hover {
        background: linear-gradient(135deg, #007e3e, #005c2d);
    }

/* Enhanced Filter Pills */
.filter-pills {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

    .filter-pills::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }

.filter-pill {
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    background: #f8f9fa;
    color: #495057;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
    text-decoration: none;
    font-size: 0.95rem;
}

    .filter-pill:hover {
        background: #e9ecef;
        color: #212529;
        text-decoration: none;
    }

    .filter-pill.active {
        background: linear-gradient(135deg, #00a651, #007e3e);
        color: white;
        border-color: transparent;
    }

/* Match Card Enhancements */
.match-status-bar {
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.match-type {
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Responsive Enhancements */
@media (max-width: 576px) {
    .search-form .input-group {
        flex-direction: column;
    }

    .search-form .form-control,
    .search-form .btn {
        border-radius: 50px;
        margin: 0.25rem 0;
    }

    .filter-pills {
        padding-bottom: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .filter-pill {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Cricket Ball Animation Enhancement */
.cricket-ball {
    width: 40px;
    height: 40px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* Footer Enhancement */
.custom-footer {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    padding: 2rem 0;
    margin-top: 4rem;
    color : white;
}

    .custom-footer p {
        font-size: 1.1rem;
    }

/* Loading animation */
.matches-loading {
    text-align: center;
    padding: 2rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #00a651;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
