/*
Theme Name: Gentleman Magazin
Theme URI: https://example.com/
Author: Cursor AI
Description: Modern magazin tema a Gentleman arculathoz.
Version: 1.0
Text Domain: gentleman
*/

:root {
    --primary-blue: #0f172a;
    --accent-orange: #f97316;
    --deep-blue: #1e293b;
    --light-bg: #f8fafc;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--light-bg);
    color: var(--primary-blue);
    overflow-x: hidden;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

h1, h2, h3, h4, .nav-link, .category-title {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.orange-gradient {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.blue-gradient {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 1.5rem;
}

.hero-main {
    grid-column: span 2;
    grid-row: span 2;
}

.card-zoom {
    overflow: hidden;
    position: relative;
}

.card-zoom img {
    transition: transform 0.5s ease;
}

.card-zoom:hover img {
    transform: scale(1.1);
}

.card-overlay {
    background: linear-gradient(0deg, rgba(15,23,42,0.9) 0%, rgba(15,23,42,0) 70%);
}

.hero-overlay {
    background: linear-gradient(0deg, rgba(15,23,42,0.95) 0%, rgba(15,23,42,0.25) 80%);
}

.widget-box {
    background: white;
    border-top: 4px solid var(--accent-orange);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.sticky-nav {
    backdrop-filter: blur(10px);
    background: rgba(15, 23, 42, 0.95);
}

.site-logo a {
    display: inline-flex;
    align-items: center;
}

.site-logo img {
    max-height: 56px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.site-logo--footer img {
    max-height: 64px;
}

.site-logo--mobile img {
    max-height: 48px;
}

.sidebar-widget {
    background: white;
    border-top: 3px solid var(--primary-blue);
}

#progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 100;
}

#progress-bar {
    height: 100%;
    background: var(--accent-orange);
    width: 0%;
    transition: width 0.1s ease;
}

.article-nav {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
}

.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 60vh;
    overflow: hidden;
}

.first-letter::first-letter {
    float: left;
    font-family: 'Montserrat', sans-serif;
    font-size: 5.5rem;
    line-height: 0.8;
    padding-top: 10px;
    padding-right: 15px;
    color: var(--accent-orange);
    font-weight: 900;
}

.pull-quote {
    position: relative;
    padding: 2rem;
    margin: 3rem 0;
    border-left: 8px solid var(--accent-orange);
    background: #fdf2f2;
    font-style: italic;
    font-size: 1.5rem;
    font-weight: 300;
}

.side-share {
    position: sticky;
    top: 150px;
    height: fit-content;
}


.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.article-content h2 {
    font-size: 1.875rem;
    line-height: 1.2;
    font-weight: 900;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.article-content h3 {
    font-size: 1.5rem;
    line-height: 1.3;
    font-weight: 800;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.article-content h4 {
    font-size: 1.25rem;
    line-height: 1.4;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.article-content p {
    margin-bottom: 1.25rem;
    overflow-wrap: break-word;
}

.article-content a {
    color: var(--accent-orange);
    text-decoration: underline;
    text-decoration-color: rgba(249, 115, 22, 0.5);
    text-underline-offset: 3px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.article-content a:hover {
    color: #ea580c;
    text-decoration-color: #ea580c;
}

.article-layout > * {
    min-width: 0;
}

.site-footer {
    margin-top: 3rem;
}

.single .site-footer {
    margin-top: 0;
}

.sidebar-tabs .tab-panel {
    display: none;
}

.sidebar-tabs .tab-panel.is-active {
    display: block;
}

.sidebar-tabs h5 {
    font-size: 0.9rem;
    line-height: 1.3;
}

.sidebar-featured-two {
    background: #f8fafc;
    border-top: 4px solid var(--accent-orange);
}

.sidebar-list-three .sidebar-dot {
    width: 0.5rem;
    height: 0.5rem;
    margin-top: 0.4rem;
    border-radius: 9999px;
    background: var(--accent-orange);
    flex-shrink: 0;
}


.tab-button {
    background: #0f172a;
    color: #e2e8f0;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.4rem 0.7rem;
    border-radius: 9999px;
    transition: background 0.2s ease, color 0.2s ease;
}

.tab-button.is-active {
    background: var(--accent-orange);
    color: white;
}

.tab-button:hover {
    background: #1e293b;
    color: white;
}

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: none;
}

.mobile-menu.is-open {
    display: block;
}

.mobile-menu-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
}

.mobile-menu-panel {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: min(360px, 90%);
    background: #0f172a;
    color: white;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.25);
}

.mobile-menu.is-open .mobile-menu-panel {
    transform: translateX(0);
}

.mobile-menu-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.mobile-menu-list a {
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-list a:hover {
    color: var(--accent-orange);
}

.mobile-search {
    display: flex;
    gap: 0.5rem;
}

.mobile-search-input {
    flex: 1;
    background: #1e293b;
    border: none;
    padding: 0.6rem 0.8rem;
    border-radius: 0.5rem;
    color: white;
}

.mobile-search-input::placeholder {
    color: #94a3b8;
}

.mobile-search-button {
    background: var(--accent-orange);
    color: white;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.7rem;
    padding: 0.6rem 0.8rem;
    border-radius: 0.5rem;
}

.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: none;
}

.search-overlay.is-open {
    display: block;
}

.search-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
}

.search-panel {
    position: relative;
    max-width: 520px;
    margin: 12vh auto 0;
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
    z-index: 1;
}

.search-form {
    display: flex;
    gap: 0.75rem;
}

.search-input {
    flex: 1;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
}

.search-submit {
    background: var(--accent-orange);
    color: white;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.75rem;
    padding: 0.75rem 1.2rem;
    border-radius: 0.5rem;
}

body.menu-open {
    overflow: hidden;
}

@media (max-width: 1200px) {
    .gentleman-nav-menu {
        display: none;
    }
}

@media (max-width: 640px) {
    .search-panel {
        margin: 8vh 1.25rem 0;
        padding: 1.5rem;
    }
    .search-form {
        flex-direction: column;
    }
    .search-submit {
        width: 100%;
    }
}

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    border: 1px solid #d1d5db;
    color: var(--primary-blue);
    font-weight: 800;
    font-size: 0.85rem;
    border-radius: 0.5rem;
    background: white;
    transition: all 0.2s ease;
}

.page-numbers.prev,
.page-numbers.next {
    padding: 0 0.9rem;
    min-width: unset;
}

.more-recommendations-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.recommend-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.recommend-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.12);
}

.recommend-card__media {
    display: block;
    position: relative;
    height: 180px;
    overflow: hidden;
}

.recommend-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.recommend-card:hover .recommend-card__media img {
    transform: scale(1.05);
}

.recommend-card__content {
    padding: 1.2rem 1.4rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.recommend-card__meta {
    text-transform: uppercase;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    font-weight: 800;
    color: var(--accent-orange);
}

.recommend-card__title {
    font-weight: 800;
    font-size: 1rem;
    line-height: 1.3;
}

.recommend-card__title a {
    color: inherit;
}

.recommend-card__excerpt {
    font-size: 0.85rem;
    color: #64748b;
}

.recommend-card__date {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
}

.page-numbers:hover {
    background: var(--accent-orange);
    color: white;
    border-color: var(--accent-orange);
}

.page-numbers.current {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.page-numbers.dots {
    border: none;
    min-width: 1rem;
    background: transparent;
    color: #94a3b8;
}

@media (max-width: 1024px) {
    .more-recommendations-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .more-recommendations-grid {
        grid-template-columns: 1fr;
    }
}

.pagination-item:hover {
    background-color: var(--accent-orange);
    color: white;
    border-color: var(--accent-orange);
}

.active-pagination {
    background-color: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.gentleman-nav-toggle {
    display: none;
}

.gentleman-nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gentleman-nav-menu a {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0;
    transition: color 0.2s ease, transform 0.2s ease;
}

.gentleman-nav-menu a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background: var(--accent-orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.gentleman-nav-menu a:hover {
    color: var(--accent-orange);
    transform: translateY(-1px);
}

.gentleman-nav-menu a:hover::after {
    transform: scaleX(1);
}

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    .hero-main { grid-column: span 2; height: 400px; }
    .hero-split { grid-template-columns: 1fr; }
}

@media (max-width: 1200px) {
    .gentleman-nav-toggle {
        display: inline-flex;
    }
    .gentleman-nav-menu {
        display: none;
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0;
    }
    .gentleman-nav-menu.is-open {
        display: flex;
    }
}

@media (max-width: 640px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-main { grid-column: span 1; height: 320px; }
}
