/*
Theme Name:   Generatepress Child
Theme URI:    http://example.com/generatepress-child/
Description:  Child theme for the Generatepress theme
Author:       HSO
Author URI:   http://example.com
Template:     generatepress
Version:      1.0.0
*/
/* Buraya child tema stilini ekle *
  
.page-header, .sidebar .widget, .site-main>* {
    margin-bottom: 0px;
}
.separate-containers .site-main {
    margin: 0px;
}
.hideme {
    display: none;
}
.post-generating-container{
    background-color: var(--base-3);
    padding: 40px;
}
    

/* Load trigger for IntersectionObserver */
.load-trigger {
    width: 100%;
    height: 1px;
    background: transparent;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    position: relative;
    z-index: -1;
}
.hideme {
    display: none;
}
/* Header özelleştirmeleri */
.site-header {
    background-color: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

body .site{
    min-height: calc(100vh - 62px);
    /* Sticky için overflow-x hidden kaldırıldı */
    /* overflow-x: hidden; */
}
.site-content{
    padding-top: 80px;
    max-width: 100vw; /* Viewport width sınırı */
    /* Sticky için overflow kontrolü kaldırıldı */
}

/* Logo/Site başlığı */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    padding: 0;
}

/* Offcanvas özelleştirmeleri */
.offcanvas {
    width: 300px;
}

.user-profile-section {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.list-group-item {
    border: none;
    padding: 0.75rem 1rem;
    transition: background-color 0.2s;
}

.list-group-item:hover {
    background-color: #f8f9fa;
}

/* Avatar buton özelleştirmesi */
.navbar .btn-link {
    padding: 0;
    border: none;
    background: transparent;
}

.navbar .btn-link:focus {
    box-shadow: none;
    outline: none;
}

.navbar .btn-link img {
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #007bff;
    transition: box-shadow 0.2s;
}



/* Profile Edit Page Styles */
.cover-photo {
    height: 260px; /* Desktop için daha yüksek */
    background-size: cover;
    background-position: center;
    background-color: #e9ecef; /* Boş durumda gri placeholder */
    position: relative;
}

/* Kapak fotoğrafı yokken placeholder göster */
.cover-photo:empty,
.cover-photo[style="background-image: url('');"],
.cover-photo:not([style*="background-image"]) {
    background-color: #e9ecef;
    background-image: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Kapak fotoğrafı placeholder yazısı - Sadece owner için */
.cover-photo-owner:empty::before,
.cover-photo-owner[style="background-image: url('');"]::before,
.cover-photo-owner:not([style*="background-image"])::before {
    content: "Kapak Fotoğrafı\A(16:9 oranında)";
    color: #6c757d;
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    pointer-events: none;
    z-index: 1;
    white-space: pre-line;
    line-height: 1.4;
}

/* Visitor için placeholder yazısı yok - sadece gri background */
.cover-photo-visitor:empty,
.cover-photo-visitor[style="background-image: url('');"],
.cover-photo-visitor:not([style*="background-image"]) {
    /* Sadece gri background, yazı yok */
}

/* Tablet responsive ayarları */
@media (max-width: 992px) and (min-width: 769px) {
    .cover-photo {
        height: 230px; /* Tablet için orta değer */
    }
}

/* Mobile responsive ayarları */
@media (max-width: 768px) {
    .cover-photo {
        height: 200px; /* Mobile'da yeterli yükseklik */
    }
    
    .cover-photo-owner:empty::before,
    .cover-photo-owner[style="background-image: url('');"]::before,
    .cover-photo-owner:not([style*="background-image"])::before {
        font-size: 16px;
    }
}

.profile-photo-preview {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #e9ecef; /* Boş durumda gri placeholder */
}

/* Profil fotoğrafı yokken placeholder göster */
.profile-photo-preview:empty,
.profile-photo-preview[style="background-image: url('');"] {
    background-color: #e9ecef;
    background-image: none !important;
}

.user-info-section {
    margin-top: 60px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group input[readonly] {
    background-color: #f8f9fa;
    color: #6c757d;
}

.submit-button {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.submit-button:hover {
    background: #0056b3;
}

#cover_photo,
#profile_photo {
    margin-top: 0.5rem;
}

.updated {
    background: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    border: 1px solid #c3e6cb;
}

.search-type-container {
    margin-left: -12px;
    margin-right: -12px;
}

/* Mobile responsive */
@media (max-width: 768px) {    
    .stat-number {
        font-size: 1.1rem !important;
    }
    
    .stat-label {
        font-size: 0.7rem !important;
    }
}

/* Modern Tab Sistemi - Generic */
.modern-tabs-container {
    border-bottom: 1px solid var(--bs-border-color);
    margin-bottom: 16px;
}

.modern-tabs-container .nav-tabs {
    border-bottom: none;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE */
}

.modern-tabs-container .nav-tabs::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

.modern-tabs-container .nav-item {
    flex-shrink: 0;
}

.modern-tabs-container .nav-link {
    border: none;
    background: transparent;
    color: var(--bs-secondary);
    font-weight: 500;
    padding: 1rem 1.25rem;
    margin-bottom: 0;
    position: relative;
    transition: all 0.2s ease;
    border-radius: 0;
}

.modern-tabs-container .nav-link:hover {
    background-color: var(--bs-light);
    color: var(--bs-primary);
    border-color: transparent;
}

.modern-tabs-container .nav-link.active {
    background: transparent;
    color: var(--bs-primary);
    border-color: transparent;
    font-weight: 600;
}

.modern-tabs-container .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--bs-primary);
    border-radius: 2px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .modern-tabs-container .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .modern-tabs-container .nav-link.active::after {
        width: 40px;
        height: 2px;
    }
}

/* Camera Button Styles for Profile Edit */
.change-cover-photo, .change-profile-photo {
    background: rgba(0, 0, 0, 0.7) !important;
    transition: all 0.3s ease;
    z-index: 10;
}

.change-cover-photo:hover, .change-profile-photo:hover {
    background: rgba(0, 0, 0, 0.9) !important;
    transform: scale(1.05);
}

/* Profile Photo Preview Background Support */
.profile-photo-preview {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Notification Badge Styles */
#notif-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid #fff;
}

.notification-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.2s;
    cursor: pointer;
}

.notification-item:hover {
    background-color: #f8f9fa;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

@media (max-width: 768px) {
    .notification-item {
        padding: 10px 12px;
    }

    .notification-content {
        font-size: 14px;
    }

    .notification-time {
        font-size: 12px;
    }

    .h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    #markAllRead {
        font-size: 14px;
        padding: 8px 16px;
    }
}

@media (max-width: 576px) {
    .h3 {
        font-size: 1.25rem;
    }

    #markAllRead {
        font-size: 12px;
        padding: 6px 12px;
    }
}


/* Twitter Benzeri Modern Tab Sistemi */
.feed-tabs-container {
    background: transparent;
    border-bottom: 1px solid rgba(225, 232, 237, 0.8);
    position: fixed;
    /* top değeri JavaScript ile dinamik olarak ayarlanacak */
    left: 0;
    right: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.8);
    width: 100%; /* Genişliği belirt */
    overflow-x: hidden; /* Horizontal overflow'u engelle */
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    will-change: transform;
}

.feed-tabs-container.hidden {
    transform: translateY(-100%);
}

.feed-tabs {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.feed-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 16px 0;
    font-size: 15px;
    font-weight: 500;
    color: #536471;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.feed-tab:hover {
    background-color: rgba(15, 20, 25, 0.1);
    color: #0f1419;
}

.feed-tab.active {
    color: #0f1419;
    font-weight: 600;
}

.feed-tab .tab-label {
    position: relative;
    z-index: 2;
}

.feed-tab .tab-indicator {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 4px;
    background: #1d9bf0;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.feed-tab.active .tab-indicator {
    width: 60px;
}

/* Tab İçerikleri */
.tab-content {
    max-width: 600px;
    margin: 0 auto;
    /* padding-top değeri JavaScript ile dinamik olarak ayarlanacak */
    /* Sticky için overflow kontrolü kaldırıldı */
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Loading Spinner */
.loading-spinner {
    padding: 40px 0;
}

.spinner-border {
    width: 2rem;
    height: 2rem;
}

/* Posts Container */
.posts-container {
    min-height: 200px;
}

/* Posts container içindeki tüm kartlara margin ekle */
.posts-container .post-card-template {
    margin-bottom: 1.5rem; /* 24px - Bootstrap mb-4 ile aynı */
}

.posts-container:empty::before {
    content: "Henüz içerik yok";
    display: block;
    text-align: center;
    padding: 40px 20px;
    color: #536471;
    font-size: 16px;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .feed-tabs-container {
        position: fixed;
        /* top değeri JavaScript ile dinamik olarak ayarlanacak */
        left: 0;
        right: 0;
        width: 100vw; /* Viewport width */
        max-width: 100%; /* Max width */
    }
    
    .feed-tab {
        padding: 12px 0;
        font-size: 14px;
    }
    
    .feed-tab.active .tab-indicator {
        width: 40px;
    }
    
    .tab-content {
        max-width: calc(100vw - 16px); /* Viewport width - margins */
    }
}

@media (max-width: 480px) {
    .feed-tab {
        padding: 10px 0;
        font-size: 13px;
    }
    
    .feed-tab.active .tab-indicator {
        width: 30px;
    }
}

/* Activity Filter Container */
.activity-filter-container {
    backdrop-filter: blur(10px);
    margin-top: -1px; /* Tab'larla arasındaki çizgiyi kaldır */
    margin-left: -12px;
    margin-right: -12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    position: sticky;
    top: var(--filter-top, 108px); /* Dynamic top position via CSS variable */
    margin-top: 45px;
    z-index: 99; /* Tab container'ından düşük ama diğerlerinden yüksek */
    background: white;
    transition: top 0.15s ease-out; /* Smooth transition for top changes */
    border-bottom: 1px solid #e9ecef;
}

.activity-filter-container.hidden {
    transform: translateY(-200%);
}

/* Responsive negative margins */
@media (min-width: 768px) {
    .activity-filter-container {
        margin-left: -12px;
        margin-right: -12px;
    }
}

@media (min-width: 992px) {
    .activity-filter-container {
        margin-left: -12px;
        margin-right: -12px;
    }
}

/* Horizontal scroll container */
#activityFilterChips {
    scroll-behavior: smooth;
}

#activityFilterChips::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

/* Active button styling for Bootstrap buttons */
.btn-outline-primary.active {
    background-color: #1d9bf0 !important;
    border-color: #1d9bf0 !important;
    color: #ffffff !important;
}

.activity-filter-container .btn-outline-primary {
    border-color: #cfd9de;
    color: #536471;
    font-weight: 500;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.activity-filter-container .btn-outline-primary:hover {
    background-color: #f7f9fa;
    border-color: #1d9bf0;
    color: #1d9bf0;
}

/* Responsive */
@media (max-width: 768px) {
    .activity-filter-container {
        top: var(--filter-top, 108px); /* Mobilde de dynamic top kullan */
    }
    
    .activity-filter-container .py-2 {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }
    
    .activity-filter-container .btn {
        font-size: 12px !important;
        padding: 0.25rem 0.5rem !important;
    }
}

/* POST DELETE STYLES */
/* ================== */

/* Dropdown menu hover effects (Bootstrap'te yok) */
.dropdown-item.text-danger:hover {
    background-color: #dc3545;
    color: white !important;
}

.dropdown-item.text-danger:hover .bi-trash {
    color: white !important;
}

/* Three dots button hover */
.btn-link:hover .bi-three-dots {
    color: #495057 !important;
}

/* Post card removal animation */
.card.removing {
    opacity: 0.5;
    pointer-events: none;
}

/* LIST POST ITEM STYLES */
/* ===================== */

/* İlk item'da divider gizle */
.list-post-item:first-child .list-divider-section {
    display: none;
}

/* Divider çizgisi */
.list-divider {
    height: 1px;
    background-color: #6c757d;
}

/* SHOW DETAIL PAGE STYLES */
/* ======================= */

/* Content Header - Full Width with WordPress padding override */
.content-header {
    width: 100vw;
    margin-left: -12px;
    margin-right: -12px;
}

.content-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('') no-repeat center center/cover;
    filter: blur(10px) brightness(50%);
    z-index: -1;
}

.content-image {
    max-height: 300px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

.content-summary {
    line-height: 1.5;
}

/* ============================================
   TRUNCATABLE TEXT - Generic Reusable Styles
   ============================================ */

/* Mobile-only truncation with smooth animation */
@media (max-width: 767.98px) {
    .truncatable-text-container .truncatable-text {
        transition: max-height 0.3s ease-out;
        overflow: hidden;
    }
    
    .truncatable-text-container .truncatable-text.truncated {
        max-height: 7.5em; /* ~5 lines (1.5em line-height) */
    }
    
    .truncatable-text-container .truncatable-text:not(.truncated) {
        max-height: 50em; /* Large enough for expanded content */
    }
}

/* Desktop: No truncation by default, hide button */
@media (min-width: 768px) {
    .truncatable-text-container .read-more-btn {
        display: none !important;
    }
    
    /* Remove truncation on desktop */
    .truncatable-text-container .truncatable-text {
        max-height: none !important;
    }
}

/* Always truncate variant - works on all screen sizes */
.truncatable-text-container.always-truncate .truncatable-text {
    transition: max-height 0.3s ease-out;
    overflow: hidden;
}

.truncatable-text-container.always-truncate .truncatable-text.truncated {
    max-height: 7.5em;
}

.truncatable-text-container.always-truncate .truncatable-text:not(.truncated) {
    max-height: 50em;
}

/* Always truncate: show button on all screen sizes */
@media (min-width: 768px) {
    .truncatable-text-container.always-truncate .read-more-btn {
        display: block !important;
    }
}

/* Custom line limits via data attribute */
.truncatable-text-container .truncatable-text[data-line-limit="2"].truncated {
    max-height: 3em; /* 2 lines */
}

.truncatable-text-container .truncatable-text[data-line-limit="3"].truncated {
    max-height: 4.5em; /* 3 lines */
}

.truncatable-text-container .truncatable-text[data-line-limit="4"].truncated {
    max-height: 6em; /* 4 lines */
}

.truncatable-text-container .truncatable-text[data-line-limit="6"].truncated {
    max-height: 9em; /* 6 lines */
}

.truncatable-text-container .truncatable-text[data-line-limit="7"].truncated {
    max-height: 10.5em; /* 7 lines */
}

/* Container always has bottom margin (replaces <p> margin) */
.truncatable-text-container {
    margin-bottom: 1rem;
}

/* Read more button styling */
.truncatable-text-container .read-more-btn {
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    transition: color 0.2s ease;
    display: block;
}

.truncatable-text-container .read-more-btn:hover {
    text-decoration: underline;
}


/* Stat card hover effect */
.stat-card:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease;
}

/* CARD AVATAR STYLES */
/* ================== */

/* Base card avatar styling with cover fit and overflow fix */
.card-avatar,
.card-avatar-sm,
.card-avatar-md {
    object-fit: cover;
    overflow-clip-margin: unset;
    border-radius: 50%;
}

/* Standard size (40x40) - Post cards, feed items, main avatars */
.card-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
}

/* Small size (24x24) - Mini cards, nested post authors */
.card-avatar-sm {
    width: 24px;
    height: 24px;
    min-width: 24px;
}

/* Medium size (32x32) - Comment replies */
.card-avatar-md {
    width: 32px;
    height: 32px;
    min-width: 32px;
}

/* Avatar placeholder (fallback when no profile photo) */
.card-avatar-placeholder,
.card-avatar-placeholder-sm,
.card-avatar-placeholder-md {
    border-radius: 50%;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    margin-top: 4px;
}

.card-avatar-placeholder {
    width: 40px;
    height: 40px;
    min-width: 40px;
}

.card-avatar-placeholder-sm {
    width: 24px;
    height: 24px;
    min-width: 24px;
}

.card-avatar-placeholder-md {
    width: 32px;
    height: 32px;
    min-width: 32px;
}

/* PROFILE PAGE AVATAR STYLES */
/* =========================== */

/* Cover Photo - Full Width with WordPress padding override */
.cover-photo {
    width: 100vw;
    height: 300px;
    margin-left: -12px; /* WordPress default padding override */
    margin-right: -12px;
}

/* Profile Avatar Container positioning */
.profile-avatar-container {
    bottom: -60px;
}

/* Large profile avatar for profile detail pages (120x120) */
.profile-page-avatar {
    width: 120px;
    height: 120px;
    object-fit: cover;
    overflow-clip-margin: unset;
    border-radius: 50%;
}

/* Profile page avatar placeholder */
.profile-page-avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .cover-photo {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .cover-photo {
        height: 200px;
    }
    
    .profile-avatar-container {
        bottom: -50px;
    }
}

/* ACTIVITY FEED CARD STYLES */
/* ========================== */

/* Related post mini-card footer'daki dizi/film posteri */
.activity-feed-card .related-post-footer .flex-shrink-0 img {
    width: auto;
    height: 36px;
    object-fit: cover;
}

.comment-feed-card .related-post-footer .flex-shrink-0 img {
    width: auto;
    height: 36px;
    object-fit: cover;
}

/* Beğenilen/Listeye eklenen gönderi kartı - soft kırmızımsı border */
.activity-feed-card .related-post-info.border-start,
.activity-feed-card .list-item-info-card.border-start {
    border-left-color: #e57373;
}

/* LIST POST WRAPPER STYLES */
/* ========================= */

/* Liste divider çizgisi (Bootstrap'te yok) */
.list-divider {
    height: 1px;
    background-color: #dee2e6;
}

/* CREATE POST FORM STYLES */
/* ======================== */

/* Form Container - works for both wrapper class on container and on fields */
.create-post-form .acf-fields {
    padding: 24px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Form Title */
.create-post-form h1,
.create-post-form .acf-field-group-title {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 24px;
}

/* Field Spacing - target both scenarios */
.create-post-form.acf-field,
.create-post-form .acf-field {
    margin-bottom: 24px;
}

/* Label Styling - target both scenarios */
.create-post-form.acf-field .acf-label label,
.create-post-form .acf-label label {
    font-weight: 600;
    font-size: 14px;
    color: #374151;
    margin-bottom: 8px;
    display: block;
}

/* Required Star - Softer Red */
.create-post-form.acf-field .acf-required,
.create-post-form .acf-required {
    color: #ef4444;
    font-weight: 400;
    margin-left: 2px;
}

/* Modern Input Styling - target both field-level and form-level class */
.create-post-form.acf-field input[type="text"],
.create-post-form.acf-field input[type="email"],
.create-post-form.acf-field input[type="url"],
.create-post-form.acf-field input[type="number"],
.create-post-form.acf-field textarea,
.create-post-form.acf-field select,
.create-post-form input[type="text"],
.create-post-form input[type="email"],
.create-post-form input[type="url"],
.create-post-form input[type="number"],
.create-post-form textarea,
.create-post-form select {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 15px;
    transition: all 0.2s ease;
    background: #fafafa;
    width: 100%;
    font-family: inherit;
}

/* Input Focus State */
.create-post-form.acf-field input[type="text"]:focus,
.create-post-form.acf-field input[type="email"]:focus,
.create-post-form.acf-field input[type="url"]:focus,
.create-post-form.acf-field input[type="number"]:focus,
.create-post-form.acf-field textarea:focus,
.create-post-form.acf-field select:focus,
.create-post-form input[type="text"]:focus,
.create-post-form input[type="email"]:focus,
.create-post-form input[type="url"]:focus,
.create-post-form input[type="number"]:focus,
.create-post-form textarea:focus,
.create-post-form select:focus {
    outline: none;
    border-color: #4f46e5;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Input Hover State */
.create-post-form.acf-field input[type="text"]:hover,
.create-post-form.acf-field input[type="email"]:hover,
.create-post-form.acf-field input[type="url"]:hover,
.create-post-form.acf-field input[type="number"]:hover,
.create-post-form.acf-field textarea:hover,
.create-post-form.acf-field select:hover,
.create-post-form input[type="text"]:hover,
.create-post-form input[type="email"]:hover,
.create-post-form input[type="url"]:hover,
.create-post-form input[type="number"]:hover,
.create-post-form textarea:hover,
.create-post-form select:hover {
    border-color: #d1d5db;
}

/* Textarea Optimization */
.create-post-form.acf-field textarea,
.create-post-form textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

/* Placeholder Styling */
.create-post-form.acf-field input::placeholder,
.create-post-form.acf-field textarea::placeholder,
.create-post-form input::placeholder,
.create-post-form textarea::placeholder {
    color: #9ca3af;
    opacity: 1;
}

/* Select2 Custom Styling - target both field-level and form-level */
.create-post-form.acf-field .select2-container--default .select2-selection--single,
.create-post-form .select2-container--default .select2-selection--single {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    height: 48px;
    background: #fafafa;
    transition: all 0.2s ease;
}

.create-post-form.acf-field .select2-container--default .select2-selection--single:hover,
.create-post-form .select2-container--default .select2-selection--single:hover {
    border-color: #d1d5db;
}

.create-post-form.acf-field .select2-container--default.select2-container--focus .select2-selection--single,
.create-post-form.acf-field .select2-container--default.select2-container--open .select2-selection--single,
.create-post-form .select2-container--default.select2-container--focus .select2-selection--single,
.create-post-form .select2-container--default.select2-container--open .select2-selection--single {
    border-color: #4f46e5;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.create-post-form.acf-field .select2-container--default .select2-selection--single .select2-selection__rendered,
.create-post-form .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 48px;
    padding-left: 16px;
    padding-right: 16px;
    color: #374151;
    font-size: 15px;
}

.create-post-form.acf-field .select2-container--default .select2-selection--single .select2-selection__placeholder,
.create-post-form .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #9ca3af;
}

.create-post-form.acf-field .select2-container--default .select2-selection--single .select2-selection__arrow,
.create-post-form .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 48px;
    right: 8px;
}

/* Select2 Dropdown Styling */
.create-post-form .select2-dropdown {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    margin-top: 4px;
}

.create-post-form .select2-results__option {
    padding: 12px 16px;
    font-size: 15px;
    transition: background-color 0.15s ease;
}

.create-post-form .select2-results__option--highlighted {
    background-color: #4f46e5 !important;
    color: #ffffff;
}

.create-post-form .select2-results__option--selected {
    background-color: #f3f4f6;
    color: #374151;
}

/* Select2 Search Input */
.create-post-form .select2-search--dropdown .select2-search__field {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    margin: 8px;
    width: calc(100% - 16px);
}

.create-post-form .select2-search--dropdown .select2-search__field:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.1);
}

/* Select2 Loading/Searching Message */
.create-post-form .select2-results__message {
    padding: 12px 16px;
    color: #6b7280;
    font-size: 14px;
}

/* ACF Select Field (non-Select2) */
.create-post-form.acf-field select,
.create-post-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23374151' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

/* Disabled State */
.create-post-form.acf-field input:disabled,
.create-post-form.acf-field textarea:disabled,
.create-post-form.acf-field select:disabled,
.create-post-form input:disabled,
.create-post-form textarea:disabled,
.create-post-form select:disabled {
    background-color: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Error State */
.create-post-form.acf-field.acf-error input,
.create-post-form.acf-field.acf-error textarea,
.create-post-form.acf-field.acf-error select,
.create-post-form .acf-field.acf-error input,
.create-post-form .acf-field.acf-error textarea,
.create-post-form .acf-field.acf-error select {
    border-color: #ef4444;
}

.create-post-form.acf-field.acf-error .acf-error-message,
.create-post-form .acf-field.acf-error .acf-error-message {
    color: #ef4444;
    font-size: 13px;
    margin-top: 6px;
    display: block;
}

/* Submit Button Styling - target fea-submit-button class */
.fea-submit-button,
.fea-submit-button input[type="submit"],
.fea-submit-button button,
.create-post-form .acf-form-submit input[type="submit"],
.create-post-form button[type="submit"],
form:has(.create-post-form) .fea-submit-button,
form:has(.create-post-form) .fea-submit-button input[type="submit"],
form:has(.create-post-form) .fea-submit-button button {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 32px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.2) !important;
}

.fea-submit-button:hover,
.fea-submit-button input[type="submit"]:hover,
.fea-submit-button button:hover,
.create-post-form .acf-form-submit input[type="submit"]:hover,
.create-post-form button[type="submit"]:hover,
form:has(.create-post-form) .fea-submit-button:hover,
form:has(.create-post-form) .fea-submit-button input[type="submit"]:hover,
form:has(.create-post-form) .fea-submit-button button:hover {
    background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%) !important;
    box-shadow: 0 4px 8px rgba(79, 70, 229, 0.3) !important;
    transform: translateY(-1px) !important;
}

.fea-submit-button:active,
.fea-submit-button input[type="submit"]:active,
.fea-submit-button button:active,
.create-post-form .acf-form-submit input[type="submit"]:active,
.create-post-form button[type="submit"]:active,
form:has(.create-post-form) .fea-submit-button:active,
form:has(.create-post-form) .fea-submit-button input[type="submit"]:active,
form:has(.create-post-form) .fea-submit-button button:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 4px rgba(79, 70, 229, 0.2) !important;
}

/* Loading State */
.create-post-form.is-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .create-post-form .acf-fields {
        padding: 16px;
    }
    
    .create-post-form h2,
    .create-post-form .acf-field-group-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .create-post-form.acf-field,
    .create-post-form .acf-field {
        margin-bottom: 20px;
    }
}