/* CSS Variables */
:root {
    --primary-color: #1a472a;
    --secondary-color: #2d5a3d;
    --accent-color: #4caf50;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #f8f9fa;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 20px rgba(0,0,0,0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.logo-1xbet { background: #1f5582; }
.logo-parimatch { background: #ff6600; }

.international-badge { background: #673ab7; }
.esports-badge { background: #ff5722; }

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

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

/* Header styles */
.main-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo-link {
    text-decoration: none;
}

.site-logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.site-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 0;
}

.main-navigation .nav-menu {
    display: flex;
    list-style: none;
    gap: 1.6rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover,
.nav-item.active .nav-link {
    color: var(--primary-color);
}

.current-page {
    color: var(--primary-color);
    font-weight: 600;
    cursor: default;
}

.dropdown-arrow {
    font-size: 0.8rem;
    transition: var(--transition);
    color: var(--text-light);
}

.has-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    border-radius: var(--border-radius);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1000;
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background: var(--bg-color);
    color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* Breadcrumb */
.breadcrumb-section {
    background: var(--bg-color);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb-nav {
    font-size: 0.9rem;
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.breadcrumb-list li:not(:last-child)::after {
    content: "›";
    margin-left: 0.5rem;
    color: var(--text-light);
}

.breadcrumb-list a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-list a:hover {
    color: var(--primary-color);
}

.breadcrumb-list .current {
    color: var(--primary-color);
    font-weight: 600;
}

/* Hero Section */
.hero-section {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-weight: bold;
}

.highlight {
    color: var(--accent-color);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

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

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent-color);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero-visual {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.phone-showcase {
    position: relative;
}

.phone-frame {
    width: 280px;
    height: 560px;
    background: linear-gradient(145deg, #2c3e50, #34495e);
    border-radius: 30px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    position: relative;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #7f8c8d;
    border-radius: 2px;
}

.screen-content {
    width: 100%;
    height: 100%;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
}

.app-preview {
    padding: 1rem;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.app-logo {
    font-size: 1.5rem;
}

.balance {
    background: var(--accent-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.live-matches {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.match-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-color);
    border-radius: var(--border-radius);
}

.teams {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
}

.odds {
    background: var(--accent-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Filter Section */
.filter-section {
    background: var(--white);
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color);
}

.filter-header {
    text-align: center;
    margin-bottom: 2rem;
}

.filter-header h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.filter-controls {
    display: flex;
    gap: 1.5rem;
    align-items: end;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
}

.filter-select {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--white);
    color: var(--text-color);
    font-size: 0.9rem;
    min-width: 180px;
    transition: var(--transition);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.reset-filters-btn {
    padding: 0.95rem 1.5rem;
    background: var(--text-light);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.reset-filters-btn:hover {
    background: var(--primary-color);
}

/* Apps Section */
.betting-apps-section {
    padding: 4rem 0;
    background: var(--bg-color);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-intro {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* App Cards */
.app-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    border: 2px solid transparent;
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.app-card.featured {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, #f8fff8 0%, var(--white) 100%);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.app-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.app-logo {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--white);
}

.logo-22bet { background: var(--primary-color); }
.logo-betway { background: #ff6b35; }
.logo-helabet { background: #2196f3; }
.logo-mozzartbet { background: #e91e63; }
.logo-sportpesa { background: #009688; }
.logo-betin { background: #1e88e5; }
.logo-odibets { background: #ffeb3b; color: var(--text-color) !important; }
.logo-betika { background: #1976d2; }

.app-details h3 {
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    font-size: 1.3rem;
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stars {
    color: #ffc107;
    font-size: 1rem;
}

.rating-score {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
}

.featured-badge,
.speed-badge,
.jackpot-badge,
.heritage-badge,
.community-badge,
.lightweight-badge,
.popular-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--white);
}

.featured-badge { background: var(--accent-color); }
.speed-badge { background: #2196f3; }
.jackpot-badge { background: #e91e63; }
.heritage-badge { background: #009688; }
.community-badge { background: #1e88e5; }
.lightweight-badge { background: #ff9800; }
.popular-badge { background: #1976d2; }

.app-specs {
    background: var(--bg-color);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.spec-item:last-child {
    margin-bottom: 0;
}

.spec-label {
    color: var(--text-light);
    font-size: 0.9rem;
}

.spec-value {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
}

.key-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.feature-tag {
    background: var(--bg-color);
    color: var(--text-color);
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.performance-bars {
    margin-bottom: 1.5rem;
}

.performance-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.performance-label {
    min-width: 60px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.performance-bar {
    flex: 1;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.performance-fill {
    height: 100%;
    background: var(--accent-color);
    transition: width 0.5s ease;
}

.performance-score {
    min-width: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
}

.card-actions {
    display: flex;
    gap: 0.75rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    justify-content: center;
    flex: 1;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Performance Comparison Table */
.performance-comparison-section {
    padding: 4rem 0;
    background: var(--white);
}

.comparison-table-wrapper,
.features-table-wrapper {
    overflow-x: auto;
    margin-top: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    max-width: 100%;
}

.performance-table,
.features-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    table-layout: fixed;
    min-width: 800px;
}

.performance-table th,
.performance-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.performance-table th {
    background: var(--primary-color);
    color: var(--white);
    font-weight: 600;
}

.performance-table tr,
.features-table tr {
    transition: background-color 0.2s ease;
}

.performance-table tr:hover {
    background: var(--bg-color);
}

.featured-row {
    background: linear-gradient(135deg, #f8fff8 0%, var(--white) 100%);
}

.table-app-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.table-logo {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    color: var(--white);
}

.size-badge {
    background: var(--bg-color);
    color: var(--text-color);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.size-badge.ultra-light {
    background: var(--accent-color);
    color: var(--white);
}

.speed-excellent {
    color: var(--accent-color);
    font-weight: bold;
}

.speed-good {
    color: #2196f3;
    font-weight: bold;
}

.speed-average {
    color: #ff9800;
    font-weight: bold;
}

.rating-badge {
    background: var(--accent-color);
    color: var(--white);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.table-btn {
    background: var(--accent-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.table-btn:hover {
    background: #45a049;
}

/* Features Comparison */
.features-comparison-section {
    padding: 4rem 0;
    background: var(--bg-color);
}

.features-table-wrapper {
    overflow-x: auto;
    margin-top: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.features-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

.features-table th,
.features-table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.features-table th:first-child,
.features-table td:first-child {
    text-align: left;
}

.features-table th {
    background: var(--primary-color);
    color: var(--white);
    font-weight: 600;
}

.check-mark {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.cross-mark {
    color: #dc3545;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Selection Guide */
.selection-guide-section {
    padding: 4rem 0;
    background: var(--white);
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.guide-card {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.guide-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.guide-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.guide-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.recommended-app {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.recommended-app span {
    font-weight: 600;
    color: var(--primary-color);
}

.guide-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Installation Tips */
.installation-tips-section {
    padding: 4rem 0;
    background: var(--bg-color);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.tip-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.tip-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.tip-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    text-align: center;
}

.tip-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    text-align: center;
}

.tip-list {
    list-style: none;
    padding: 0;
}

.tip-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-light);
    position: relative;
    padding-left: 1.5rem;
}

.tip-list li:last-child {
    border-bottom: none;
}

.tip-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* FAQ Section */
.faq-section {
    padding: 4rem 0;
    background: var(--white);
}

.faq-container {
    max-width: 800px;
    margin: 2rem auto 0;
}

.faq-item {
    background: var(--white);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-icon {
    font-size: 1.5rem;
    transition: var(--transition);
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-light);
    display: none;
}

.faq-question[aria-expanded="true"] + .faq-answer {
    display: block;
}

/* Footer */
.main-footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 1rem;
    text-align: center;
}

.disclaimer {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

/* Responsive Design */
@media (max-width: 1000px) {
    .main-navigation {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-select {
        min-width: auto;
        width: 100%;
    }
    
    .apps-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .guide-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .tips-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .app-card {
        padding: 1.5rem;
    }
    
    .card-actions {
        flex-direction: column;
    }
    
    .performance-table th,
    .performance-table td,
    .features-table th,
    .features-table td {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
    
    .site-title {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .phone-frame {
        width: 240px;
        height: 480px;
    }
}

/* Hidden class for filtering */
.hidden {
    display: none !important;
}

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Animation for filtered results */
.app-card {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.app-card.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

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