/**
 * Pocket-Sommelier - Share Wine Feature Styles
 * Share-Button auf Weinkarten, Toast, Öffentliche Share-Seite
 * 
 * Nutzt bestehende CSS-Variablen aus main.css / themes.css
 */

/* =========================================================================
 * SHARE BUTTON - oben rechts auf jeder Weinkarte
 * ========================================================================= */

.scan-wine-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.scan-wine-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: var(--radius-full, 9999px);
    background: rgba(255, 255, 255, 0.12);
    color: inherit;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    -webkit-tap-highlight-color: transparent;
    padding: 0;
    flex-shrink: 0;
}

.scan-wine-share-btn:active {
    transform: scale(0.88);
    background: rgba(255, 255, 255, 0.22);
}

.scan-wine-share-btn.sharing {
    opacity: 0.4;
    pointer-events: none;
}

.scan-wine-share-btn svg {
    width: 18px;
    height: 18px;
}

/* =========================================================================
 * SHARE TOAST - Kurze Bestätigungsnachricht
 * ========================================================================= */

.scan-share-toast {
    position: fixed;
    bottom: calc(var(--nav-height, 70px) + var(--safe-area-bottom, 0px) + 16px);
    left: 50%;
    transform: translateX(-50%) translateY(16px);
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 10px 20px;
    border-radius: var(--radius-full, 9999px);
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    white-space: nowrap;
}

.scan-share-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}


/* =========================================================================
 * SHARED WINE PAGE - Öffentliche Ansicht für Empfänger
 * Wird geladen wenn ?share=TOKEN in der URL steht
 * ========================================================================= */

.scan-shared-page {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 24px 16px 40px;
    /* Dunkler Gradient passend zum Scan-Modul */
    background: linear-gradient(180deg, 
        var(--wine-950, #461320) 0%, 
        var(--wine-900, #722F37) 30%, 
        #1a1a2e 100%);
    color: #fff;
}

.scan-shared-header {
    text-align: center;
    margin-bottom: 20px;
    padding-top: env(safe-area-inset-top, 0px);
}

.scan-shared-app-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 13px;
    background: linear-gradient(135deg, rgba(197, 160, 89, 0.28) 0%, rgba(255, 255, 255, 0.15) 100%);
    border: 1px solid rgba(197, 160, 89, 0.25);
    margin-bottom: 8px;
    color: var(--gold, #C5A059);
}

.scan-shared-subtitle {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.scan-shared-card {
    margin-bottom: 20px;
}

/* Gericht-Hinweis auf der Share-Seite */
.scan-shared-dish-note {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm, 0.5rem);
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.65);
}

.scan-shared-dish-note strong {
    color: #fff;
}


/* =========================================================================
 * APP STORE BANNER - Download-Aufforderung auf Share-Seite
 * ========================================================================= */

.scan-shared-app-banner {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg, 1rem);
    padding: 20px;
    margin: 24px 0 16px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.scan-shared-app-banner-content {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}

.scan-shared-app-banner-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--gold, #C5A059), var(--gold-dark, #A8863D));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.scan-shared-app-banner-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.scan-shared-app-banner-text strong {
    font-size: 0.9375rem;
    font-family: 'Playfair Display', Georgia, serif;
    color: #fff;
}

.scan-shared-app-banner-text span {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.45;
}

.scan-shared-store-buttons {
    display: flex;
    gap: 10px;
}

.scan-shared-store-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: var(--radius-md, 0.75rem);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: transform 0.15s, opacity 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.scan-shared-store-btn:active {
    transform: scale(0.97);
}

.scan-store-apple {
    background: #fff;
    color: #000;
}

.scan-store-google {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.scan-shared-footer {
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 24px;
}


/* =========================================================================
 * RESPONSIVE
 * ========================================================================= */

@media (max-width: 340px) {
    .scan-shared-store-buttons {
        flex-direction: column;
    }
    
    .scan-wine-share-btn {
        width: 30px;
        height: 30px;
    }
    
    .scan-wine-share-btn svg {
        width: 16px;
        height: 16px;
    }
}
