/**
 * Frontend Styles for Netflix Movie Poster Plugin
 */

/* Movie Grid Layout */
.nmp-movie-grid {
    display: grid;
    gap: 20px;
    margin: 20px 0;
    padding: 0;
}

.nmp-columns-1 { grid-template-columns: repeat(1, 1fr); }
.nmp-columns-2 { grid-template-columns: repeat(2, 1fr); }
.nmp-columns-3 { grid-template-columns: repeat(3, 1fr); }
.nmp-columns-4 { grid-template-columns: repeat(4, 1fr); }
.nmp-columns-5 { grid-template-columns: repeat(5, 1fr); }
.nmp-columns-6 { grid-template-columns: repeat(6, 1fr); }
.nmp-columns-7 { grid-template-columns: repeat(7, 1fr); }
.nmp-columns-8 { grid-template-columns: repeat(8, 1fr); }

/* Responsive Grid */
@media (max-width: 1200px) {
    .nmp-columns-6,
    .nmp-columns-7,
    .nmp-columns-8 { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 992px) {
    .nmp-columns-4,
    .nmp-columns-5,
    .nmp-columns-6,
    .nmp-columns-7,
    .nmp-columns-8 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .nmp-columns-3,
    .nmp-columns-4,
    .nmp-columns-5,
    .nmp-columns-6,
    .nmp-columns-7,
    .nmp-columns-8 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .nmp-movie-grid { grid-template-columns: repeat(1, 1fr); }
}

/* Movie Item */
.nmp-movie-item {
    position: relative;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nmp-movie-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .nmp-movie-item {
        max-width: 150px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .nmp-movie-item {
        max-width: 120px;
    }
}

/* Poster Wrapper */
.nmp-movie-poster-wrapper {
    position: relative;
    overflow: hidden;
    background: #000;
    aspect-ratio: 2/3;
}

/* Now Playing Badge */
.nmp-now-playing-badge {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    z-index: 10;
    pointer-events: none;
    max-height: 15%;
    object-fit: contain;
}

/* Adjust aspect ratio for 9:16 when badge is present */
.nmp-movie-poster-wrapper:has(.nmp-now-playing-badge) {
    aspect-ratio: 9/16;
}

.nmp-movie-poster-wrapper:has(.nmp-now-playing-badge) .nmp-movie-poster {
    object-fit: cover;
    height: 100%;
}

/* Badge Selector Menu */
.nmp-badge-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.nmp-badge-hamburger {
    width: 50px;
    height: 50px;
    background: #667eea;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    padding: 0;
}

.nmp-badge-hamburger:hover {
    background: #5568d3;
    transform: scale(1.05);
}

.nmp-badge-hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nmp-badge-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.nmp-badge-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.nmp-badge-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nmp-badge-menu {
    position: absolute;
    top: 60px;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    padding: 15px;
    min-width: 200px;
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.nmp-badge-menu.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.nmp-badge-menu-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.nmp-badge-option {
    display: flex;
    align-items: center;
    padding: 10px;
    margin: 5px 0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.nmp-badge-option:hover {
    background: #f8f9fa;
}

.nmp-badge-option.active {
    background: #e8edff;
    border-color: #667eea;
}

.nmp-badge-option input[type="radio"] {
    margin-right: 10px;
    cursor: pointer;
}

.nmp-badge-option-preview {
    width: 80px;
    height: auto;
    margin-left: 10px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nmp-badge-option-label {
    flex: 1;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .nmp-badge-selector {
        top: 10px;
        right: 10px;
    }
    
    .nmp-badge-hamburger {
        width: 45px;
        height: 45px;
    }
    
    .nmp-badge-menu {
        right: -10px;
        min-width: 180px;
    }
    
    .nmp-badge-option-preview {
        width: 60px;
    }
}

/* Mobile-optimized poster sizes */
@media (max-width: 768px) {
    .nmp-movie-poster-wrapper {
        max-width: 150px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .nmp-movie-poster-wrapper {
        max-width: 120px;
    }
}

.nmp-movie-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nmp-movie-poster-link:hover .nmp-movie-poster {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Rating Badge */
.nmp-movie-rating {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 2;
}

.nmp-rating-star {
    color: #ffd700;
    font-size: 16px;
}

/* Movie Title */
.nmp-movie-title {
    margin: 15px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: #333;
    min-height: 44px;
}

.nmp-movie-year {
    color: #666;
    font-weight: normal;
    font-size: 14px;
}

/* Mobile title adjustments */
@media (max-width: 768px) {
    .nmp-movie-title {
        font-size: 13px;
        margin: 10px 8px;
        min-height: 36px;
    }
    
    .nmp-movie-year {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .nmp-movie-title {
        font-size: 12px;
        margin: 8px 5px;
        min-height: 32px;
    }
}

/* Movie Overview */
.nmp-movie-overview {
    margin: 0 15px 15px;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

/* Lightbox */
.nmp-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nmp-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.nmp-lightbox-content {
    position: relative;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    z-index: 10000;
}

/* Mobile lightbox adjustments */
@media (max-width: 768px) {
    .nmp-lightbox-content {
        width: 95%;
        max-height: 95vh;
        border-radius: 8px;
    }
}

.nmp-lightbox-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    font-family: Arial, sans-serif;
}

.nmp-lightbox-close:hover {
    background: rgba(0, 0, 0, 1);
}

.nmp-lightbox-inner {
    padding: 30px;
    overflow-y: auto;
    max-height: 90vh;
}

.nmp-lightbox-loading {
    text-align: center;
    padding: 50px;
    font-size: 18px;
    color: #666;
}

/* Download button in lightbox */
/* Download buttons container */
.nmp-download-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.nmp-download-button {
    display: inline-block;
    padding: 12px 24px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: background 0.3s ease;
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.nmp-download-button:hover {
    background: #5568d3;
    color: white;
}

.nmp-download-button:before {
    content: "⬇ ";
    margin-right: 5px;
}

/* Badge download button styling */
.nmp-download-with-badge {
    background: #f59e0b;
}

.nmp-download-with-badge:hover {
    background: #d97706;
}

.nmp-download-with-badge:before {
    content: "🎬 ";
    margin-right: 5px;
}

/* Mobile lightbox padding */
@media (max-width: 768px) {
    .nmp-lightbox-inner {
        padding: 20px 15px;
    }
    
    .nmp-lightbox-loading {
        padding: 30px;
        font-size: 16px;
    }
    
    .nmp-download-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .nmp-download-button {
        display: block;
        text-align: center;
        padding: 15px 20px;
        font-size: 16px;
        min-width: auto;
        width: 100%;
    }
}

/* Featured Movies */
.nmp-featured-movies {
    margin: 20px 0;
}

.nmp-featured-item {
    position: relative;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
}

.nmp-featured-main {
    min-height: 500px;
}

.nmp-featured-backdrop {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 300px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
}

.nmp-featured-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
}

.nmp-featured-content {
    position: relative;
    z-index: 2;
    padding: 40px;
    color: #fff;
}

.nmp-featured-title {
    font-size: 36px;
    font-weight: bold;
    margin: 0 0 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.nmp-featured-overview {
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 15px;
    max-width: 600px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.nmp-featured-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
}

.nmp-featured-rating,
.nmp-featured-year {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

/* Widget Styles */
.nmp-widget-movies {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.nmp-widget-movie {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.nmp-widget-poster {
    width: 60px;
    height: 90px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.nmp-widget-info h4 {
    margin: 0 0 5px;
    font-size: 14px;
    line-height: 1.4;
}

.nmp-widget-rating {
    font-size: 12px;
    color: #ffd700;
}

/* Error Message */
.nmp-error {
    padding: 20px;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin: 20px 0;
}

/* Loading State */
.nmp-loading {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #666;
}

.nmp-loading::after {
    content: '...';
    animation: nmp-dots 1.5s steps(4, end) infinite;
}

@keyframes nmp-dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* Accessibility */
.nmp-movie-poster-link:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

.nmp-lightbox-close:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Lightbox Movie Details */
.nmp-movie-details {
    position: relative;
}

.nmp-details-backdrop {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.nmp-details-content {
    padding: 20px;
}

.nmp-details-header {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.nmp-details-poster {
    width: 150px;
    height: 225px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    background: #f0f0f0;
    display: block;
}

.nmp-details-poster[src=""],
.nmp-details-poster:not([src]) {
    display: none;
}

.nmp-details-info {
    flex: 1;
}

.nmp-details-info h2 {
    margin: 0 0 15px;
    font-size: 24px;
    color: #333;
}

.nmp-details-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.nmp-meta-item {
    background: #f0f0f0;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 14px;
}

.nmp-details-genres {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.nmp-genre-tag {
    background: #667eea;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
}

.nmp-details-overview {
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
}

/* Mobile lightbox details */
@media (max-width: 768px) {
    .nmp-details-backdrop {
        height: 150px;
    }
    
    .nmp-details-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .nmp-details-poster {
        width: 120px;
        height: 180px;
    }
    
    .nmp-details-info h2 {
        font-size: 20px;
    }
    
    .nmp-details-meta {
        justify-content: center;
    }
    
    .nmp-details-genres {
        justify-content: center;
    }
}

/* Touch-friendly tap targets on mobile */
@media (max-width: 768px) {
    .nmp-movie-poster-link {
        display: block;
        min-height: 44px;
        min-width: 44px;
    }
    
    .nmp-lightbox-close {
        min-width: 44px;
        min-height: 44px;
    }
}

/* Category Heading */
.nmp-category-heading {
    margin: 20px 0;
    padding: 0 10px;
}

.nmp-category-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0;
    padding-bottom: 15px;
    border-bottom: 3px solid #667eea;
    display: inline-block;
}

@media (max-width: 768px) {
    .nmp-category-title {
        font-size: 24px;
        padding-bottom: 12px;
        border-bottom-width: 2px;
    }
}

@media (max-width: 480px) {
    .nmp-category-title {
        font-size: 20px;
        padding-bottom: 10px;
    }
}

/* Streaming Provider Menu */
.nmp-provider-menu {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nmp-provider-menu-header {
    margin-bottom: 20px;
    text-align: center;
}

.nmp-provider-menu-header h3 {
    margin: 0;
    font-size: 20px;
    color: #333;
    font-weight: 600;
}

.nmp-provider-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
}

.nmp-provider-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 12px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    min-height: 80px;
}

.nmp-provider-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: var(--provider-color);
}

.nmp-provider-btn.active {
    background: var(--provider-color);
    border-color: var(--provider-color);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nmp-provider-btn.active .nmp-provider-name {
    color: white;
}

.nmp-provider-icon {
    font-size: 28px;
    margin-bottom: 8px;
    display: block;
}

.nmp-provider-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.nmp-provider-loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.nmp-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: nmp-spin 1s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes nmp-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile Provider Menu */
@media (max-width: 768px) {
    .nmp-provider-menu {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .nmp-provider-menu-header h3 {
        font-size: 18px;
    }
    
    .nmp-provider-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .nmp-provider-btn {
        padding: 14px 10px;
        min-height: 75px;
    }
    
    .nmp-provider-icon {
        font-size: 24px;
        margin-bottom: 6px;
    }
    
    .nmp-provider-name {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .nmp-provider-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nmp-provider-btn {
        padding: 12px 8px;
        min-height: 70px;
    }
    
    .nmp-provider-icon {
        font-size: 22px;
    }
    
    .nmp-provider-name {
        font-size: 11px;
    }
}

/* Movie Search */
.nmp-search-container {
    margin: 20px 0;
}

.nmp-search-form {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.nmp-search-input-wrapper {
    display: flex;
    gap: 10px;
    position: relative;
}

.nmp-search-input {
    flex: 1;
    padding: 16px 50px 16px 20px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    outline: none;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.nmp-search-input:focus {
    border-color: #667eea;
}

.nmp-search-button {
    padding: 16px 30px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

.nmp-search-button:hover {
    background: #5568d3;
    transform: translateY(-2px);
}

.nmp-search-button:active {
    transform: translateY(0);
}

.nmp-search-icon {
    font-size: 18px;
}

.nmp-search-clear {
    position: absolute;
    right: 180px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: #e0e0e0;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    font-size: 18px;
    color: #666;
}

.nmp-search-clear:hover {
    background: #d0d0d0;
}

.nmp-search-results {
    margin-top: 30px;
}

.nmp-search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 10px;
}

.nmp-search-results-title {
    margin: 0;
    font-size: 24px;
    color: #333;
}

.nmp-search-results-count {
    font-size: 14px;
    color: #666;
    background: #f0f0f0;
    padding: 5px 15px;
    border-radius: 20px;
}

.nmp-search-results-grid {
    /* Uses same grid styles as nmp-movie-grid */
}

.nmp-search-loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

.nmp-search-no-results {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-top: 20px;
}

.nmp-no-results-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.nmp-search-no-results h3 {
    margin: 0 0 10px;
    font-size: 24px;
    color: #333;
}

.nmp-search-no-results p {
    margin: 0;
    font-size: 16px;
    color: #666;
}

/* Mobile Search Styles */
@media (max-width: 768px) {
    .nmp-search-form {
        padding: 15px;
    }
    
    .nmp-search-input-wrapper {
        flex-direction: column;
        gap: 12px;
    }
    
    .nmp-search-input {
        padding: 14px 45px 14px 18px;
        font-size: 16px;
    }
    
    .nmp-search-button {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }
    
    .nmp-search-clear {
        right: 15px;
        top: 14px;
        transform: none;
    }
    
    .nmp-search-results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .nmp-search-results-title {
        font-size: 20px;
    }
    
    .nmp-search-results-count {
        font-size: 13px;
    }
    
    .nmp-search-no-results {
        padding: 40px 15px;
    }
    
    .nmp-no-results-icon {
        font-size: 48px;
    }
    
    .nmp-search-no-results h3 {
        font-size: 20px;
    }
    
    .nmp-search-no-results p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .nmp-search-input {
        font-size: 14px;
        padding: 12px 40px 12px 16px;
    }
    
    .nmp-search-button {
        font-size: 14px;
        padding: 12px 20px;
    }
    
    .nmp-search-icon {
        font-size: 16px;
    }
}

/* Print Styles */
@media print {
    .nmp-lightbox,
    .nmp-movie-rating,
    .nmp-download-button,
    .nmp-provider-menu,
    .nmp-search-form {
        display: none !important;
    }
    
    .nmp-movie-item {
        break-inside: avoid;
    }
}
/* Category Bar Styles */
.nmp-category-bar {
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.nmp-category-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.nmp-category-quick-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 2px solid var(--category-color);
    background: white;
    color: var(--category-color);
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nmp-category-quick-btn:hover {
    background: var(--category-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.nmp-category-quick-btn:active {
    transform: translateY(0);
}

.nmp-category-quick-btn.active {
    background: var(--category-color);
    color: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.nmp-category-icon {
    font-size: 16px;
    line-height: 1;
}

.nmp-category-name {
    line-height: 1;
}

/* Mobile Category Bar Styles */
@media (max-width: 768px) {
    .nmp-category-bar {
        padding: 12px 15px;
    }
    
    .nmp-category-buttons {
        gap: 8px;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
    }
    
    .nmp-category-quick-btn {
        padding: 8px 14px;
        font-size: 13px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .nmp-category-icon {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .nmp-category-bar {
        padding: 10px 12px;
        margin-bottom: 15px;
    }
    
    .nmp-category-buttons {
        gap: 6px;
    }
    
    .nmp-category-quick-btn {
        padding: 7px 12px;
        font-size: 12px;
    }
    
    .nmp-category-icon {
        font-size: 13px;
    }
}

/* Category Loading Indicator */
.nmp-category-loading {
    display: none;
    text-align: center;
    padding: 20px;
    font-size: 14px;
    color: #666;
}

.nmp-category-loading .nmp-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: nmp-spin 1s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes nmp-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
