/* =============================================================================
   5. SOCIAL MEDIA BUTTONS
   ============================================================================= */

.social-buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.social-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 14px;
    color: white !important;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    min-width: 100px;
}

.social-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    opacity: 0.95;
}

/* Platform-specific colors */
.social-instagram { background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d); }
.social-twitter { background: #000000; }
.social-youtube { background: #ff0000; }
.social-facebook { background: #1877f2; }
.social-linkedin { background: #0077b5; }
.social-bluesky { background: #0085ff; }
.social-bluesky:hover { background: #006acc; }
.social-threads { background: #000000; }
.social-threads:hover { background: #333333; }

/* =============================================================================
   6. RESPONSIVE ADJUSTMENTS
   ============================================================================= */

@media (max-width: 768px) {
    .social-buttons-container { gap: 8px; }
    .social-button { padding: 8px 16px; font-size: 13px; min-width: 90px; }
    .social-bluesky, .social-threads { min-width: 85px; }
    
    /* Keep .blog-link since Photos might not have it but Quotes/Charts will */
    .taxonomy-link, .details-link, .blog-link {
        padding: 8px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .social-buttons-container { gap: 6px; }
    .social-button { padding: 6px 12px; font-size: 12px; min-width: 80px; }
    .social-bluesky, .social-threads { min-width: 75px; }
    
    /* Keep .blog-link since Photos might not have it but Quotes/Charts will */
    .taxonomy-link, .details-link, .blog-link {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .taxonomy-links-container {
        gap: 6px;
    }
}

/* =============================================================================
POST TYPE MENU STYLES
============================================================================= */

/* ===== MENU CONTAINER ===== */
.post-type-menu-bar {
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0; /* Changed from 2px solid color to subtle border */
    margin-bottom: 25px;
    position: relative;
}

.post-type-menu-bar .ct-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

/* ===== MENU WRAPPER ===== */
.post-type-menu-wrapper {
    flex: 1;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Hide scrollbar */
.post-type-menu-wrapper::-webkit-scrollbar {
    height: 0;
    background: transparent;
}

/* ===== MENU LIST ===== */
.post-type-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 60px;
    align-items: center;
    min-width: max-content;
}

.post-type-menu > li {
    flex-shrink: 0;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
}

/* ===== MENU LINKS ===== */
.post-type-menu > li > a {
    color: #000000;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    padding: 0 18px;
    height: 100%;
    display: flex;
    align-items: center;
    text-decoration: none;
    position: relative;
    white-space: nowrap;
    transition: color 0.3s ease;
}

/* Underline effect - ONLY on hover/active */
.post-type-menu > li > a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 18px;
    right: 18px;
    height: 3px;
    background: var(--menu-highlight-color, #ff6600);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

/* Hover & active states */
.post-type-menu > li > a:hover,
.post-type-menu > li.current-menu-item > a {
    color: var(--menu-highlight-color, #ff6600);
}

.post-type-menu > li > a:hover::after,
.post-type-menu > li.current-menu-item > a::after {
    transform: scaleX(1);
}

/* ===== SEARCH WRAPPER ===== */
.post-type-search-wrapper {
    display: flex;
    align-items: center;
    margin-left: 20px;
    flex-shrink: 0;
}

/* ===== SEARCH CONTAINER ===== */
.post-type-search-container {
    display: flex;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    width: 0;
    margin-right: 0;
    overflow: hidden;
}

.post-type-search-form {
    display: flex;
    align-items: center;
    gap: 5px;
    width: 100%;
}

.search-field {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    flex: 1;
    min-width: 0;
    transition: border-color 0.3s ease;
    width: 100%;
}

.search-field:focus {
    outline: none;
    border-color: var(--menu-highlight-color, #ff6600);
}

/* REMOVED the border focus effect that might be causing orange border */
.search-field:focus {
    border-color: #666; /* Changed to neutral color */
}

.search-submit {
    background: var(--menu-highlight-color, #ff6600);
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-submit:hover {
    background: var(--menu-highlight-color, #ff6600);
    filter: brightness(0.9);
    transform: scale(1.05);
}

.search-submit svg {
    display: block;
    color: white;
    width: 16px;
    height: 16px;
}

/* ===== SEARCH TOGGLE ICON ===== */
.search-toggle-icon {
    background: #666; /* Changed from highlight color to neutral gray */
    border: none;
    border-radius: 4px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Default state - gray */
.search-toggle-icon {
    background: #666;
}

/* Hover state - slightly darker gray */
.search-toggle-icon:hover {
    background: #555;
    transform: scale(1.05);
}

/* Active state (when search is open) - use highlight color */
.search-toggle-icon.active {
    background: var(--menu-highlight-color, #ff6600);
}

.search-toggle-icon.active:hover {
    background: var(--menu-highlight-color, #ff6600);
    filter: brightness(0.9);
}

.search-toggle-icon svg {
    display: block;
    color: white;
    width: 20px;
    height: 20px;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
    .post-type-menu-bar .ct-container {
        flex-direction: column;
        height: auto;
        padding: 10px 15px;
    }
    
    .post-type-menu-wrapper {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .post-type-menu {
        justify-content: flex-start;
        height: 50px;
    }
    
    .post-type-menu > li > a {
        font-size: 12px;
        padding: 0 12px;
    }
    
    .post-type-search-wrapper {
        margin-left: 0;
        width: 100%;
        justify-content: flex-end;
    }
    
    .post-type-search-container {
        width: 100% !important;
        max-width: calc(100% - 50px);
        margin-right: 0 !important;
    }
}

@media (max-width: 480px) {
    .post-type-search-container {
        max-width: calc(100% - 50px);
    }
}