/**
 * Elementor Widgets Styles for Song Requests Plugin
 */

/* Carousel Widget Styles - Metalcore Night Theme */
.sr-elementor-carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.sr-requests-carousel {
    width: 100%;
    position: relative;
}

.sr-requests-carousel .swiper-wrapper {
    display: flex;
    align-items: stretch;
}

.sr-requests-carousel .swiper-slide {
    height: auto;
    display: flex;
    align-items: stretch;
}

.sr-carousel-item {
    display: flex;
    flex-direction: column;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

.sr-carousel-item:hover {
    transform: none;
    border-color: #666;
}

/* Grid Widget Styles - Metalcore Night Theme */
.sr-elementor-grid-container {
    width: 100%;
}

.sr-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 0;
}

.sr-grid-item {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sr-request-content {
    display: flex;
    flex-direction: column;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    transition: all 0.3s ease;
    height: 100%;
    min-height: 400px;
    position: relative;
}

.sr-request-content:hover {
    transform: none;
    border-color: #666;
}

/* Album Art Styles - Metalcore Night Theme */
.sr-album-art {
    width: 100%;
    height: 250px;
    position: relative;
    overflow: hidden;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sr-album-art::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.sr-album-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.sr-default-album-art {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 3rem;
    background: linear-gradient(135deg, #111 0%, #222 25%, #333 50%, #222 75%, #111 100%);
    position: relative;
    z-index: 0;
    overflow: hidden;
}

.sr-default-album-art::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(
        circle,
        transparent 20%,
        rgba(255, 255, 255, 0.1) 21%,
        rgba(255, 255, 255, 0.1) 22%,
        transparent 23%,
        transparent 35%,
        rgba(255, 255, 255, 0.05) 36%,
        rgba(255, 255, 255, 0.05) 37%,
        transparent 38%
    );
    border-radius: 50%;
    opacity: 0.6;
}

.sr-default-album-art::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 15%;
    height: 15%;
    background: #444;
    border-radius: 50%;
    z-index: 1;
}

.sr-music-icon {
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
}

/* Song Info Styles - Metalcore Night Theme */
.sr-song-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    z-index: 2;
    color: white;
}

.sr-song-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #ffffff;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.sr-artist-name {
    font-size: 1.125rem;
    font-weight: 400;
    margin: 0 0 10px 0;
    color: #cccccc;
    line-height: 1.3;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.sr-location {
    font-size: 0.875rem;
    color: #999;
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.sr-location-icon {
    font-size: 0.875rem;
}

.sr-request-date {
    font-size: 0.75rem;
    color: #777;
    margin: 5px 0 0 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Spotify Link Styles - Metalcore Night Theme */
.sr-spotify-link {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 3;
}

.sr-spotify-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(29, 185, 84, 0.9);
    color: white;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 0;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid #1db954;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sr-spotify-btn:hover {
    background: #1db954;
    transform: none;
    text-decoration: none;
    color: white;
    border-color: #1ed760;
}

.sr-spotify-icon {
    font-size: 0.875rem;
}

/* Voting Styles - Metalcore Night Theme */
.sr-voting-section {
    position: absolute;
    bottom: 15px;
    left: 15px;
    z-index: 3;
}

.sr-voting-buttons {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.sr-vote-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
    padding: 6px 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 35px;
    text-decoration: none;
    color: white;
    backdrop-filter: blur(5px);
}

.sr-vote-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: none;
    border-color: rgba(255, 255, 255, 0.4);
}

.sr-vote-btn:active {
    transform: scale(0.95);
}

.sr-emoji {
    font-size: 1.25rem;
    margin-bottom: 2px;
    line-height: 1;
    filter: brightness(0.9);
}

.sr-vote-count {
    font-size: 0.625rem;
    font-weight: 600;
    color: #ccc;
    line-height: 1;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Carousel Navigation - Metalcore Night Theme */
.sr-requests-carousel .swiper-button-next,
.sr-requests-carousel .swiper-button-prev {
    color: #ffffff;
    font-weight: 900;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 0;
    width: 50px;
    height: 50px;
    margin-top: -25px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.sr-requests-carousel .swiper-button-next:hover,
.sr-requests-carousel .swiper-button-prev:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: none;
    border-color: rgba(255, 255, 255, 0.6);
}

.sr-requests-carousel .swiper-button-next::after,
.sr-requests-carousel .swiper-button-prev::after {
    font-size: 18px;
    font-weight: 900;
}

/* Carousel Pagination - Metalcore Night Theme */
.sr-requests-carousel .swiper-pagination {
    bottom: -40px;
}

.sr-requests-carousel .swiper-pagination-bullet {
    background: #666;
    opacity: 0.7;
    transition: all 0.3s ease;
    border-radius: 0;
    width: 12px;
    height: 4px;
}

.sr-requests-carousel .swiper-pagination-bullet-active {
    background: #fff;
    opacity: 1;
    transform: none;
}

/* Load More Button - Metalcore Night Theme */
.sr-load-more-container {
    text-align: center;
    margin-top: 30px;
}

.sr-load-more-btn {
    background: #1a1a1a;
    color: #ffffff;
    border: 1px solid #333;
    padding: 15px 40px;
    border-radius: 0;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sr-load-more-btn:hover {
    background: #333;
    transform: none;
    border-color: #555;
}

.sr-load-more-btn:active {
    transform: none;
}

.sr-load-more-btn:disabled {
    background: #0a0a0a;
    color: #666;
    border-color: #222;
    cursor: not-allowed;
}

/* Map Widget Styles */
.sr-elementor-map-container {
    position: relative;
    width: 100%;
}

.sr-elementor-map {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* No Requests Message - Metalcore Night Theme */
.sr-no-requests {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 1.125rem;
    font-weight: 400;
    background: #1a1a1a;
    border-radius: 0;
    border: 1px solid #333;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sr-grid-container {
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 15px;
    }
    
    .sr-carousel-item,
    .sr-request-content {
        padding: 15px;
    }
    
    .sr-song-title {
        font-size: 1.125rem;
    }
    
    .sr-artist-name {
        font-size: 0.875rem;
    }
    
    .sr-voting-buttons {
        gap: 5px;
    }
    
    .sr-vote-btn {
        padding: 6px 4px;
        min-width: 40px;
    }
    
    .sr-emoji {
        font-size: 1.25rem;
    }
    
    .sr-requests-carousel .swiper-button-next,
    .sr-requests-carousel .swiper-button-prev {
        width: 35px;
        height: 35px;
        margin-top: -17.5px;
    }
    
    .sr-requests-carousel .swiper-button-next::after,
    .sr-requests-carousel .swiper-button-prev::after {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .sr-grid-container {
        grid-template-columns: 1fr;
        grid-gap: 15px;
    }
    
    .sr-carousel-item,
    .sr-request-content {
        padding: 12px;
    }
    
    .sr-song-title {
        font-size: 1rem;
    }
    
    .sr-artist-name {
        font-size: 0.8125rem;
    }
    
    .sr-spotify-btn {
        padding: 8px 14px;
        font-size: 0.8125rem;
    }
    
    .sr-voting-buttons {
        gap: 3px;
    }
    
    .sr-vote-btn {
        padding: 5px 3px;
        min-width: 35px;
    }
    
    .sr-emoji {
        font-size: 1.125rem;
    }
    
    .sr-vote-count {
        font-size: 0.6875rem;
    }
}

/* Additional Metalcore Theme Styles */
.sr-carousel-item,
.sr-request-content {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.sr-carousel-item.has-background-image,
.sr-request-content.has-background-image {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8));
}

/* Animation Classes */
.sr-fade-in {
    animation: srFadeIn 0.5s ease-in-out;
}

@keyframes srFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sr-loading {
    position: relative;
    pointer-events: none;
}

.sr-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: srSpin 1s linear infinite;
}

@keyframes srSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}