/* Padify Deep Link Landing Page Styles */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #000000;
    color: #ffffff;
    text-align: center;
    padding: 20px;
}

.container {
    max-width: 500px;
    width: 100%;
}

h1 {
    font-size: 3em;
    margin-bottom: 0.2em;
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.9;
    margin-bottom: 2em;
}

.env-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.3em 0.8em;
    border-radius: 20px;
    font-size: 0.8em;
    margin-bottom: 2em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Primary action button */
.fallback-button {
    display: inline-block;
    background: #ffffff;
    color: #000000;
    padding: 1em 2em;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    margin: 1em 0;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.fallback-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

.fallback-button:active {
    transform: translateY(0);
}

.fallback-button.retry {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 2px solid #ffffff;
}

.fallback-button.retry:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* App Store badges */
.stores {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2em 0;
}

.stores.hidden {
    display: none;
}

.store-badge {
    display: inline-block;
    transition: transform 0.2s, opacity 0.2s;
}

.store-badge:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.store-badge:active {
    transform: translateY(0);
}

.badge-img {
    height: 50px;
    width: auto;
}

.store-link-text {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 0.8em 1.5em;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95em;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.store-badge:hover .store-link-text {
    background: rgba(255, 255, 255, 0.2);
}

.store-link {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 0.8em 1.5em;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1em;
    transition: transform 0.2s, background 0.2s;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.store-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.store-link:active {
    transform: translateY(0);
}

/* Text elements */
.info-text {
    margin-top: 2em;
    font-size: 0.9em;
    opacity: 0.7;
    line-height: 1.6;
}

.or-divider {
    margin: 1.5em 0 0.5em 0;
    font-size: 0.95em;
    opacity: 0.6;
}

.url-scheme-info {
    margin-top: 1em;
    font-size: 0.75em;
    opacity: 0.5;
    font-family: monospace;
}

/* Status container & messages */
.status-container {
    margin: 2em 0;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-message {
    padding: 1.5em;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

/* Loading state */
.status-message.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1em;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Success state */
.status-message.success {
    background: rgba(76, 175, 80, 0.1);
    border-color: rgba(76, 175, 80, 0.3);
}

.check-icon {
    font-size: 3em;
    color: #4CAF50;
    margin-bottom: 0.2em;
}

/* Error state (app not installed) */
.status-message.error {
    background: rgba(244, 67, 54, 0.1);
    border-color: rgba(244, 67, 54, 0.3);
}

.error-title {
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 0.5em;
    color: #ff6b6b;
}

.error-subtitle {
    font-size: 0.95em;
    opacity: 0.8;
}

/* Info state (desktop) */
.status-message.info {
    background: rgba(33, 150, 243, 0.1);
    border-color: rgba(33, 150, 243, 0.3);
}

.info-title {
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 0.5em;
    color: #64b5f6;
}

.info-subtitle {
    font-size: 0.95em;
    opacity: 0.8;
}

/* OTP state */
.status-message.otp {
    background: rgba(156, 39, 176, 0.1);
    border-color: rgba(156, 39, 176, 0.3);
}

.otp-title {
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 0.8em;
}

.otp-code {
    font-size: 2.5em;
    font-weight: 700;
    letter-spacing: 0.3em;
    font-family: 'Courier New', monospace;
    color: #ab47bc;
    margin: 0.3em 0;
}

.otp-subtitle {
    font-size: 0.9em;
    opacity: 0.7;
    margin-top: 0.8em;
}

/* Debug section */
.debug-links {
    margin-top: 3em;
    padding-top: 2em;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 1em;
    justify-content: center;
    flex-wrap: wrap;
}

.debug-link {
    font-size: 0.75em;
    opacity: 0.4;
    color: #ffffff;
    text-decoration: none;
    padding: 0.4em 0.8em;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    transition: opacity 0.2s, background 0.2s;
}

.debug-link:hover {
    opacity: 0.7;
    background: rgba(255, 255, 255, 0.05);
}

.test-link {
    display: block;
    margin-top: 3em;
    font-size: 0.75em;
    font-family: monospace;
    opacity: 0.3;
    color: #ffffff;
    text-decoration: none;
}

.test-link:hover {
    opacity: 0.6;
    text-decoration: underline;
}

/* Language switch (rendered by deeplink.js) */
.lang-switch {
    margin-top: 1.5em;
    font-size: 0.8em;
    opacity: 0.5;
}

.lang-switch a {
    color: #ffffff;
    text-decoration: none;
    padding: 0.2em 0.3em;
}

.lang-switch a:hover {
    text-decoration: underline;
}

.lang-switch a[aria-current="true"] {
    font-weight: 600;
}

/* Responsive */
@media (max-width: 600px) {
    .otp-code {
        font-size: 2em;
        letter-spacing: 0.2em;
    }

    .spinner {
        width: 30px;
        height: 30px;
    }
}
