/* style.css (Updated for smaller thumbnails and primary download buttons) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #007bff; /* Vibrant Blue */
    --secondary-color: #f8f9fa; /* Light Background */
    --text-color-dark: #212529;
    --text-color-light: #495057;
    --card-bg: #ffffff;
    --border-color: #dee2e6;
    --hover-shadow: 0 8px 15px rgba(0, 123, 255, 0.2);
    --animation-duration: 0.3s;
}

body {
    background-color: var(--secondary-color);
    color: var(--text-color-dark);
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
}

.main-content {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 30px;
}

.container {
    width: 90%;
    max-width: 850px;
    padding: 30px 20px;
    text-align: center;
}

/* --- Utility Buttons Styles (Top) --- */
.utility-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-bottom: 20px;
}

.utility-btn {
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.8em;
    transition: transform var(--animation-duration), box-shadow var(--animation-duration);
    display: inline-flex;
    align-items: center;
}

.utility-btn i {
    margin-right: 6px;
}

.telegram-btn {
    background-color: #0088cc;
    color: white;
}

.telegram-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 136, 204, 0.4);
    background-color: #0077b3;
}

.contact-btn {
    background-color: var(--border-color);
    color: var(--text-color-dark);
}

.contact-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    background-color: #e9ecef;
}

/* Header Styles */
.header h1 {
    color: var(--primary-color);
    font-size: 3em;
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
    transition: var(--animation-duration);
}
.header p {
    margin-bottom: 30px;
    color: var(--text-color-light);
    font-weight: 400;
}

/* Search Box Styles */
.search-box {
    display: flex;
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: box-shadow var(--animation-duration);
}
.search-box:focus-within {
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.4);
}
#searchInput {
    flex-grow: 1;
    padding: 15px 25px;
    border: none;
    background-color: var(--card-bg);
    color: var(--text-color-dark);
    font-size: 1.05em;
    outline: none;
}
#searchButton {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 30px;
    cursor: pointer;
    font-size: 1.05em;
    font-weight: 600;
    transition: background-color var(--animation-duration), transform var(--animation-duration);
}
#searchButton:hover {
    background-color: #0056b3;
    transform: scale(1.02);
}

/* Status Message Styles */
.message-text {
    padding: 10px;
    font-weight: 600;
    min-height: 20px;
    border-radius: 5px;
    margin-bottom: 15px;
}
.loading {
    color: var(--primary-color);
}
.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Results Card Styles */
.results-container h2 {
    text-align: left;
    color: var(--text-color-dark);
    font-size: 1.5em;
    margin-bottom: 15px;
    font-weight: 600;
}
.song-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    text-align: left;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: box-shadow var(--animation-duration), transform var(--animation-duration);
    animation: fadeIn 0.5s ease-out;
}
.song-card:hover:not(.initial-card) {
    box-shadow: var(--hover-shadow);
    transform: translateY(-3px);
}
.initial-card {
    cursor: default;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- REDUCED THUMBNAIL SIZE --- */
.song-thumbnail {
    width: 60px; /* Reduced from 70px */
    height: 60px; /* Reduced from 70px */
    object-fit: cover;
    border-radius: 6px;
    margin-right: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
/* ------------------------------- */

.song-info {
    flex-grow: 1;
}

.song-info h3 {
    margin: 0 0 4px 0;
    font-size: 1.1em;
    color: var(--text-color-dark);
    font-weight: 600;
}

.song-info p {
    margin: 0;
    color: var(--text-color-light);
    font-size: 0.85em;
}

/* --- PRIMARY BLUE DOWNLOAD BUTTON --- */
.download-btn {
    background-color: var(--primary-color); /* Ensured it's the primary blue */
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9em;
    transition: background-color var(--animation-duration), box-shadow var(--animation-duration);
}

.download-btn:hover:not(:disabled) {
    background-color: #0056b3;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5); 
}
/* ------------------------------------- */

.download-btn:disabled {
    background-color: #ccc;
    color: #888;
    cursor: not-allowed;
    box-shadow: none;
}

.song-card.hidden {
    display: none;
    opacity: 0;
}

/* Show More Button Container */
.show-more-container {
    margin-top: 10px;
    margin-bottom: 20px;
    text-align: center;
}

.show-more-btn {
    background-color: var(--text-color-light);
    color: white;
    padding: 10px 25px;
    font-size: 0.9em;
    cursor: pointer;
}
.show-more-btn:hover {
    background-color: var(--text-color-dark);
}

/* Footer Styles */
.footer {
    padding: 20px;
    text-align: center;
    font-size: 0.85em;
    color: var(--text-color-light);
    border-top: 1px solid var(--border-color);
    margin-top: 30px;
}
.footer span {
    font-weight: 600;
    color: var(--primary-color);
}
