:root {
    --bg-color: #0d0b14;
    --card-bg: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.1);
    --accent-color: #7c4dff;
    --accent-glow: rgba(124, 77, 255, 0.4);
    --text-primary: #ffffff;
    --text-secondary: #a0a0b8;
    --success: #00e676;
    --error: #ff5252;
    --glass-blur: blur(12px);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Background effects */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
}

.blob-1 {
    background: var(--accent-color);
    top: -100px;
    right: -100px;
}

.blob-2 {
    background: #448aff;
    bottom: -100px;
    left: -100px;
}

/* Navigation */
nav {
    padding: 24px 0;
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: var(--glass-blur);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
}

.logo span span {
    color: var(--accent-color);
}

.logo-icon {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-primary);
}

.auth-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-discord {
    background: #5865F2;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    text-decoration: none;
    transition: 0.2s;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

.btn-discord:hover {
    background: #4752c4;
    transform: translateY(-2px);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 12px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
}

.user-profile img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.user-profile span {
    font-size: 14px;
    font-weight: 500;
}

.logout-link {
    color: var(--text-secondary);
    display: flex;
    transition: 0.2s;
}

.logout-link:hover {
    color: var(--error);
}

/* Header */
header {
    text-align: center;
    padding: 60px 0 40px;
}

header h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 12px;
}

header p {
    color: var(--text-secondary);
    font-size: 18px;
}

/* Upload Section */
.upload-section {
    max-width: 600px;
    margin: 0 auto;
}

.drop-zone {
    background: var(--card-bg);
    border: 2px dashed var(--border-color);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: var(--glass-blur);
}

.drop-zone:hover, .drop-zone.drag-over {
    border-color: var(--accent-color);
    background: rgba(124, 77, 255, 0.05);
    box-shadow: 0 0 20px var(--accent-glow);
}

.upload-icon {
    width: 64px;
    height: 64px;
    color: var(--accent-color);
    margin-bottom: 24px;
}

.drop-zone.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-style: solid;
    pointer-events: none;
}

.drop-zone h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.drop-zone p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
}

.btn {
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

/* Result Card */
.result-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    margin-top: 30px;
    backdrop-filter: var(--glass-blur);
    animation: slideUp 0.4s ease-out;
}

.result-header {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--success);
    font-weight: 600;
    margin-bottom: 20px;
}

.link-container {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.link-container input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
}

.btn-copy {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.btn-copy:hover {
    background: rgba(255, 255, 255, 0.2);
}

.result-preview {
    width: 100%;
    max-height: 300px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.result-preview img {
    max-width: 100%;
    max-height: 300px;
    display: block;
}

/* Gallery */
.gallery-section {
    padding: 80px 0;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 24px;
    white-space: nowrap;
}

.section-header .line {
    height: 1px;
    background: var(--border-color);
    width: 100%;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
}

.gallery-item {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    backdrop-filter: var(--glass-blur);
    position: relative;
}

.gallery-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.gallery-image-container {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item-actions {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gallery-link-row {
    display: flex;
    gap: 6px;
}

.gallery-link-row input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 6px 10px;
    color: var(--text-secondary);
    font-size: 11px;
    font-family: inherit;
    outline: none;
}

.btn-mini-copy {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 6px;
    color: var(--text-primary);
    padding: 6px 8px;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-mini-copy:hover {
    background: var(--accent-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* Progress Bar */
.upload-progress {
    margin-top: 24px;
    background: var(--card-bg);
    padding: 20px;
    border-radius: 16px;
    backdrop-filter: var(--glass-blur);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
}

.progress-bar-container {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--accent-color);
    width: 0%;
    transition: width 0.2s;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

/* Utils */
.hidden {
    display: none !important;
}

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

@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, 20px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

/* Footer */
footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}
