/**
 * HyrEGjej — Custom CSS
 * 
 * Stile shtesë që Tailwind CDN nuk i mbulon:
 * - Animacione
 * - Scrollbar hiding
 * - Fade-in efekte
 * - Selection color
 * - Focus styles
 * 
 * @package HyrEGjej
 * @since   3.0
 */

::selection {
    background: rgba(12, 125, 129, 0.2);
    color: rgb(5, 54, 56);
}

html {
    scroll-behavior: smooth;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in:nth-child(3) { transition-delay: 0.2s; }
.fade-in:nth-child(4) { transition-delay: 0.3s; }
.fade-in:nth-child(5) { transition-delay: 0.4s; }
.fade-in:nth-child(6) { transition-delay: 0.5s; }

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}
.animate-float { animation: float 4s ease-in-out infinite; }
.animate-float-delayed { animation: float 5s ease-in-out infinite; animation-delay: 1.5s; }

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(12, 125, 129, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(12, 125, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(12, 125, 129, 0); }
}
.pulse-glow { animation: pulse-glow 2s infinite; }

.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;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.animate-spin {
    animation: spin 1s linear infinite;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible,
button:focus-visible {
    outline: 2px solid rgba(12, 125, 129, 0.5);
    outline-offset: 2px;
}

.hyregjej-toast {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pill-btn {
    display: block;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(12, 125, 129, 0.1);
    color: rgb(5, 54, 56);
    background: white;
    transition: all 0.2s;
    white-space: nowrap;
    cursor: pointer;
}
.pill-btn:hover {
    background: rgba(224, 251, 251, 0.3);
}
.peer:checked + .pill-btn {
    background: rgb(12, 125, 129);
    color: white;
    border-color: rgb(12, 125, 129);
    box-shadow: 0 4px 6px -1px rgba(12, 125, 129, 0.2);
}

.menu-item a {
    text-decoration: none;
    transition: color 0.2s;
    position: relative;
}
.menu-item a:hover {
    color: rgb(12, 125, 129);
}
.menu-item a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: rgb(12, 125, 129);
    transition: width 0.2s;
    border-radius: 1px;
}
.menu-item a:hover::after {
    width: 100%;
}

.page-numbers {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    align-items: center;
    padding: 0;
    margin: 0;
}
.page-numbers li a,
.page-numbers li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(12, 125, 129, 0.1);
    color: rgb(5, 54, 56);
    transition: all 0.2s;
    text-decoration: none;
}
.page-numbers li a:hover {
    background: rgba(224, 251, 251, 0.3);
    border-color: rgba(12, 125, 129, 0.3);
}
.page-numbers li span.current {
    background: rgb(12, 125, 129);
    color: white;
    border-color: rgb(12, 125, 129);
}

@media (max-width: 640px) {
    .font-display { letter-spacing: -0.01em; }
}

.job-card-default {
    position: relative;
    border: none;
}
.job-card-default::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(12, 125, 129, 0.12);
    border-left-width: 2.5px;
    -webkit-mask-image: linear-gradient(to right, black 0%, black 40%, transparent 100%);
    mask-image: linear-gradient(to right, black 0%, black 40%, transparent 100%);
    pointer-events: none;
    z-index: 1;
    transition: border-color 0.3s;
}
.job-card-default:hover::before {
    border-left-color: rgba(12, 125, 129, 0.35);
}
