/* ============================================
   HNY Teknoloji - Custom Styles
   ============================================ */

/* ---- Logo ---- */
.hny-logo-link {
    transition: opacity 0.2s ease;
}
.hny-logo-link:hover {
    opacity: 0.85;
}
.hny-logo-link svg {
    transition: transform 0.3s ease;
}
.hny-logo-link:hover svg {
    transform: scale(1.05);
}
@media (max-width: 600px) {
    .hny-logo-link svg { width: 48px !important; }
    .hny-logo-link .hny-logo-title { font-size: 1.4rem !important; }
    .hny-logo-link .hny-logo-sub { font-size: 0.65rem !important; letter-spacing: 0.12em !important; }
}

/* ---- Header ---- */
.hny-header {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}
.hny-header.hny-scrolled {
    box-shadow: 0 4px 30px rgba(0,0,0,0.08);
}
.hny-header .wp-block-navigation a {
    transition: color 0.3s ease;
    position: relative;
}
.hny-header .wp-block-navigation a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: linear-gradient(90deg, #00D4AA, #4F46E5);
    transition: width 0.3s ease;
    border-radius: 2px;
}
.hny-header .wp-block-navigation a:hover::after {
    width: 100%;
}

/* ---- Footer ---- */
.hny-footer-links {
    list-style: none !important;
}
.hny-footer-links li {
    transition: color 0.3s ease;
    cursor: pointer;
}
.hny-footer-links li:hover {
    color: #00D4AA !important;
}

/* ---- Selection ---- */
::selection {
    background: rgba(0,212,170,0.2);
    color: #0A1628;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0A1628; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00D4AA, #4F46E5);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #00F5C8, #6366F1);
}

/* ---- Icon Box ---- */
.hny-icon-box {
    display: inline-flex;
    width: auto;
}

/* ---- About Visual ---- */
.hny-about-visual {
    position: relative;
    overflow: hidden;
}
.hny-about-visual::before {
    content: '';
    position: absolute;
    top: -2px; right: -2px; bottom: -2px; left: -2px;
    background: linear-gradient(135deg, #00D4AA, #4F46E5, #00D4AA);
    background-size: 200% 200%;
    border-radius: 26px;
    z-index: -1;
    animation: hny-liquid-rotate 6s ease-in-out infinite;
    opacity: 0.5;
}
@keyframes hny-liquid-rotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ---- Separator ---- */
.wp-block-separator {
    border: none !important;
    height: 2px !important;
    background: linear-gradient(90deg, transparent, #00D4AA, #4F46E5, transparent) !important;
    opacity: 0.4;
}

/* ---- Subpage Heading Underline (only inside page content, not patterns) ---- */
.entry-content h2.wp-block-heading,
main > .wp-block-group > .wp-block-group:not(.has-hero-gradient-gradient-background):not(.hny-section):not([class*="hny-"]) > h2.wp-block-heading {
    position: relative;
    padding-bottom: 12px;
}
.entry-content h2.wp-block-heading::after,
main > .wp-block-group > .wp-block-group:not(.has-hero-gradient-gradient-background):not(.hny-section):not([class*="hny-"]) > h2.wp-block-heading::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 50px; height: 3px;
    background: linear-gradient(90deg, #00D4AA, #4F46E5);
    border-radius: 3px;
    transition: width 0.4s ease;
}
.entry-content h2.wp-block-heading:hover::after,
main > .wp-block-group > .wp-block-group:not(.has-hero-gradient-gradient-background):not(.hny-section):not([class*="hny-"]) > h2.wp-block-heading:hover::after {
    width: 100%;
}
/* Keep centered headings centered (front-page patterns) */
.has-text-align-center.wp-block-heading {
    display: block !important;
}
.has-text-align-center.wp-block-heading::after {
    display: none !important;
}

/* ---- Subpage Lists ---- */
/* Removed aggressive global list styling - use default WordPress bullets */

/* ---- Post Navigation (Prev/Next) ---- */
.hny-post-nav {
    gap: 1.5rem !important;
}
.hny-post-nav .wp-block-post-navigation-link {
    flex: 1;
    background: #F8FAFC;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.5rem 1.8rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.hny-post-nav .wp-block-post-navigation-link:hover {
    border-color: rgba(0, 212, 170, 0.3);
    background: #fff;
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(10, 22, 40, 0.06);
}
.hny-post-nav .wp-block-post-navigation-link .post-navigation-link__label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #00D4AA;
    display: block;
    margin-bottom: 0.2rem;
}
.hny-post-nav .wp-block-post-navigation-link a {
    text-decoration: none !important;
    color: #0A1628 !important;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}
.hny-post-nav .wp-block-post-navigation-link:hover a {
    color: #00D4AA !important;
}
.hny-post-nav .post-navigation-link-next {
    text-align: right;
}
/* Hide empty navigation cards (no prev/next post) */
.hny-post-nav .wp-block-post-navigation-link:not(:has(a)) {
    display: none;
}

/* ---- Single Post Content ---- */
.wp-block-post-content h2 {
    margin-top: 2.5rem !important;
    padding-bottom: 0.5rem;
}
.wp-block-post-content p {
    line-height: 1.85 !important;
}
.wp-block-post-content a {
    color: #00D4AA !important;
    text-decoration: none;
    border-bottom: 1px solid rgba(0,212,170,0.3);
    transition: border-color 0.3s ease;
}
.wp-block-post-content a:hover {
    border-bottom-color: #00D4AA;
}
.wp-block-post-content ul,
.wp-block-post-content ol {
    padding-left: 1.5rem !important;
}
.wp-block-post-content strong {
    color: #0A1628;
}

/* ---- Blog Post Title Link ---- */
.wp-block-post .wp-block-post-title a {
    text-decoration: none !important;
    transition: color 0.3s ease;
}
.wp-block-post .wp-block-post-title a:hover {
    color: #00D4AA !important;
}

/* ---- Responsive ---- */
@media (max-width: 782px) {
    .hny-hero-inner {
        padding-top: 6rem !important;
        padding-bottom: 4rem !important;
    }
    .hny-hero-metrics .wp-block-group {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }
    .hny-section {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
    .hny-about-visual {
        padding: 2rem !important;
    }
    .hny-orb, .hny-cursor-glow { display: none; }
}

/* ---- Print ---- */
@media print {
    .hny-header, .hny-btn-glow { box-shadow: none !important; }
    .hny-orb, .hny-cursor-glow, .hny-blob, .hny-scroll-progress { display: none !important; }
}

a[href^="#"] {
    scroll-behavior: smooth;
}

/* ---- Language Switcher ---- */
.hny-lang-switcher {
    position: relative;
    z-index: 1001;
}
.hny-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.8rem;
    background: rgba(10, 22, 40, 0.06);
    border: 1px solid rgba(10, 22, 40, 0.1);
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    color: #0A1628;
    transition: all 0.25s ease;
    line-height: 1;
    white-space: nowrap;
}
.hny-lang-btn:hover {
    background: rgba(0, 212, 170, 0.1);
    border-color: rgba(0, 212, 170, 0.3);
}
.hny-lang-btn svg {
    flex-shrink: 0;
}
.hny-lang-chevron {
    transition: transform 0.25s ease;
}
.hny-lang-switcher.open .hny-lang-chevron {
    transform: rotate(180deg);
}
.hny-lang-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 150px;
    background: #fff;
    border: 1px solid rgba(10, 22, 40, 0.1);
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(10, 22, 40, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s ease;
    overflow: hidden;
}
.hny-lang-switcher.open .hny-lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.hny-lang-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 1rem;
    text-decoration: none !important;
    color: #334155 !important;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: none !important;
}
.hny-lang-option:hover {
    background: rgba(0, 212, 170, 0.08);
    color: #0A1628 !important;
}
.hny-lang-option.hny-lang-active {
    background: rgba(0, 212, 170, 0.12);
    color: #0A1628 !important;
    font-weight: 600;
}
.hny-lang-flag {
    font-size: 1.1rem;
    line-height: 1;
}

@media (max-width: 782px) {
    .hny-lang-switcher {
        order: -1;
    }
    .hny-lang-dropdown {
        right: auto;
        left: 0;
    }
}
