/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #454343 0%, #000000 100%);
    min-height: 100vh;
    color: #fff;
}

/* Navigation - gleich wie andere Seiten */
.navbar {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
}

.logo .peak {
    color: #ff5800;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
    margin-left: auto;
    margin-right: 2rem;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 500;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.2);
}

.user-settings {
    flex-shrink: 0;
}

/* Floating Elements */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    animation: float 6s ease-in-out infinite;
}

.cloud:nth-child(1) {
    width: 100px;
    height: 50px;
    top: 20%;
    left: 10%;
    animation-delay: -2s;
}

.cloud:nth-child(2) {
    width: 80px;
    height: 40px;
    top: 60%;
    right: 15%;
    animation-delay: -4s;
}

.cloud:nth-child(3) {
    width: 120px;
    height: 60px;
    top: 40%;
    left: 70%;
    animation-delay: -1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Login Required Notice - GENAU WIE DASHBOARD */
.login-required {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #454343 0%, #000000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    padding: 2rem;
}

.login-notice {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 3rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.6s ease-out;
}

.notice-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.login-notice h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ff6b6b, #ffa500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-notice p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.notice-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Main Content */
.main-content {
    margin-top: 80px;
    padding: 2rem;
}

/* Upload Hero */
.upload-hero {
    text-align: center;
    padding: 2rem 0 3rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.upload-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ff6b6b, #ffa500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.upload-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.8);
}

/* Upload Container */
.upload-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Upload Section */
.upload-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-radius: 25px;
    padding: 3rem;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.upload-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.upload-section:hover {
    border-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.05);
    transform: translateY(-2px);
}

.upload-section:hover::before {
    left: 100%;
}

.upload-area {
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.upload-area:hover {
    transform: scale(1.02);
}

.upload-icon {
    font-size: 4rem;
    color: #ff6b6b;
    margin-bottom: 1.5rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.upload-area h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.upload-area p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

/* Upload Stats */
.upload-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    color: #ff6b6b;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Upload Progress */
.upload-progress {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.progress-header h3 {
    color: #fff;
    font-size: 1.2rem;
}

.cancel-btn {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid #ef4444;
    color: #ef4444;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    background: #ef4444;
    color: white;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(45deg, #ff6b6b, #ffa500);
    border-radius: 4px;
    transition: width 0.3s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-info {
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Video Details Form */
.video-details {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.video-details h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #fff;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #fff;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff6b6b;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.char-count {
    text-align: right;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.25rem;
}

/* Thumbnail Section */
.thumbnail-section {
    margin: 2rem 0;
}

.thumbnail-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #fff;
}

.thumbnail-options {
    display: flex;
    gap: 1rem;
}

.thumbnail-option {
    flex: 1;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.thumbnail-preview {
    width: 120px;
    height: 68px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    margin: 0 auto 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.thumbnail-option.active .thumbnail-preview {
    border-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

.auto-thumbnail,
.custom-thumbnail {
    font-weight: bold;
    color: rgba(255, 255, 255, 0.7);
}

.thumbnail-option span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.btn-primary,
.btn-secondary {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(45deg, #ff6b6b, #ffa500);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Recent Uploads */
.recent-uploads {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.recent-uploads h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.empty-uploads {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.empty-uploads p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.empty-uploads span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Success Modal */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(10px);
}

.success-modal .modal-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 500px;
    width: 90%;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.success-modal h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #fff;
}

.success-modal p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .upload-hero h1 {
        font-size: 2.5rem;
    }

    .upload-section {
        padding: 2rem;
    }

    .upload-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .thumbnail-options {
        flex-direction: column;
    }

    .action-buttons {
        flex-direction: column;
    }

    .modal-actions {
        flex-direction: column;
    }

    .notice-actions {
        flex-direction: column;
    }

    .login-notice {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 1rem;
    }

    .upload-section {
        padding: 1.5rem;
    }

    .upload-icon {
        font-size: 3rem;
    }

    .upload-hero h1 {
        font-size: 2rem;
    }

    .login-notice h2 {
        font-size: 1.7rem;
    }
}

/* Drag and Drop States */
.upload-section.drag-over {
    border-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    transform: scale(1.02);
}

.upload-section.uploading {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

/* Animation für Elements */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}