/*
Theme Name: Ustari.ge - საინფორმაციო პორტალი
Theme URI: https://ustari.ge/
Author: Ustari Media Team
Author URI: https://ustari.ge/
Description: საინფორმაციო პორტალი „უსტარი • USTARI.GE“ - სიტყვის თავისუფლება პასუხისმგებლობაა! სრულად ადაპტირებული თანამედროვე ქართული მედია თემა.
Version: 2.2.0
Text Domain: ustari-news
*/

:root {
    --ustari-darkest: #04151F;
    --ustari-dark: #072536;
    --ustari-primary: #0B3B54;
    --ustari-teal: #0F5272;
    --ustari-gold: #C8B294;
    --ustari-gold-light: #DFC9AC;
    --ustari-gold-dark: #A68E6E;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    max-width: 100vw;
    scroll-behavior: smooth;
    font-family: 'FiraGO', 'Noto Sans Georgian', sans-serif;
    background-color: #F4F7F9;
    color: #04151F;
    -webkit-tap-highlight-color: transparent;
}

.mtavruli {
    font-feature-settings: "case" on;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

h1, h2, h3, h4, .headline-safe {
    overflow-wrap: anywhere;
    word-break: normal;
    line-height: 1.38;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #E2E8F0;
}
::-webkit-scrollbar-thumb {
    background: #0B3B54;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #C8B294;
}

.feed-scroll::-webkit-scrollbar {
    width: 4px;
}
.feed-scroll::-webkit-scrollbar-thumb {
    background: #C8B294;
    border-radius: 9999px;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Ustari Brand Gradients */
.ustari-bg-gradient {
    background: radial-gradient(circle at 60% 35%, #115E83 0%, #0B3B54 45%, #051A26 100%);
}
.ustari-header-gradient {
    background: linear-gradient(135deg, #04151F 0%, #093247 52%, #0F5272 100%);
}

/* News Card Hover */
.news-card {
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease, border-color 0.22s ease;
}
@media (hover: hover) {
    .news-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 14px 28px -8px rgba(4, 21, 31, 0.14);
        border-color: #C8B294;
    }
    .news-card:hover .card-img {
        transform: scale(1.05);
    }
}
.card-img {
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Ticker Animation */
@keyframes tickerMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.ticker-track {
    display: flex;
    width: max-content;
    animation: tickerMove 42s linear infinite;
}
.ticker-track:hover {
    animation-play-state: paused;
}

/* Styled WordPress Pagination (გასწორებული 1 2 შემდეგი ->) */
.navigation.pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.navigation.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
    background: #ffffff;
    color: #04151F;
    border: 1px solid #CBD5E1;
    transition: all 0.2s ease;
    text-decoration: none;
}
.navigation.pagination .page-numbers:hover {
    border-color: #0B3B54;
    background: #072536;
    color: #C8B294;
}
.navigation.pagination .page-numbers.current {
    background: #04151F;
    color: #C8B294;
    border-color: #C8B294;
    box-shadow: 0 4px 10px rgba(4, 21, 31, 0.15);
}

/* Single Article Content Styling */
.ustari-entry-content p {
    margin-bottom: 1.25rem;
    line-height: 1.85;
}
.ustari-entry-content h2, .ustari-entry-content h3 {
    font-weight: 800;
    color: #04151F;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}
.ustari-entry-content blockquote {
    border-left: 4px solid #C8B294;
    background: #F8FAFC;
    padding: 1.1rem 1.35rem;
    border-radius: 0 0.75rem 0.75rem 0;
    font-style: italic;
    margin: 1.5rem 0;
    color: #072536;
}
.ustari-entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 1.25rem 0;
}

/* Prevent iOS Safari input auto-zoom */
@media screen and (max-width: 768px) {
    input, select, textarea {
        font-size: 16px !important;
    }
    body {
        padding-bottom: 68px;
    }
}