/* Oferim.ro — Custom Styles */

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0F0E17;
}
::-webkit-scrollbar-thumb {
    background: #2E2E48;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3D3D5C;
}

/* Selection */
::selection {
    background: rgba(123, 104, 238, 0.3);
    color: #fff;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Body gradient noise */
body {
    background-color: #0F0E17;
    position: relative;
}

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

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Navbar blur background */
#navbar {
    background: rgba(15, 14, 23, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

#navbar.scrolled {
    background: rgba(15, 14, 23, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Gradient text animation */
@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.gradient-animate {
    background-size: 200% auto;
    animation: gradient-shift 3s ease infinite;
}

/* Card hover effects */
.card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Button pulse effect */
.btn-pulse {
    position: relative;
    overflow: hidden;
}
.btn-pulse::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}
.btn-pulse:hover::after {
    transform: translateX(100%);
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    background: #1A1A2E;
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 1rem;
    color: #fff;
    font-size: 0.875rem;
    z-index: 9999;
    transform: translateY(120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    max-width: 400px;
}
.toast.show {
    transform: translateY(0);
    opacity: 1;
}
.toast .toast-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, #E94560, #7B68EE, #00D9FF);
    border-radius: 1rem 1rem 0 0;
    animation: toast-progress 3s linear forwards;
}
@keyframes toast-progress {
    from { width: 100%; }
    to { width: 0%; }
}

/* Fade in animation for elements on scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom checkbox styling */
input[type="checkbox"] {
    accent-color: #00D9FF;
}

/* Radio card checked state enhancement */
input[type="radio"]:checked + div {
    border-color: rgba(0, 217, 255, 0.5);
    background: rgba(0, 217, 255, 0.05);
}
input[type="radio"]:checked + div svg {
    color: #00D9FF;
}

/* Toggle switch */
.peer:checked ~ div {
    background-color: #00D9FF;
}
.peer:checked ~ div::after {
    transform: translateX(100%);
}

/* Details/summary (FAQ) */
details summary::-webkit-details-marker {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #00D9FF;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Input autofill styling */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff;
    -webkit-box-shadow: 0 0 0px 1000px #232136 inset;
    transition: background-color 5000s ease-in-out 0s;
}

/* Smooth image loading */
img {
    transition: opacity 0.3s ease;
}

/* Print styles */
@media print {
    body { background: #fff; color: #000; }
    nav, footer, .toast { display: none; }
}
