/* Header styles for Fylrano website */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: transparent;
    transition: all 0.3s ease;
}

header.scrolled {
    background-color: var(--primary-dark);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header.hidden {
    transform: translateY(-100%);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-2) 0;
    height: 80px;
}

.logo {
    flex: 0 0 auto;
}

.logo img {
    height: 50px;
    transition: all 0.3s ease;
}

header.scrolled .logo img {
    height: 40px;
}

.main-nav {
    flex: 1 1 auto;
    margin-left: var(--space-5);
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav ul li {
    margin-right: var(--space-3);
}

.main-nav ul li a {
    color: var(--text-light);
    font-weight: 600;
    padding: var(--space-1) var(--space-1);
    position: relative;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.main-nav ul li a:hover::after,
.main-nav ul li a.active::after {
    width: 100%;
}

/* Search box */
.search-container {
    position: relative;
    margin-left: var(--space-3);
}

.search-box {
    display: flex;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
}

.search-box input {
    background: transparent;
    border: none;
    padding: 8px 16px;
    color: var(--text-light);
    width: 200px;
    outline: none;
}

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

.search-box button {
    background: transparent;
    border: none;
    color: var(--text-light);
    padding: 0 16px;
    cursor: pointer;
}

/* Search results */
.search-results {
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    background-color: white;
    border-radius: var(--border-radius-md);
    box-shadow: var(--box-shadow-lg);
    margin-top: var(--space-1);
    z-index: 100;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    opacity: 0;
}

.search-results.active {
    max-height: 400px;
    opacity: 1;
    padding: var(--space-2);
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: var(--space-1) 0;
    border-bottom: 1px solid var(--gray-200);
}

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

.search-result-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
    margin-right: var(--space-2);
}

.result-info {
    flex: 1;
}

.result-info h4 {
    margin-bottom: var(--space-1);
    font-size: var(--font-size-sm);
}

.search-result-item .play-btn {
    font-size: var(--font-size-sm);
    padding: 4px 8px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
}

.no-results {
    padding: var(--space-2);
    text-align: center;
    color: var(--gray-600);
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 150;
}

.mobile-menu-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text-light);
    border-radius: 3px;
    transition: all 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Media Queries */
@media (max-width: 992px) {
    .search-box input {
        width: 150px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background-color: var(--primary-dark);
        margin-left: 0;
        padding: 100px var(--space-3) var(--space-3);
        transition: right 0.3s ease;
        z-index: 100;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
    }
    
    .main-nav ul li {
        margin-right: 0;
        margin-bottom: var(--space-3);
    }
    
    .search-container {
        margin-left: auto;
        margin-right: var(--space-3);
    }
}

@media (max-width: 576px) {
    .header-container {
        height: 70px;
    }
    
    .logo img {
        height: 40px;
    }
    
    .search-box {
        display: none;
    }
}