/* DisRandevu.com - Ana CSS */

/* Base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { min-height: 100vh; }

/* Screen reader only (accessibility) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0; }

/* Selection */
::selection { background: #0ea5e9; color: #fff; }

/* Animations */
@keyframes fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slide-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-soft {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.animate-fade-in { animation: fade-in 0.3s ease-out; }
.animate-slide-up { animation: slide-up 0.4s ease-out; }
.animate-float { animation: float 3s ease-in-out infinite; }

/* Scroll-triggered reveal */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Line clamp 4 */
.line-clamp-4 { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; }

/* Blur Effect */
.blur-contact { filter: blur(4px); user-select: none; pointer-events: none; }

/* Breadcrumb */
.breadcrumb-nav { overflow: hidden; }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 0; list-style: none; margin: 0; padding: 0; }
.breadcrumb-item { display: inline-flex; align-items: center; font-size: 0.8125rem; color: #64748b; white-space: nowrap; }
.breadcrumb-item a { color: #0ea5e9; text-decoration: none; transition: color 0.15s; }
.breadcrumb-item a:hover { color: #0369a1; text-decoration: underline; }
.breadcrumb-item.active { color: #334155; font-weight: 500; }
.breadcrumb-separator { display: inline-flex; align-items: center; color: #cbd5e1; margin: 0 0.25rem; flex-shrink: 0; }
@media (max-width: 639px) {
    .breadcrumb { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px; }
    .breadcrumb::-webkit-scrollbar { display: none; }
    .breadcrumb-item { font-size: 0.75rem; }
    .breadcrumb-separator svg { width: 12px; height: 12px; }
}

/* Profile Tabs */
.profile-tab.active {
    color: #0ea5e9;
    border-bottom-color: #0ea5e9;
    font-weight: 600;
}

/* Prose Styles */
.prose h2 { font-size: 1.25rem; font-weight: 700; margin-top: 1.5em; margin-bottom: 0.5em; }
.prose h3 { font-size: 1.1rem; font-weight: 600; margin-top: 1.25em; margin-bottom: 0.5em; }
.prose p { margin-bottom: 1em; }
.prose ul, .prose ol { padding-left: 1.5em; margin-bottom: 1em; }
.prose li { margin-bottom: 0.25em; }
.prose a { color: #0ea5e9; text-decoration: underline; }
.prose img { border-radius: 0.75rem; margin: 1em 0; }
.prose blockquote {
    border-left: 3px solid #0ea5e9;
    padding-left: 1em;
    margin: 1em 0;
    color: #475569;
    font-style: italic;
}

/* Line Clamp */
.line-clamp-1 { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; line-clamp: 1; -webkit-box-orient: vertical; }
.line-clamp-2 { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; }
.line-clamp-3 { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Tooltip */
[data-tooltip] { position: relative; }
[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: #fff;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
    z-index: 50;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
    max-width: 420px;
    width: calc(100% - 2rem);
}
.toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: 0.875rem;
    background: #fff;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    animation: toast-in 0.35s cubic-bezier(0.21,1.02,0.73,1) forwards;
    will-change: transform, opacity;
}
.toast.toast-removing {
    animation: toast-out 0.3s cubic-bezier(0.06,0.71,0.55,1) forwards;
}
.toast-success { border-left: 4px solid #22c55e; }
.toast-error { border-left: 4px solid #ef4444; }
.toast-warning { border-left: 4px solid #f59e0b; }
.toast-info { border-left: 4px solid #0ea5e9; }
.toast-icon {
    width: 2rem; height: 2rem; border-radius: 0.5rem;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.toast-success .toast-icon { background: #f0fdf4; color: #22c55e; }
.toast-error .toast-icon { background: #fef2f2; color: #ef4444; }
.toast-warning .toast-icon { background: #fffbeb; color: #f59e0b; }
.toast-info .toast-icon { background: #f0f9ff; color: #0ea5e9; }
.toast-body { flex: 1; min-width: 0; }
.toast-body p { font-size: 0.8125rem; font-weight: 500; color: #1e293b; line-height: 1.4; margin: 0; }
.toast-close {
    flex-shrink: 0; background: none; border: none; cursor: pointer;
    color: #94a3b8; padding: 0.25rem; border-radius: 0.375rem; transition: all 0.15s;
}
.toast-close:hover { color: #475569; background: #f1f5f9; }
.toast-progress {
    position: absolute; bottom: 0; left: 4px; right: 0; height: 3px;
    border-radius: 0 0 0.875rem 0.875rem; overflow: hidden;
}
.toast-progress-bar {
    height: 100%; border-radius: 3px;
    animation: toast-progress 4s linear forwards;
}
.toast-success .toast-progress-bar { background: #22c55e; }
.toast-error .toast-progress-bar { background: #ef4444; }
.toast-warning .toast-progress-bar { background: #f59e0b; }
.toast-info .toast-progress-bar { background: #0ea5e9; }

@keyframes toast-in {
    from { opacity: 0; transform: translateX(100px) scale(0.95); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes toast-out {
    from { opacity: 1; transform: translateX(0) scale(1); max-height: 200px; margin-bottom: 0; }
    to { opacity: 0; transform: translateX(100px) scale(0.95); max-height: 0; margin-bottom: -0.5rem; }
}
@keyframes toast-progress {
    from { width: 100%; }
    to { width: 0%; }
}

/* Gallery Lightbox */
.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.gallery-lightbox img { max-width: 100%; max-height: 90vh; object-fit: contain; border-radius: 0.5rem; }

/* FAQ Accordion */
.faq-item .faq-answer { transition: all 0.2s ease; }
.faq-item.open .faq-icon { transform: rotate(180deg); }

/* Star Rating Interactive */
.rating-star { cursor: pointer; transition: all 0.15s ease; }
.rating-star.active i, .rating-star:hover i { color: #facc15; fill: #facc15; }

/* Focus Styles */
input:focus, select:focus, textarea:focus, button:focus-visible {
    outline: none;
}

/* Mobile zoom prevention — iOS zooms when font-size < 16px */
@media screen and (max-width: 767px) {
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="tel"],
    input[type="url"],
    input[type="search"],
    input[type="date"],
    input[type="time"],
    input[type="datetime-local"],
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* Prevent touch callout and text size adjust on mobile */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Prevent pull-to-refresh and overscroll bounce on mobile */
body {
    overscroll-behavior: none;
    -webkit-overflow-scrolling: touch;
}

/* Form Validation */
input:invalid:not(:placeholder-shown), textarea:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
}

/* Print */
@media print {
    header, footer, aside, nav, .no-print { display: none !important; }
    body { background: white; }
}
