/* A2HS Prompt Styles */
.a2hs-prompt {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.a2hs-prompt.active {
    opacity: 1;
    visibility: visible;
}

.a2hs-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    color: white;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(30px);
    transition: transform 0.3s ease;
}

.a2hs-prompt.active .a2hs-content {
    transform: translateY(0);
}

.a2hs-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

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

.a2hs-header {
    text-align: center;
    margin-bottom: 20px;
}

.a2hs-icon {
    font-size: 3em;
    margin-bottom: 10px;
}

.a2hs-header h3 {
    margin: 0;
    font-size: 1.5em;
    font-weight: bold;
}

.a2hs-body {
    margin-bottom: 25px;
}

.a2hs-body p {
    margin: 0 0 15px 0;
    text-align: center;
    font-size: 1.1em;
}

.a2hs-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.a2hs-features li {
    padding: 8px 0;
    font-size: 0.95em;
    display: flex;
    align-items: center;
}

.a2hs-features li:before {
    content: "✓";
    margin-right: 10px;
    font-weight: bold;
    color: #4ecdc4;
}

.a2hs-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.a2hs-install-btn,
.a2hs-ios-instructions-btn,
.a2hs-later-btn,
.a2hs-success-btn,
.a2hs-ok-btn,
.a2hs-got-it-btn {
    padding: 15px 20px;
    border: none;
    border-radius: 50px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.a2hs-install-btn,
.a2hs-ios-instructions-btn,
.a2hs-success-btn,
.a2hs-got-it-btn {
    background: #ff6b6b;
    color: white;
}

.a2hs-install-btn:hover,
.a2hs-ios-instructions-btn:hover,
.a2hs-success-btn:hover,
.a2hs-got-it-btn:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.a2hs-later-btn,
.a2hs-ok-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    backdrop-filter: blur(10px);
}

.a2hs-later-btn:hover,
.a2hs-ok-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* iOS Instructions */
.a2hs-ios-instructions {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    backdrop-filter: blur(10px);
}

.a2hs-ios-instructions p {
    margin: 0 0 10px 0;
    font-weight: bold;
}

.a2hs-ios-instructions ol {
    margin: 0;
    padding-left: 20px;
    text-align: left;
}

.a2hs-ios-instructions li {
    margin-bottom: 8px;
    font-size: 0.9em;
}

/* iOS Detail Instructions */
.a2hs-ios-detail {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    backdrop-filter: blur(10px);
}

.a2hs-ios-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    color: white;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.a2hs-ios-content h3 {
    text-align: center;
    margin: 0 0 25px 0;
    font-size: 1.6em;
}

.ios-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
}

.ios-step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.step-number {
    background: #ff6b6b;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content p {
    margin: 0 0 10px 0;
    font-size: 1.1em;
}

.step-visual {
    font-size: 2em;
    text-align: center;
    margin-top: 10px;
}

.ios-tips {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.ios-tips p {
    margin: 0;
    font-style: italic;
    text-align: center;
}

/* Success Message */
.a2hs-success,
.a2hs-already-installed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.a2hs-success-content,
.a2hs-already-content {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    border-radius: 20px;
    padding: 40px 30px;
    max-width: 400px;
    width: 90%;
    color: white;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.success-icon,
.already-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.a2hs-success-content h3,
.a2hs-already-content h3 {
    margin: 0 0 15px 0;
    font-size: 1.6em;
}

.a2hs-success-content p,
.a2hs-already-content p {
    margin: 0 0 25px 0;
    font-size: 1.1em;
    line-height: 1.5;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .a2hs-content,
    .a2hs-ios-content,
    .a2hs-success-content,
    .a2hs-already-content {
        padding: 25px 20px;
        margin: 20px;
    }
    
    .a2hs-header h3 {
        font-size: 1.3em;
    }
    
    .a2hs-body p {
        font-size: 1em;
    }
    
    .a2hs-features li {
        font-size: 0.9em;
    }
    
    .ios-step {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .step-number {
        align-self: center;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .a2hs-prompt,
    .a2hs-content,
    .a2hs-close,
    .a2hs-install-btn,
    .a2hs-ios-instructions-btn,
    .a2hs-later-btn {
        transition: none;
    }
    
    .a2hs-prompt.active .a2hs-content {
        transform: none;
    }
    
    .a2hs-install-btn:hover,
    .a2hs-ios-instructions-btn:hover,
    .a2hs-success-btn:hover,
    .a2hs-got-it-btn:hover {
        transform: none;
    }
}