body {
    padding-bottom: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.hero-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: white;
}

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

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.feature-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    border: none;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    height: 100%;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    color: inherit;
    text-decoration: none;
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: white;
}

.feature-icon-pokedex {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
}

.feature-icon-leagues {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
}

.feature-icon-teams {
    background: linear-gradient(135deg, #a8edea, #fed6e3);
    color: #333 !important;
}

.feature-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.feature-description {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.5;
}

.stats-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem;
    margin-top: 2rem;
}

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

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    display: block;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .feature-title {
        font-size: 1.2rem;
    }
}

/* PWA Specific Styles */
@media (display-mode: standalone) {
    body {
        padding-top: env(safe-area-inset-top);
        padding-bottom: calc(80px + env(safe-area-inset-bottom));
    }
    
    .hero-section {
        margin-top: 1rem;
    }
}

/* PWA Install Banner */
#installButton,
#desktopInstallButton {
    border-radius: 15px;
    border: none;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    animation: slideDown 0.5s ease-out;
}

#desktopInstallButton {
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.9), rgba(23, 162, 184, 0.7));
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Notification Button Styles */
#notificationButton {
    transition: all 0.3s ease;
    border-radius: 25px;
    border: 2px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(5px);
}

#notificationButton:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
}

#notificationButton.btn-success {
    background: rgba(40, 167, 69, 0.8);
    border-color: rgba(40, 167, 69, 0.8);
    color: white;
}

#notificationButton.btn-success:hover {
    background: rgba(40, 167, 69, 0.9);
    border-color: rgba(40, 167, 69, 0.9);
}

/* Pulse animation for notification icon */
.notification-pulse {
    animation: pulse 2s infinite;
}

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

/* Loading spinner for PWA operations */
.pwa-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive improvements for PWA */
@media (max-width: 576px) {
    #installButton,
    #desktopInstallButton {
        margin: 0 -15px;
        border-radius: 0;
    }
    
    .hero-section {
        margin: 0 -15px;
        border-radius: 15px;
    }
    
    #notificationButton {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
}

/* Tablet responsive */
@media (max-width: 768px) and (min-width: 577px) {
    #installButton,
    #desktopInstallButton {
        border-radius: 10px;
    }
    
    #notificationButton {
        font-size: 1rem;
    }
}

/* Large desktop improvements */
@media (min-width: 1200px) {
    #installButton,
    #desktopInstallButton {
        border-radius: 20px;
        padding: 1rem 1.5rem;
    }
    
    #notificationButton {
        font-size: 1.1rem;
        padding: 0.75rem 1.5rem;
    }
}

/* PWA Install Toast Styles */
#installToast {
    max-width: 350px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    border: none;
    backdrop-filter: blur(10px);
}

#installToast .toast-header {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    border: none;
}

#installToast .toast-body {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

/* Install reminder toast styles */
.toast {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.toast .toast-header.bg-success {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
}

/* Toast animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.toast.showing {
    animation: slideInRight 0.5s ease-out;
}

#installToast.showing {
    animation: slideInDown 0.5s ease-out;
}

/* Pulse effect for install buttons */
.install-reminder-btn {
    animation: installPulse 2s infinite;
}

@keyframes installPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

/* Mobile toast adjustments */
@media (max-width: 576px) {
    #installToast {
        max-width: calc(100vw - 2rem);
        left: 1rem !important;
        right: 1rem !important;
        transform: none !important;
    }
    
    .toast {
        max-width: calc(100vw - 2rem);
    }
} 