/* Android App Installation Styles */

.android-app-install-notification {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 400px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    animation: slideUpIn 0.5s ease-out;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.install-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.install-icon {
    text-align: center;
    margin-bottom: 10px;
}

.install-icon img {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.install-icon i {
    font-size: 48px;
    color: rgba(255, 255, 255, 0.9);
}

.install-text h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
}

.install-text p {
    margin: 0 0 15px 0;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    opacity: 0.9;
}

.app-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 15px;
}

.feature {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.install-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-install {
    flex: 1;
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-install:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.btn-install i {
    font-size: 16px;
}

.btn-close {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* App Installed Success Message */
.app-installed-success {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(40, 167, 69, 0.3);
    z-index: 10001;
    animation: slideDownIn 0.5s ease-out;
    max-width: 400px;
    width: 90%;
}

.success-content {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.success-icon {
    font-size: 32px;
    color: rgba(255, 255, 255, 0.9);
}

.success-text h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
}

.success-text p {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    opacity: 0.9;
}

/* Animations */
@keyframes slideUpIn {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

/* Responsive Design */
@media (max-width: 480px) {
    .android-app-install-notification {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }
    
    .install-content {
        padding: 15px;
    }
    
    .install-text h3 {
        font-size: 16px;
    }
    
    .install-text p {
        font-size: 13px;
    }
    
    .app-features {
        gap: 6px;
    }
    
    .feature {
        font-size: 11px;
        padding: 4px 10px;
    }
    
    .btn-install {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .btn-close {
        padding: 10px;
    }
}

/* Hide on very small screens */
@media (max-width: 320px) {
    .android-app-install-notification {
        display: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .android-app-install-notification {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    }
    
    .btn-install:hover {
        box-shadow: 0 4px 12px rgba(40, 167, 69, 0.6);
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .android-app-install-notification {
        border: 2px solid white;
    }
    
    .btn-install {
        border: 2px solid white;
    }
    
    .btn-close {
        border: 2px solid white;
    }
}

/* Rating Prompt Styles */
.android-rating-notification {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 450px;
    background: linear-gradient(135deg, #FF6B6B 0%, #FFE66D 100%);
    color: white;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(255, 107, 107, 0.4);
    z-index: 10001;
    animation: slideUpIn 0.6s ease-out;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.rating-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rating-icon {
    text-align: center;
    margin-bottom: 5px;
}

.rating-icon i {
    font-size: 48px;
    color: #FFD700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.rating-text h3 {
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.rating-text p {
    margin: 0 0 20px 0;
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
    opacity: 0.95;
}

.rating-stars {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
}

.star {
    font-size: 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ccc;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.star:hover {
    transform: scale(1.2);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.rating-subtitle {
    font-size: 13px;
    opacity: 0.8;
    font-style: italic;
    margin: 0;
}

.rating-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-rate-now {
    flex: 1;
    background: #28a745;
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.btn-rate-now:hover {
    background: #218838;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.5);
}

.btn-rate-now i {
    font-size: 18px;
}

/* Thank You Message */
.rating-thank-you {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(40, 167, 69, 0.4);
    z-index: 10002;
    animation: slideDownIn 0.5s ease-out;
    max-width: 450px;
    width: 90%;
}

.thank-you-content {
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.thank-you-icon {
    font-size: 36px;
    color: #FF69B4;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.thank-you-text h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 700;
}

.thank-you-text p {
    margin: 0 0 8px 0;
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.9;
}

.thank-you-text .highlight {
    color: #FFD700;
    font-weight: 600;
    font-size: 13px;
    margin-top: 10px;
}

/* Responsive Design for Rating */
@media (max-width: 480px) {
    .android-rating-notification {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }
    
    .rating-content {
        padding: 20px;
    }
    
    .rating-text h3 {
        font-size: 18px;
    }
    
    .rating-text p {
        font-size: 14px;
    }
    
    .star {
        font-size: 28px;
    }
    
    .btn-rate-now {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .rating-thank-you {
        left: 10px;
        right: 10px;
        transform: none;
        width: auto;
    }
}

/* Hide rating on very small screens */
@media (max-width: 320px) {
    .android-rating-notification,
    .rating-thank-you {
        display: none;
    }
}
