* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #ef4444;
    --primary-dark: #dc2626;
    --secondary: #f87171;
    --success: #10b981;
    --error: #ef4444;
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --bg-hover: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --border: #334155;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1a1a2e 100%);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Social Container */
.social-container {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.social-container a {
    display: inline-block;
}

.raincat-logo {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
    cursor: pointer;
}

.social-container a:hover .raincat-logo {
    transform: scale(1.05);
}

.social-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.social-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.social-icon {
    width: 20px;
    height: 20px;
}

.website-button {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.website-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.instagram-button {
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
    color: white;
    box-shadow: 0 4px 12px rgba(131, 58, 180, 0.3);
}

.instagram-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(131, 58, 180, 0.4);
}

/* Upload Section */
.upload-section {
    margin-bottom: 2rem;
}

/* Coming Soon Card */
.coming-soon-card {
    background: var(--bg-card);
    border: 2px solid var(--primary);
    border-radius: 1rem;
    padding: 3rem;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.coming-soon-card h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.coming-soon-card p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.features-list {
    margin-top: 2rem;
    text-align: left;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.features-list h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-align: center;
}

.features-list ul {
    list-style: none;
    padding: 0;
}

.features-list li {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: var(--bg-dark);
    border-radius: 0.5rem;
    border-left: 3px solid var(--primary);
}

.upload-area {
    background: var(--bg-card);
    border: 3px dashed var(--border);
    border-radius: 1rem;
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover,
.upload-area.drag-over {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

.upload-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.upload-content h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.upload-content p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.formats {
    font-size: 0.875rem;
    margin-top: 1rem;
}

/* Buttons */
.btn {
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    box-shadow: 0 4px 6px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--primary);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-icon {
    font-size: 1.2rem;
}

/* Progress Section */
.progress-section {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
}

.progress-container {
    display: flex;
    justify-content: space-around;
    margin-bottom: 2rem;
}

.progress-step {
    text-align: center;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.progress-step.active {
    opacity: 1;
}

.step-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.step-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.progress-bar {
    background: var(--bg-dark);
    height: 0.5rem;
    border-radius: 0.25rem;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    color: var(--text-secondary);
}

/* Results Section */
.results-section {
    animation: fadeIn 0.5s ease;
}

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

.results-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.result-card {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
}

.result-card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.audio-player {
    margin-bottom: 1.5rem;
}

.audio-player audio {
    width: 100%;
    border-radius: 0.5rem;
}

/* Hits Grid */
.hits-controls {
    margin-bottom: 1.5rem;
}

.hits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-dark);
    border-radius: 0.5rem;
}

.hit-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.hit-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(99, 102, 241, 0.2);
}

.hit-number {
    font-size: 2.5rem;
    margin-bottom: 0.25rem;
}

.hit-name {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.hit-info {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.hit-controls {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.hit-btn {
    padding: 0.5rem;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.hit-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.1);
}

/* Actions */
.actions {
    text-align: center;
    margin-top: 2rem;
}

/* Error Section */
.error-section {
    animation: fadeIn 0.5s ease;
}

.error-card {
    background: var(--bg-card);
    border: 2px solid var(--error);
    border-radius: 1rem;
    padding: 3rem;
    text-align: center;
}

.error-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.error-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.error-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 4rem;
    padding: 2rem 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
    border-top: 1px solid var(--border);
}

footer p {
    margin: 0.5rem 0;
}

footer a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--secondary);
}

footer .copyright {
    margin-top: 1rem;
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Scrollbar */
.hits-grid::-webkit-scrollbar {
    width: 8px;
}

.hits-grid::-webkit-scrollbar-track {
    background: var(--bg-dark);
    border-radius: 4px;
}

.hits-grid::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.hits-grid::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .container {
        padding: 1rem;
    }

    .upload-area {
        padding: 2rem 1rem;
    }

    .progress-container {
        flex-direction: column;
        gap: 1rem;
    }

    .hits-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

