/* Subscription Status Styles */
.subscription-status-text {
    font-size: 0.85rem;
    margin-top: 8px;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(0, 123, 255, 0.1);
    color: #0056b3;
    text-align: center;
}

.subscription-status-text.warning {
    background: rgba(255, 193, 7, 0.1);
    color: #856404;
}

.subscription-status-text.danger {
    background: rgba(220, 53, 69, 0.1);
    color: #721c24;
}

.subscription-status-text.success {
    background: rgba(40, 167, 69, 0.1);
    color: #155724;
}

/* Search Button Base Styles */
#search-button {
    transition: all 0.3s ease;
    position: absolute;
    bottom: 10px;
    right: 10px;
    border-radius: 8px;
    font-weight: 500;
    min-width: 120px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Search Button State Styles */
#search-button.btn-success {
    background: linear-gradient(135deg, #0081FF 0%, #6bb5ff 100%);
    border: none;
    animation: pulse-success 2s infinite;
}

/* Search Area Hide Animation */
.search-area-hide {
    transition: all 0.4s ease-in-out;
    transform: translateY(-20px);
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.search-area-show {
    transition: all 0.4s ease-in-out;
    transform: translateY(0);
    opacity: 1;
    max-height: 1000px;
    /* overflow: visible; */
}

#search-button.btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
}

#search-button.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

#search-button.btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    border: none;
    color: #000;
    animation: pulse-warning 1.5s infinite;
}

#search-button.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: none;
    animation: shake 0.8s infinite;
}

/* Search Button Special States */
#search-button:disabled {
    opacity: 0.7;
    cursor: pointer !important;
}

#search-button:disabled:hover {
    transform: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#search-button.btn-success .fa-infinity {
    animation: rotate 2s linear infinite;
}

#search-button.loading {
    pointer-events: none;
}

#search-button.loading .spinner-border {
    width: 1rem;
    height: 1rem;
    border-width: 2px;
}

/* Search Form Styles */
.position-relative {
    border-radius: 12px;
    overflow: hidden;
}

#search-query {
    border-radius: 12px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    padding-right: 140px;
    /* Reserve space for button */
}

#search-query:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Search Button Animation Styles */
@keyframes pulse-success {
    0% {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    50% {
        box-shadow: 0 4px 12px rgb(77, 187, 255, 0.4);
    }

    100% {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
}

@keyframes pulse-warning {
    0% {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    50% {
        box-shadow: 0 4px 12px rgba(255, 193, 7, 0.5);
    }

    100% {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
}

@keyframes shake {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-1px);
    }

    50% {
        transform: translateX(1px);
    }

    75% {
        transform: translateX(-1px);
    }

    100% {
        transform: translateX(0);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Button state classes */
.btn-pulse-success {
    animation: pulse-success 2s infinite;
}

.btn-pulse-warning {
    animation: pulse-warning 2s infinite;
}

.btn-shake {
    animation: shake 0.5s ease-in-out;
}

.btn-rotate {
    animation: rotate 1s linear infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #search-button {
        min-width: 100px;
        font-size: 0.9rem;
        padding: 8px 12px;
    }
}

/* Search Chip Styles */
.search-chip {
    display: inline-block;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 25px;
    padding: 8px 16px;
    margin: 4px 8px;
    font-size: 0.9rem;
    color: #495057;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    user-select: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.search-chip::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.search-chip:hover::before {
    left: 100%;
}

.search-chip:hover {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-color: #2196f3;
    color: #1976d2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.search-chip:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(33, 150, 243, 0.2);
}

.search-chip:focus {
    outline: none;
    border-color: #2196f3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.search-chip .chip-icon {
    margin-right: 6px;
    font-size: 1rem;
    display: inline-block;
    transition: transform 0.2s ease;
}

.search-chip:hover .chip-icon {
    transform: scale(1.1);
}

/* Marquee Container Styles */
.marquee-container {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    padding: 20px 0;
    backdrop-filter: blur(10px);
}

.marquee-track {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.marquee-row {
    display: flex;
    align-items: center;
    white-space: nowrap;
    padding: 10px 0;
}

.marquee-row-1 {
    animation: marqueeLeft 30s linear infinite;
}

.marquee-row-2 {
    animation: marqueeRight 25s linear infinite;
}

.marquee-row-3 {
    animation: marqueeLeft 35s linear infinite;
}

@keyframes marqueeLeft {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

@keyframes marqueeRight {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}