/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.5;
    color: #3c4043;
    background-color: #ffffff;
    padding-bottom: 80px;
    overflow-x: hidden;
}

/* Header */
.header {
    background: #ffffff;
    border-bottom: 1px solid #e8eaed;
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 64px;
    display: flex;
    align-items: center;
}

.header-content {
    width: 100%;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.google-play-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #5f6368;
    font-size: 22px;
    font-weight: 400;
}

.playstore-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-btn,
.help-btn {
    background: none;
    border: none;
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    color: #5f6368;
    font-size: 20px;
    transition: background-color 0.2s;
}

.search-btn:hover,
.help-btn:hover {
    background-color: #f1f3f4;
}

.profile-btn {
    background: none;
    border: none;
    padding: 4px;
    border-radius: 50%;
    cursor: pointer;
}

.profile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #dadce0;
}

/* Main Content */
.main-content {
    padding: 24px 16px 0;
}

/* App Header */
.app-header {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    align-items: flex-start;
}

.app-icon {
    flex-shrink: 0;
}

.app-icon-container {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 2px 0 rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15);
}

.app-icon-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-info {
    flex: 1;
    min-width: 0;
}

.app-title {
    font-size: 24px;
    font-weight: 400;
    color: #3c4043;
    margin-bottom: 4px;
    line-height: 1.2;
}

.app-developer {
    margin-bottom: 8px;
}

.developer-name {
    color: #1a73e8;
    font-size: 14px;
    font-weight: 500;
}

.app-badge {
    display: inline-block;
}

.app-badge span {
    background-color: #e8f0fe;
    color: #1a73e8;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
}

/* App Stats */
.app-stats {
    display: flex;
    gap: 32px;
    margin-bottom: 24px;
    padding: 0 8px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 16px;
    font-weight: 500;
    color: #3c4043;
    margin-bottom: 4px;
}

.stat-value .rating {
    font-size: 16px;
    font-weight: 500;
}

.stat-value i.fa-star {
    color: #fbbc04;
    font-size: 14px;
}

.age-rating {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: #34a853;
    color: white;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
}

.stat-value i.fa-info-circle {
    color: #5f6368;
    font-size: 14px;
    margin-left: 4px;
}

.stat-label {
    font-size: 12px;
    color: #5f6368;
    line-height: 1.3;
}

/* Install Section */
.install-section {
    margin-bottom: 32px;
}

.install-btn {
    width: 100%;
    background: #1a73e8;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.install-btn:hover {
    background: #1557b0;
}

.install-btn i {
    font-size: 16px;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 32px;
}

.share-btn,
.wishlist-btn {
    background: none;
    border: none;
    color: #1a73e8;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.share-btn:hover,
.wishlist-btn:hover {
    background-color: #f1f3f4;
}

/* Screenshots Section */
.screenshots-section {
    margin-bottom: 32px;
}

.screenshots-container {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 16px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.screenshots-container::-webkit-scrollbar {
    display: none;
}

.screenshot-item {
    flex: 0 0 280px;
    text-align: center;
}

.screenshot-content {
    background: #ffffff;
}

.screenshot-title {
    font-size: 14px;
    font-weight: 500;
    color: #3c4043;
    margin-bottom: 4px;
}

.screenshot-subtitle {
    font-size: 12px;
    color: #5f6368;
    margin-bottom: 16px;
}

.screenshot-image {
    width: 100%;
    height: 480px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 1px 2px 0 rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.screenshot-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

/* Screenshot Mock Designs */
.pro-design {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.mock-design {
    position: relative;
    width: 200px;
    height: 300px;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.design-element {
    border-radius: 50%;
    margin: 8px;
}

.element1 {
    width: 60px;
    height: 60px;
    background: #ff6b6b;
}

.element2 {
    width: 40px;
    height: 40px;
    background: #4ecdc4;
}

.design-text {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin-top: 20px;
}

.editor-ui {
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
}

.mock-editor {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.toolbar {
    height: 48px;
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
}

.canvas {
    flex: 1;
    background: #ffffff;
    margin: 16px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.sidebar {
    width: 60px;
    background: #f1f3f4;
    position: absolute;
    right: 0;
    top: 48px;
    bottom: 0;
}

.templates {
    background: #ffd54f;
    padding: 20px;
}

.template-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    height: 100%;
}

.template-item {
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.t1 { background: linear-gradient(45deg, #ff9a9e 0%, #fecfef 100%); }
.t2 { background: linear-gradient(45deg, #a18cd1 0%, #fbc2eb 100%); }
.t3 { background: linear-gradient(45deg, #fad0c4 0%, #ffd1ff 100%); }
.t4 { background: linear-gradient(45deg, #ffecd2 0%, #fcb69f 100%); }

/* MbogiBet Screenshot Mockups */
.betting-interface {
    background: linear-gradient(135deg, #1a73e8 0%, #34a853 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mock-betting {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    width: 220px;
    height: 350px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bet-header {
    background: #1a73e8;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
}

.match-card {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #34a853;
}

.team {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.odds {
    color: #1a73e8;
    font-weight: 700;
    font-size: 16px;
}

.bet-slip {
    background: #34a853;
    color: white;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

.mpesa-ui {
    background: linear-gradient(135deg, #00a651 0%, #00d158 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mock-mpesa {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    width: 200px;
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.mpesa-logo {
    color: #00a651;
    font-weight: 900;
    font-size: 24px;
    letter-spacing: 2px;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.payment-btn {
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    color: white;
}

.payment-btn.deposit {
    background: #00a651;
}

.payment-btn.withdraw {
    background: #1a73e8;
}

.balance {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
    font-weight: 600;
    color: #333;
    width: 100%;
    text-align: center;
}

.jackpot-ui {
    background: linear-gradient(135deg, #ff9800 0%, #f44336 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mock-jackpot {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    width: 200px;
    height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.jackpot-amount {
    font-size: 28px;
    font-weight: 900;
    color: #ff9800;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.jackpot-games {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.game-item {
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 600;
    color: #333;
}

.play-btn {
    background: linear-gradient(135deg, #ff9800 0%, #f44336 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

/* About Section */
.about-section {
    margin-bottom: 32px;
}

.about-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.about-header h2 {
    font-size: 20px;
    font-weight: 500;
    color: #3c4043;
}

.expand-btn {
    background: none;
    border: none;
    color: #5f6368;
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.expand-btn:hover {
    background-color: #f1f3f4;
}

.about-content {
    color: #5f6368;
    font-size: 14px;
    line-height: 1.6;
    transition: max-height 0.3s ease;
}

/* App Description Styling */
.app-description {
    margin-top: 16px;
}

.app-description h3 {
    color: #1a73e8;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.3;
}

.app-description h4 {
    color: #34a853;
    font-size: 16px;
    font-weight: 600;
    margin: 20px 0 12px 0;
    line-height: 1.3;
}

.app-description p {
    margin-bottom: 12px;
    color: #3c4043;
    line-height: 1.6;
}

/* Feature List Styling */
.feature-list {
    margin: 16px 0;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    padding: 8px 0;
}

.feature-icon {
    font-size: 18px;
    margin-right: 12px;
    margin-top: 2px;
    flex-shrink: 0;
}

.feature-text {
    flex: 1;
    color: #3c4043;
    line-height: 1.5;
}

.feature-text strong {
    color: #1a73e8;
    font-weight: 600;
}

/* Features List Styling */
.features-list {
    list-style: none;
    margin: 12px 0;
    padding: 0;
}

.features-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
    color: #3c4043;
    line-height: 1.5;
}

.features-list li::before {
    content: '•';
    color: #34a853;
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 16px;
}

/* Payment Features Styling */
.payment-features {
    margin: 12px 0;
}

.payment-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    padding: 6px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #34a853;
}

.payment-icon {
    font-size: 16px;
    margin-right: 12px;
}

.payment-item span:last-child {
    color: #3c4043;
    font-weight: 500;
}

/* CTA Section Styling */
.cta-section {
    margin-top: 24px;
    padding: 20px;
    background: linear-gradient(135deg, #e8f0fe 0%, #f3e5f5 100%);
    border-radius: 12px;
    border-left: 4px solid #1a73e8;
}

.cta-section h4 {
    color: #1a73e8;
    margin-top: 0;
    margin-bottom: 12px;
}

.cta-section p {
    color: #3c4043;
    margin-bottom: 8px;
}

.cta-text {
    color: #1a73e8 !important;
    font-weight: 600 !important;
    font-size: 15px !important;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .app-description h3 {
        font-size: 16px;
    }
    
    .app-description h4 {
        font-size: 14px;
    }
    
    .feature-item {
        flex-direction: row;
        align-items: flex-start;
    }
    
    .cta-section {
        padding: 16px;
    }
}

.editors-choice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
    padding: 12px;
    background: #e8f0fe;
    border-radius: 8px;
    color: #1a73e8;
    font-weight: 500;
    font-size: 13px;
}

.editors-choice i {
    color: #fbbc04;
    font-size: 16px;
    margin-top: 1px;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e8eaed;
    display: flex;
    height: 80px;
    z-index: 1000;
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #5f6368;
    transition: color 0.2s;
    gap: 4px;
    padding: 8px;
}

.nav-item.active {
    color: #1a73e8;
}

.nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
}

.nav-item span {
    font-size: 12px;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 480px) {
    .main-content {
        padding: 16px 12px 0;
    }
    
    .app-header {
        gap: 12px;
    }
    
    .app-title {
        font-size: 20px;
    }
    
    .app-stats {
        gap: 24px;
    }
    
    .screenshots-container {
        gap: 12px;
    }
    
    .screenshot-item {
        flex: 0 0 240px;
    }
    
    .screenshot-image {
        height: 400px;
    }
    
    .action-buttons {
        gap: 24px;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #1a73e8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Beautiful Download Loading Animation */
.download-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.download-icon {
    width: 20px;
    height: 20px;
    position: relative;
    animation: downloadBounce 1.5s ease-in-out infinite;
}

.download-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 12px;
    background: white;
    transform: translateX(-50%);
    border-radius: 1px;
}

.download-icon::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 6px solid white;
    transform: translateX(-50%);
}

@keyframes downloadBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.progress-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.progress-text {
    font-size: 13px;
    font-weight: 500;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0.8) 0%, white 50%, rgba(255,255,255,0.8) 100%);
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Install Button States */
.install-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.install-btn.installing {
    background: linear-gradient(135deg, #1a73e8 0%, #4285f4 100%);
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.3);
}

.install-btn.installed {
    background: linear-gradient(135deg, #34a853 0%, #4caf50 100%);
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(52, 168, 83, 0.3);
}

.install-btn.open-app {
    background: linear-gradient(135deg, #1a73e8 0%, #4285f4 100%);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.2);
}

.install-btn.downloaded {
    background: linear-gradient(135deg, #34a853 0%, #4caf50 100%);
    box-shadow: 0 4px 12px rgba(52, 168, 83, 0.2);
}

.install-btn.update {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.2);
}

/* Success Animation */
.success-checkmark {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    animation: successPulse 0.6s ease-out;
}

.checkmark-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: checkmarkAppear 0.5s ease-out 0.3s both;
}

@keyframes successPulse {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes checkmarkAppear {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Ripple Effect */
.install-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    pointer-events: none;
}

.install-btn.ripple::before {
    width: 300px;
    height: 300px;
}

/* Download Speed Animation */
.download-speed {
    font-size: 11px;
    opacity: 0.9;
    animation: speedFlicker 2s ease-in-out infinite;
}

@keyframes speedFlicker {
    0%, 100% { opacity: 0.9; }
    50% { opacity: 0.7; }
}

.file-size-info {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 2px;
}

.downloaded-size {
    font-weight: 600;
}

.total-size {
    opacity: 0.8;
}

/* Smooth Animations */
* {
    transition: transform 0.2s ease, opacity 0.2s ease;
}

button:active {
    transform: scale(0.98);
}

.screenshot-item:hover {
    transform: translateY(-2px);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f3f4;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #dadce0;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #bdc1c6;
}