/**
 * Custom CSS Styles for Yazar Portfolyo Theme
 * 
 * @package YazarSite
 * @version 1.0.0
 */

/* ================================
   Custom Scrollbar
   ================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 20px;
}

.dark ::-webkit-scrollbar-thumb {
    background-color: #475569;
}

/* ================================
   Animations
   ================================ */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

/* ================================
   Typography Prose Override
   ================================ */
.prose {
    max-width: 65ch;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
    font-family: 'Merriweather', serif;
}

.prose a {
    color: #4f46e5;
    text-decoration: none;
}

.prose a:hover {
    text-decoration: underline;
}

.dark .prose a {
    color: #818cf8;
}

.prose blockquote {
    font-style: italic;
    border-left-color: #4f46e5;
}

.dark .prose blockquote {
    border-left-color: #818cf8;
}

/* ================================
   Line Clamp
   ================================ */
.line-clamp-1 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.line-clamp-3 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.line-clamp-4 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

/* ================================
   Custom Logo Styling
   ================================ */
.custom-logo-link {
    display: inline-block;
}

.custom-logo {
    max-height: 50px;
    width: auto;
}

/* ================================
   Navigation Styling
   ================================ */
.nav-menu-wrapper {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* ================================
   WordPress Default Styles Override
   ================================ */
.nav-links {
    display: flex;
    gap: 0.5rem;
}

.nav-links a,
.nav-links span {
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    color: #64748b;
    transition: all 0.2s;
}

.nav-links a:hover {
    background-color: #f8fafc;
    color: #4f46e5;
}

.dark .nav-links a,
.dark .nav-links span {
    border-color: #334155;
    color: #94a3b8;
}

.dark .nav-links a:hover {
    background-color: #1e293b;
    color: #818cf8;
}

.nav-links .current {
    background-color: #4f46e5;
    color: white;
    border-color: #4f46e5;
}

/* ================================
   Form Styling
   ================================ */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.dark input:focus,
.dark textarea:focus,
.dark select:focus {
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.1);
}

/* ================================
   Details/Summary Styling
   ================================ */
details summary::-webkit-details-marker {
    display: none;
}

details summary {
    list-style: none;
}

/* ================================
   Responsive Utilities
   ================================ */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ================================
   Print Styles
   ================================ */
@media print {

    header,
    footer,
    .no-print {
        display: none !important;
    }

    main {
        padding-top: 0 !important;
    }
}