/* Song Link Generator - Frontend Styles */

.slg-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.slg-wrapper {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.slg-header {
    text-align: center;
    margin-bottom: 40px;
}

.slg-title {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.slg-subtitle {
    font-size: 16px;
    color: #b0b0b0;
    margin: 0;
}

.slg-search-container {
    margin-bottom: 30px;
}

.slg-search-form {
    width: 100%;
}

.slg-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 5px;
    transition: all 0.3s ease;
}

.slg-input-wrapper:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.slg-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 15px 20px;
    font-size: 16px;
    color: #ffffff;
    font-family: inherit;
}

.slg-search-input::placeholder {
    color: #666;
}

.slg-search-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    cursor: pointer;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-right: 5px;
}

.slg-search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.slg-search-button:active {
    transform: translateY(0);
}

.slg-search-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.slg-loading {
    text-align: center;
    padding: 40px 20px;
    color: #b0b0b0;
}

.slg-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(102, 126, 234, 0.2);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.slg-error {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 12px;
    padding: 15px 20px;
    color: #ff6b6b;
    margin-bottom: 20px;
    text-align: center;
}

.slg-results {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slg-song-info {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.slg-artwork-container {
    flex-shrink: 0;
}

.slg-artwork {
    width: 150px;
    height: 150px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.slg-song-details {
    flex: 1;
}

.slg-song-title {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px 0;
}

.slg-song-artist {
    font-size: 18px;
    color: #b0b0b0;
    margin: 0 0 8px 0;
}

.slg-song-album {
    font-size: 14px;
    color: #888;
    margin: 0;
}

.slg-share-section {
    margin-top: 30px;
    margin-bottom: 30px;
    text-align: center;
}

.slg-share-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.slg-share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.slg-share-button:active {
    transform: translateY(0);
}

.slg-share-link-container {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.slg-share-link-input {
    flex: 1;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
    font-family: inherit;
}

.slg-share-link-input:focus {
    outline: none;
    border-color: #667eea;
}

.slg-copy-button {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 12px 20px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.slg-copy-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #667eea;
}

.slg-platforms {
    margin-top: 30px;
}

.slg-platforms-title {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 20px 0;
    text-align: center;
}

.slg-platforms-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.slg-platform-link-text {
    display: block;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    color: #ffffff;
    transition: all 0.2s ease;
    font-size: 16px;
    text-align: left;
}

.slg-platform-link-text:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.slg-platform-link-text:last-child {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    border-bottom: none;
}

.slg-platform-link-text:hover {
    background: rgba(255, 255, 255, 0.08);
    padding-left: 25px;
}

.slg-platform-link-text:active {
    background: rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .slg-container {
        margin: 20px auto;
        padding: 0 15px;
    }
    
    .slg-wrapper {
        padding: 25px 20px;
        border-radius: 16px;
    }
    
    .slg-title {
        font-size: 24px;
    }
    
    .slg-subtitle {
        font-size: 14px;
    }
    
    .slg-song-info {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 20px;
    }
    
    .slg-artwork {
        width: 120px;
        height: 120px;
    }
    
    .slg-song-title {
        font-size: 22px;
    }
    
    .slg-song-artist {
        font-size: 16px;
    }
    
    .slg-platform-link-text {
        padding: 12px 15px;
        font-size: 14px;
    }
}

