/**
 * AB Record Label Dock Styles
 * Version: 0.3.3
 */

/* Dock Container */
.abrl-dock {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a1a;
    z-index: 9998; /* Just below AB Playlister */
    display: flex;
    align-items: center;
    justify-content:space-evenly;
    transition: height 0.3s ease;
}

/* Commerce Tools Container */
.abrl-commerce-tools {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 20px;
    height: 60px;
}

/* Base styles for all dock links/buttons */
.abrl-commerce-tools a,
.abrl-commerce-tools button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
/*    background: none;*/
    border: none;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    /* transition: opacity 0.2s; */
}

.abrl-commerce-tools a:hover,
.abrl-commerce-tools button:hover {
    /* opacity: 0.8; */
}

.abrl-commerce-tools a:focus,
.abrl-commerce-tools button:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Icon placeholder styles */
.abrl-icon {
    display: block;
    width: 24px;
    height: 24px;
    background-color: currentColor;
    /* Temporary - will be replaced with actual icons */
}

.abrl-icon-search {
    -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><circle cx="11" cy="11" r="8" fill="none" stroke="currentColor" stroke-width="2"/><path d="m21 21-4.35-4.35" stroke="currentColor" stroke-width="2"/></svg>') center/contain no-repeat;
    mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><circle cx="11" cy="11" r="8" fill="none" stroke="currentColor" stroke-width="2"/><path d="m21 21-4.35-4.35" stroke="currentColor" stroke-width="2"/></svg>') center/contain no-repeat;
}

.abrl-icon-cart {
    -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9 22C9.55228 22 10 21.5523 10 21C10 20.4477 9.55228 20 9 20C8.44772 20 8 20.4477 8 21C8 21.5523 8.44772 22 9 22Z" fill="currentColor"/><path d="M20 22C20.5523 22 21 21.5523 21 21C21 20.4477 20.5523 20 20 20C19.4477 20 19 20.4477 19 21C19 21.5523 19.4477 22 20 22Z" fill="currentColor"/><path d="M1 1H5L7.68 14.39C7.77144 14.8504 8.02191 15.264 8.38755 15.5583C8.75318 15.8526 9.2107 16.009 9.68 16H19.4C19.8693 16.009 20.3268 15.8526 20.6925 15.5583C21.0581 15.264 21.3086 14.8504 21.4 14.39L23 6H6" stroke="currentColor" stroke-width="2" fill="none"/></svg>') center/contain no-repeat;
    mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9 22C9.55228 22 10 21.5523 10 21C10 20.4477 9.55228 20 9 20C8.44772 20 8 20.4477 8 21C8 21.5523 8.44772 22 9 22Z" fill="currentColor"/><path d="M20 22C20.5523 22 21 21.5523 21 21C21 20.4477 20.5523 20 20 20C19.4477 20 19 20.4477 19 21C19 21.5523 19.4477 22 20 22Z" fill="currentColor"/><path d="M1 1H5L7.68 14.39C7.77144 14.8504 8.02191 15.264 8.38755 15.5583C8.75318 15.8526 9.2107 16.009 9.68 16H19.4C19.8693 16.009 20.3268 15.8526 20.6925 15.5583C21.0581 15.264 21.3086 14.8504 21.4 14.39L23 6H6" stroke="currentColor" stroke-width="2" fill="none"/></svg>') center/contain no-repeat;
}

.abrl-icon-account {
    -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2" stroke="currentColor" stroke-width="2" fill="none"/><circle cx="12" cy="7" r="4" stroke="currentColor" stroke-width="2" fill="none"/></svg>') center/contain no-repeat;
    mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2" stroke="currentColor" stroke-width="2" fill="none"/><circle cx="12" cy="7" r="4" stroke="currentColor" stroke-width="2" fill="none"/></svg>') center/contain no-repeat;
}

/* Cart badge count */
.abrl-cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: #ff0000;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 9px;
    padding: 0 5px;
}

/* Cart updated animation */
.cart-updated .cart-badge-link {
    animation: cartPulse 0.6s ease;
}

@keyframes cartPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Search form */
.abrl-search-form {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: #1a1a1a;
    border-top: 1px solid #333;
    padding: 15px 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: none;
}

.abrl-search-form.active {
    display: block;
}

.abrl-search-form.visible {
    transform: translateY(0);
}

.abrl-search-form form {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.abrl-search-input {
    flex: 1;
    background: #2a2a2a;
    border: 1px solid #444;
    color: #fff;
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 16px; /* Prevent zoom on mobile */
}

.abrl-search-input:focus {
    outline: none;
    border-color: #666;
    background: #333;
}

.abrl-search-submit {
    background: #444;
    border: none;
    color: #fff;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.abrl-search-submit:hover {
    background: #555;
}

/* Integration with AB Playlister */
.abrl-dock .ab_player {
    position: static;
    flex: 1;
    background: transparent;
    box-shadow: none;
    height: 60px;
    /* padding: 0 20px; */
}
@media (max-width: 768px) {
/* adjust to match site breakpoint	*/
	 .ab_player { 
/*		 remove right padding b/c it's next to dock controls*/
		 padding: 0 0 0 15px;
	}
}
/* Ensure player controls remain visible */
.abrl-dock .abp-controls {
    /* margin-right: 20px; */
}

/* Responsive adjustments for very small screens */
@media (max-width: 480px) {
    .abrl-commerce-tools {
        gap: 15px;
        padding: 0 15px;
    }
    
    .abrl-commerce-tools a,
    .abrl-commerce-tools button {
        width: 36px;
        height: 36px;
    }
    
    .abrl-icon {
        width: 20px;
        height: 20px;
    }
    
    .abrl-search-form {
        padding: 10px 15px;
    }
    
    .abrl-search-input {
        font-size: 16px; /* Prevent zoom */
        padding: 8px 12px;
    }
}