/**
 * assets/css/style.css
 * Fleava-inspired custom styles for ArthiquePorto CMS
 */

/* Hide default cursor on desktop screens for custom cursor experience */
@media (min-width: 768px) {
    body, a, button, select, input, textarea, .cursor-pointer, [role="button"] {
        cursor: none !important;
    }
}

/* Custom follow cursors */
.custom-cursor-dot {
    width: 6px;
    height: 6px;
    background-color: #ffffff;
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate3d(-50%, -50%, 0);
    will-change: transform;
    pointer-events: none;
    z-index: 100001;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
    mix-blend-mode: difference;
}
.custom-cursor-ring {
    width: 36px;
    height: 36px;
    border: 1.5px solid #ffffff;
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate3d(-50%, -50%, 0);
    will-change: transform;
    pointer-events: none;
    z-index: 100000;
    transition: width 0.3s, height 0.3s, background-color 0.3s, border-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 8px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-indent: 0.15em;
    mix-blend-mode: difference;
}
.dark .custom-cursor-dot {
    background-color: #ffffff;
}
.dark .custom-cursor-ring {
    border: 1.5px solid #ffffff;
}

/* Cursor hovered action state */
.custom-cursor-ring.hovered {
    width: 76px;
    height: 76px;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    color: #ffffff;
}
.dark .custom-cursor-ring.hovered {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    color: #ffffff;
}

/* Liquid animated gradient background shapes */
.liquid-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.08;
    pointer-events: none;
    z-index: 1;
    transform: translate3d(0, 0, 0);
    will-change: transform;
}
.dark .liquid-blob {
    opacity: 0.05;
    mix-blend-mode: screen;
}

/* Custom scrollbars */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(8, 8, 12, 0.05);
}
.dark .custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(8, 8, 12, 0.5);
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.15);
    border-radius: 9px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.35);
}

.dark .custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.2);
}
.dark .custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.45);
}

/* Hide scrollbar utility for sliders */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Horizontal Slider Custom Padding */
.scroll-padding {
    padding-left: calc((100vw - 1280px) / 2 + 24px);
    padding-right: calc((100vw - 1280px) / 2 + 24px);
}
@media (max-width: 1280px) {
    .scroll-padding {
        padding-left: 24px;
        padding-right: 24px;
    }
}

/* Rich-text content formatting styling overrides (Quill content) */
.prose {
    font-size: 0.95rem;
    line-height: 1.9;
}
@media (min-width: 768px) {
    .prose {
        font-size: 1.05rem;
    }
}

.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 300 !important;
    text-transform: none !important;
    line-height: 1.45 !important;
    color: #1e293b; /* slate-800 */
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}
.dark .prose h1, .dark .prose h2, .dark .prose h3, .dark .prose h4, .dark .prose h5, .dark .prose h6 {
    color: #ffffff;
}

.prose h1 { font-size: 2.25rem; }
.prose h2 { font-size: 1.85rem; }
.prose h3 { font-size: 1.45rem; }

.prose p {
    margin-bottom: 1.5rem;
    color: #475569; /* slate-600 */
}
.dark .prose p {
    color: #cbd5e1; /* slate-300 */
}

.prose strong {
    font-weight: 700;
    color: #0f172a; /* slate-900 */
}
.dark .prose strong {
    color: #ffffff;
}

.prose em {
    font-style: italic;
    color: #475569;
}
.dark .prose em {
    color: #94a3b8;
}

.prose a {
    color: #4f46e5; /* indigo-600 */
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s ease;
}
.dark .prose a {
    color: #818cf8; /* indigo-400 */
}
.prose a:hover {
    color: #6366f1;
}
.dark .prose a:hover {
    color: #a5b4fc;
}

.prose blockquote {
    border-left: 3px solid #4f46e5;
    padding-left: 1.25rem;
    margin: 1.75rem 0;
    font-style: italic;
    color: #475569;
}
.dark .prose blockquote {
    border-left: 3px solid #6366f1;
    color: #94a3b8;
}

/* Ordered & Unordered lists styled appropriately */
.prose ul, .prose ol {
    margin: 1.25rem 0;
    padding-left: 1.5rem;
}
.prose ul {
    list-style-type: disc;
}
.prose ol {
    list-style-type: decimal;
}
.prose li {
    margin-bottom: 0.5rem;
    color: #475569;
}
.dark .prose li {
    color: #cbd5e1;
}

/* Code block styles */
.prose pre {
    background-color: #f8fafc;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    padding: 1rem;
    font-family: monospace;
    font-size: 0.875rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    color: #334155;
}
.dark .prose pre {
    background-color: #0f0f16;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
}

.prose code {
    background-color: rgba(0, 0, 0, 0.04);
    border-radius: 4px;
    padding: 0.2rem 0.4rem;
    font-family: monospace;
    font-size: 0.875rem;
    color: #b81d24;
}
.dark .prose code {
    background-color: rgba(255, 255, 255, 0.05);
    color: #fda4af;
}

/* Smooth Image Scale adjustments */
.scale-102:hover {
    transform: scale(1.02);
}

/* Mix Blend mode overlays and z-indexes for blog list row items */
.blog-row-item {
    position: relative;
    z-index: 10;
}
.blog-row-item-text {
    position: relative;
    z-index: 20;
    mix-blend-mode: difference;
    transition: color 0.3s ease;
}
.dark .blog-row-item-text {
    color: #f1f5f9;
}
#blog-hover-preview {
    pointer-events: none;
    z-index: 15;
}

/* Masonry layout column helper classes */
.masonry-gallery {
    column-count: 1 !important;
    column-gap: 1.5rem;
}
@media (min-width: 640px) {
    .masonry-gallery {
        column-count: 2 !important;
    }
}
@media (min-width: 1024px) {
    .masonry-gallery {
        column-count: 3 !important;
    }
}
.masonry-gallery .gallery-card {
    display: inline-block;
    width: 100%;
    margin-bottom: 1.5rem;
    break-inside: avoid;
}

/* Custom Animated Mobile Hamburger Toggler */
#nav-toggle.open .nav-toggle-bar-1 {
    transform: rotate(45deg) translate(4px, 4px);
}
#nav-toggle.open .nav-toggle-bar-2 {
    opacity: 0;
    transform: scaleX(0);
}
#nav-toggle.open .nav-toggle-bar-3 {
    transform: rotate(-45deg) translate(4px, -4px);
}

/* Slide Drawer & Fullscreen Menu active state */
#mobile-nav.open {
    transform: translateX(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}
#mobile-nav-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

/* WYSIWYG editor & Frontend body spacing overrides */
.ql-editor p, .blog-body p, .project-body p, .prose p {
    margin-bottom: 1.5rem !important;
}
.ql-editor h1, .ql-editor h2, .ql-editor h3, .ql-editor h4, .ql-editor h5, .ql-editor h6,
.blog-body h1, .blog-body h2, .blog-body h3, .blog-body h4,
.project-body h1, .project-body h2, .project-body h3, .project-body h4,
.prose h1, .prose h2, .prose h3, .prose h4 {
    margin-top: 2.0rem !important;
    margin-bottom: 1.0rem !important;
    font-weight: 700 !important;
}
.ql-editor ul, .ql-editor ol, .blog-body ul, .blog-body ol, .project-body ul, .project-body ol, .prose ul, .prose ol {
    margin-bottom: 1.5rem !important;
    padding-left: 1.5rem !important;
}
.ql-editor ul, .blog-body ul, .project-body ul, .prose ul {
    list-style-type: disc !important;
}
.ql-editor ol, .blog-body ol, .project-body ol, .prose ol {
    list-style-type: decimal !important;
}
