/* Modern CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: #1a202c;
    min-height: 100vh;
    line-height: 1.6;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Play Button Styles */
.play-button {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    color: white;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeIn 1s ease forwards 1.5s;
}

.play-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.play-button:hover::before {
    left: 100%;
}

.play-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

/* Decorative Elements */
.welcome-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.1);
    animation: float 6s infinite ease-in-out;
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -150px;
    animation-delay: 0s;
}

.circle-2 {
    width: 200px;
    height: 200px;
    bottom: -100px;
    left: -100px;
    animation-delay: -2s;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes titleReveal {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

/* Exit Animation */
.welcome-screen.exit {
    opacity: 0;
    pointer-events: none;
}

.welcome-screen.exit .welcome-content {
    transform: scale(0.9);
    transition: transform 0.5s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .welcome-title {
        font-size: 2rem;
    }
    
    .welcome-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

/* Main Content Styling */
.main-content {
    padding: 2rem 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.container {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    border-radius: 30px;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #3b82f6, #2563eb, #1d4ed8);
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

/* Modern Container Styles */
.playlist-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

/* Search Container */
.search-wrapper {
    position: relative;
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

/* Search Input Styling */
.search-input {
    width: 100%;
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    color: #1e293b;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 
        0 4px 20px rgba(59, 130, 246, 0.15),
        0 0 0 4px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

/* Search Icon */
.search-icon {
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    transition: color 0.3s ease;
}

.search-input:focus + .search-icon {
    color: #3b82f6;
}

/* Clear Button */
.search-clear {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 20px;
    height: 20px;
    background: #e2e8f0;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-input:valid ~ .search-clear {
    transform: translateY(-50%) scale(1);
    opacity: 1;
}

.search-clear:hover {
    background: #cbd5e1;
}

/* Search Animation */
@keyframes searchPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

.search-input:focus {
    animation: searchPulse 2s infinite;
}

/* Placeholder Animation */
.search-input::placeholder {
    color: #94a3b8;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.search-input:focus::placeholder {
    transform: translateX(10px);
    opacity: 0.7;
}

/* Loading State */
@keyframes searchLoading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.search-input.loading::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        #3b82f6,
        transparent
    );
    animation: searchLoading 1.5s infinite;
}

/* Results Count Badge */
.results-count {
    position: absolute;
    right: 2rem;
    top: 0;
    transform: translateY(-50%);
    background: #3b82f6;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.results-count.visible {
    opacity: 1;
    transform: translateY(-50%) translateY(-5px);
}

/* Playlist Item Styles */
.playlist-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    margin-bottom: 0.8rem;
    background: white;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(226, 232, 240, 0.7);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.playlist-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: #3b82f6;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.playlist-item:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.playlist-item:hover::before {
    transform: scaleY(1);
}

/* Surah Info Styles */
.surah-left {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.name-id-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.Surah-id {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 3rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.2);
}

.Surah-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e3a8a;
    transition: color 0.3s ease;
}

.Surah-details {
    display: flex;
    gap: 1.5rem;
    color: #64748b;
    font-size: 0.9rem;
}

.surah-duration {
    color: #3b82f6;
    font-weight: 500;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    background: rgba(59, 130, 246, 0.1);
}

/* Playing State Styles */
.playlist-item.playing {
    background: linear-gradient(to right, rgba(59, 130, 246, 0.05), transparent);
    border-left: 4px solid #3b82f6;
}

.playlist-item.playing .Surah-name {
    color: #3b82f6;
}

.playlist-item.playing .surah-duration {
    background: #3b82f6;
    color: white;
}

/* Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -468px 0;
    }
    100% {
        background-position: 468px 0;
    }
}

.loading {
    animation: shimmer 1s linear infinite;
    background: linear-gradient(to right, #f6f7f8 8%, #edeef1 18%, #f6f7f8 33%);
    background-size: 800px 104px;
}

/* Hover Effects */
.playlist-item:hover .Surah-name {
    color: #3b82f6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .playlist-container {
        margin: 1rem;
        padding: 0.8rem;
    }

    .playlist-item {
        padding: 1rem;
    }

    .Surah-details {
        flex-direction: column;
        gap: 0.3rem;
    }

    .name-id-group {
        gap: 0.8rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.playlist-item {
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
    animation-delay: calc(var(--index) * 0.1s);
}

/* Scroll Animation */
.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer Styles */
#main-footer {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #e2e8f0;
    padding: 3rem 0 1.5rem;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

#main-footer.visible {
    opacity: 1;
    transform: translateY(0);
}

#main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(59, 130, 246, 0.5),
        transparent
    );
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    position: relative;
}

.footer-description {
    flex: 1;
    max-width: 600px;
    opacity: 0;
    text-align: center;
    transform: translateY(20px);
    animation: slideInUp 0.8s ease forwards 0.3s;
}

.footer-description p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #94a3b8;
}

.footer-description p:first-child {
    font-size: 1.1rem;
    color: #e2e8f0;
}

.footer-social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 0.8s ease forwards 0.5s;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.social-link:hover::before {
    opacity: 1;
}

.social-icon {
    width: 24px;
    height: 24px;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.social-link:hover .social-icon {
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    animation: fadeIn 0.8s ease forwards 0.8s;
}

.footer-bottom p {
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating Animation for Social Icons */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.social-link {
    animation: float 3s ease-in-out infinite;
}

.social-link:nth-child(2) {
    animation-delay: 0.2s;
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .footer-social-links {
        justify-content: center;
    }

    .footer-description {
        max-width: 100%;
    }
}

/* Heart Animation */
@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.footer-bottom p {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-bottom p span {
    display: inline-block;
    animation: heartbeat 1.5s infinite;
    color: #ef4444;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 25px;
        border-radius: 20px;
    }

    h1 {
        font-size: 2rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .footer-social-links {
        justify-content: center;
    }

    .footer-description {
        max-width: 100%;
    }

    .footer-bottom {
        margin-top: 2rem;
        padding-top: 1rem;
    }

    .footer-bottom p {
        font-size: 0.9rem;
    }
} 