/*
Theme Name: Aldinara Creative
Theme URI: https://digital.aldinara.co.id
Author: PT Aldinara Digitech Innovation
Author URI: https://aldinara.co.id
Description: Modern news blog theme for Aldinara Creative — inspired by Kompas.com with Medical SaaS 2026 design language. Built with Tailwind CSS Play CDN.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aldinara-creative
Tags: news, blog, tailwind, responsive, modern
*/

/* ============================================================
   ALDINARA CREATIVE — Custom CSS Layer
   Tailwind handles most styling, this file handles
   WordPress-specific overrides and custom animations
   ============================================================ */

/* Reading Progress Bar */
#reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563EB, #7C3AED);
    width: 0%;
    z-index: 9999;
    transition: width 0.1s linear;
}

/* Breaking News Ticker */
@keyframes ticker {
    0%   { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}
.ticker-content {
    animation: ticker 40s linear infinite;
    white-space: nowrap;
    display: inline-block;
}
.ticker-content:hover { animation-play-state: paused; }

/* Frosted Glass Header */
.header-glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

/* Article Typography */
.article-body {
    font-family: 'Inter', sans-serif;
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #334155;
}
.article-body > p:first-of-type::first-letter {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    float: left;
    line-height: 0.85;
    margin-right: 0.15em;
    margin-top: 0.1em;
    color: #2563EB;
}
.article-body h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0F172A;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #E2E8F0;
}
.article-body h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #0F172A;
    margin: 1.5rem 0 0.75rem;
}
.article-body p { margin-bottom: 1.25rem; }
.article-body a {
    color: #2563EB;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.article-body a:hover { color: #1D4ED8; }
.article-body blockquote {
    border-left: 4px solid #2563EB;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: #F0F7FF;
    border-radius: 0 0.75rem 0.75rem 0;
    font-style: italic;
    color: #475569;
    font-size: 1.1rem;
}
.article-body ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1.25rem; }
.article-body ol { list-style: decimal; padding-left: 1.5rem; margin-bottom: 1.25rem; }
.article-body li { margin-bottom: 0.4rem; }
.article-body img {
    border-radius: 0.75rem;
    width: 100%;
    height: auto;
    margin: 1.5rem 0;
}
.article-body figure figcaption {
    font-size: 0.8rem;
    color: #94A3B8;
    text-align: center;
    margin-top: -1rem;
    margin-bottom: 1.5rem;
}
.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}
.article-body th {
    background: #0F172A;
    color: white;
    padding: 0.75rem 1rem;
    text-align: left;
}
.article-body td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #E2E8F0;
}
.article-body tr:hover td { background: #F8FAFC; }

/* Card hover effect */
.card-hover {
    transition: all 0.2s ease;
}
.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

/* Category color badges */
.cat-teknologi   { background: #EFF6FF; color: #2563EB; }
.cat-ai          { background: #F5F3FF; color: #7C3AED; }
.cat-desain      { background: #FFF0F7; color: #DB2777; }
.cat-bisnis      { background: #ECFDF5; color: #059669; }
.cat-tutorial    { background: #FFF7ED; color: #EA580C; }
.cat-berita      { background: #FEF2F2; color: #DC2626; }
.cat-gaya-hidup  { background: #ECFEFF; color: #0891B2; }

/* Sticky TOC */
.toc-sticky {
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}
.toc-sticky::-webkit-scrollbar { width: 4px; }
.toc-sticky::-webkit-scrollbar-track { background: #F1F5F9; }
.toc-sticky::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 2px; }

/* Search overlay */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    padding-top: 15vh;
    justify-content: center;
}

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

/* WordPress alignments */
.alignleft  { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 1.5rem auto; }
.alignwide  { width: 100%; }
.alignfull  { width: 100vw; position: relative; left: 50%; transform: translateX(-50%); }

/* WP comments */
.comment-form input,
.comment-form textarea {
    border: 1px solid #E2E8F0;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    width: 100%;
    font-family: 'Inter', sans-serif;
}
.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #2563EB;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Pagination */
.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.15s;
    text-decoration: none;
    color: #475569;
    border: 1px solid #E2E8F0;
    margin: 0 2px;
}
.page-numbers:hover { background: #F0F7FF; color: #2563EB; border-color: #2563EB; }
.page-numbers.current { background: #2563EB; color: white; border-color: #2563EB; }

/* Image skeleton loader */
.img-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton 1.5s infinite;
}
@keyframes skeleton {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Mobile menu */
.mobile-menu {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}
.mobile-menu.open { transform: translateX(0); }

/* Scrollbar global */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #F8FAFC; }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94A3B8; }
