/**
 * WowPlatter Header Styles
 * 
 * Standalone CSS for the reusable header component.
 * Uses specific class names to avoid conflicts with page-specific styles.
 *
 * @package    WowPlatter
 * @subpackage WowPlatter/public/css
 */

/* Header Container */
.wowplatter-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1rem 0;
    position: relative;
    z-index: 1000;
}

.wowplatter-header-container {
    max-width: 1200px;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
    width: 100%;
}

/* Navigation Layout */
.wowplatter-header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 20px;
}

/* Left Side Button Container */
.wowplatter-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

/* Center Search Container */
.wowplatter-header-center {
    flex: 1;
    display: flex;
    justify-content: center;
    max-width: 500px;
    margin: 0 20px;
}

/* Right Side Button Container */
.wowplatter-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

/* Header Search Form */
.wowplatter-header-search {
    display: flex;
    width: 100%;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    overflow: visible; /* Changed to allow suggestions dropdown */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative; /* Added for positioning suggestions */
}

.wowplatter-header-search-input {
    flex: 1;
    border: none;
    background: transparent;
    color: #fff;
    padding: 12px 20px;
    font-size: 14px;
    outline: none;
    border-radius: 25px 0 0 25px;
}

.wowplatter-header-search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.wowplatter-header-search-input:focus {
    background: rgba(255, 255, 255, 0.1);
}

.wowplatter-header-search-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 0 25px 25px 0;
}

.wowplatter-header-search-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Override search.css styles for header integration - more specific selectors */
.wowplatter-header .wowplatter-header-search #wowplatter-search-input {
    border-radius: 8px 0 0 8px !important;
    border-right: none !important;
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #000000 !important;
}

.wowplatter-header .wowplatter-header-search #wowplatter-search-input::placeholder {
    color: #666666 !important;
}

.wowplatter-header .wowplatter-header-search .search-submit {
    border-radius: 0 8px 8px 0 !important;
    border-left: none !important;
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #000000 !important;
}

.wowplatter-header .wowplatter-header-search .search-submit:hover {
    background: #f0f0f0 !important;
    color: #000000 !important;
}

/* Header Buttons */
.wowplatter-header-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    cursor: pointer;
}

.wowplatter-header-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    color: #fff;
    text-decoration: none;
}

.wowplatter-header-btn:focus {
    outline: none;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6), 0 0 0 3px rgba(255, 255, 255, 0.3);
}

/* Button Positioning */
.wowplatter-header-btn-right {
    margin-left: auto;
}

/* Right Side Button Container */
.wowplatter-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Icon Styling */
.wowplatter-header-btn i {
    font-size: 0.9rem;
}

/* Active Button State */
.wowplatter-header-btn-active {
    background: rgba(255, 255, 255, 0.2) !important;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.wowplatter-header-btn-active:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .wowplatter-header {
        padding: 0.75rem 0;
    }
    
    .wowplatter-header-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
        gap: 6px;
    }
    
    .wowplatter-header-btn i {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .wowplatter-header-container {
        padding-right: 10px;
        padding-left: 10px;
    }
    
    .wowplatter-header-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
        gap: 4px;
    }
}

/* Ensure no conflicts with other styles */
.wowplatter-header * {
    box-sizing: border-box;
}

/* Override any potential conflicts */
.wowplatter-header a.wowplatter-header-btn {
    color: #fff !important;
    text-decoration: none !important;
}

.wowplatter-header a.wowplatter-header-btn:visited {
    color: #fff !important;
}

.wowplatter-header a.wowplatter-header-btn:active {
    color: #fff !important;
}