/* SpotShare — Custom styles */

.tab-btn.active {
    background: white;
    color: #2563eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tab-btn:not(.active) {
    color: #6b7280;
}

.star-btn {
    cursor: pointer;
    transition: transform 0.15s;
}

.star-btn:active {
    transform: scale(1.2);
}

.star-btn svg {
    transition: fill 0.15s, color 0.15s;
}

.location-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.location-card:active {
    transform: scale(0.98);
}

.photo-preview {
    aspect-ratio: 1;
    object-fit: cover;
}

.gps-pulse {
    animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-ring {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.modal-backdrop {
    backdrop-filter: blur(4px);
}

.safe-bottom {
    padding-bottom: env(safe-area-inset-bottom, 0);
}

/* Scrollbar hide for photo strip */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Toast animation */
.toast-enter {
    animation: toast-in 0.3s ease-out;
}

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

.type-badge-restaurant { background: #fef3c7; color: #92400e; }
.type-badge-hotel { background: #dbeafe; color: #1e40af; }
.type-badge-monument { background: #fce7f3; color: #9d174d; }
.type-badge-nature { background: #d1fae5; color: #065f46; }
.type-badge-shopping { background: #ede9fe; color: #5b21b6; }
.type-badge-autre { background: #f3f4f6; color: #374151; }
.type-badge-custom { background: #e0e7ff; color: #3730a3; }

#map-section { min-height: 16rem; }
#map-error { font-size: 0.875rem; color: #6b7280; }

.address-result:active { background: #f3f4f6; }

.visibility-filter.active,
.filter-btn.active { }

#google-btn-container iframe { margin: 0 auto; }
#google-section { min-height: 44px; }

body.is-offline #page-title::after {
    content: ' (hors ligne)';
    font-size: 0.65em;
    font-weight: 500;
    color: #f59e0b;
    margin-left: 0.35rem;
}

@media (display-mode: standalone) {
    body {
        -webkit-user-select: none;
        user-select: none;
    }
    input, textarea, [contenteditable] {
        -webkit-user-select: text;
        user-select: text;
    }
}

.photo-attributions a {
    color: #6b7280;
    text-decoration: underline;
}

.photo-attributions .photo-attribution-item + .photo-attribution-item::before {
    content: ' · ';
}
