/* Profile-spezifische Styles für CreatorNest */

.profile-container {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--soft-cream) 0%, var(--accent-color) 100%);
}

/* Profile Header */
.profile-header {
    background: var(--white);
    padding: 40px 0;
    box-shadow: var(--shadow-soft);
    margin-bottom: 30px;
}

.profile-banner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 30px;
}

.profile-info {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    flex: 1;
}

.profile-avatar {
    position: relative;
    flex-shrink: 0;
}

.profile-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    box-shadow: var(--shadow-medium);
}

.avatar-edit-btn {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 35px;
    height: 35px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
}

.avatar-edit-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.profile-details h1 {
    color: var(--warm-brown);
    font-size: 2.5rem;
    margin: 0 0 5px 0;
    font-weight: 700;
}

.username {
    color: var(--text-light);
    font-size: 1.1rem;
    margin: 0 0 15px 0;
    font-weight: 500;
}

.bio {
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 20px 0;
    max-width: 500px;
}

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.meta-item:hover {
    color: var(--primary-color);
}

.meta-item i {
    font-size: 0.85rem;
}

.profile-actions {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}

/* Profile Stats */
.profile-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Profile Content */
.profile-content {
    padding: 40px 0;
}

.content-tabs {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 40px;
    background: var(--white);
    padding: 10px;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 15px 25px;
    border-radius: var(--border-radius-medium);
    color: var(--text-light);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.tab-btn:hover {
    background: var(--light-gray);
    color: var(--text-dark);
}

.tab-btn.active {
    background: var(--primary-color);
    color: var(--white);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Streams Tab */
.streams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.stream-card {
    background: var(--white);
    border-radius: var(--border-radius-large);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.stream-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.stream-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.stream-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.stream-card:hover .stream-thumbnail img {
    transform: scale(1.05);
}

.live-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--cozy-orange);
    color: var(--white);
    padding: 5px 10px;
    border-radius: var(--border-radius-small);
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.live-badge i {
    animation: pulse 2s infinite;
}

.viewer-count {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 5px 10px;
    border-radius: var(--border-radius-small);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.stream-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stream-card:hover .stream-overlay {
    opacity: 1;
}

.play-btn {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.play-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.stream-info {
    padding: 20px;
}

.stream-title {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
}

.stream-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.stream-title a:hover {
    color: var(--primary-color);
}

.stream-category {
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 4px 8px;
    border-radius: var(--border-radius-small);
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 10px;
}

.stream-stats {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-light);
    font-size: 0.85rem;
}

.stream-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* About Tab */
.about-content {
    background: var(--white);
    border-radius: var(--border-radius-large);
    padding: 40px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
}

.about-section {
    margin-bottom: 40px;
}

.about-section:last-child {
    margin-bottom: 0;
}

.about-section h3 {
    color: var(--warm-brown);
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-section p {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 15px;
}

.text-muted {
    color: var(--text-light) !important;
    font-style: italic;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background: var(--light-gray);
    padding: 25px;
    border-radius: var(--border-radius-medium);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: var(--accent-color);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.stat-content h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--warm-brown);
    margin: 0 0 5px 0;
}

.stat-content p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* Settings Tab */
.settings-content {
    background: var(--white);
    border-radius: var(--border-radius-large);
    padding: 40px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
}

.settings-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.settings-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.settings-section h3 {
    color: var(--warm-brown);
    font-size: 1.5rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-form {
    max-width: 500px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-small);
    font-size: 1rem;
    color: var(--text-dark);
    background: var(--white);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(212, 165, 116, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--light-gray);
    border-radius: var(--border-radius-medium);
    margin-bottom: 15px;
}

.setting-info {
    flex: 1;
}

.setting-info h4 {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin: 0 0 5px 0;
    font-weight: 600;
}

.setting-info p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: var(--white);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
}

.empty-state i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.empty-state h3 {
    color: var(--warm-brown);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: var(--border-radius-small);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: #D4EDDA;
    color: #155724;
    border: 1px solid #C3E6CB;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: var(--border-radius-large);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-large);
}

.modal-header {
    padding: 25px 30px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: var(--warm-brown);
    font-size: 1.3rem;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--light-gray);
    color: var(--text-dark);
}

.modal-body {
    padding: 25px 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .profile-banner {
        flex-direction: column;
        gap: 20px;
    }
    
    .profile-actions {
        align-self: stretch;
        justify-content: center;
    }
    
    .profile-stats {
        gap: 30px;
    }
    
    .streams-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .profile-container {
        padding-top: 70px;
    }
    
    .profile-header {
        padding: 30px 0;
    }
    
    .profile-info {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .profile-details h1 {
        font-size: 2rem;
    }
    
    .profile-meta {
        justify-content: center;
    }
    
    .profile-stats {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .content-tabs {
        flex-direction: column;
        gap: 5px;
    }
    
    .tab-btn {
        justify-content: center;
    }
    
    .streams-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content,
    .settings-content {
        padding: 25px;
    }
    
    .setting-item {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .profile-avatar img {
        width: 100px;
        height: 100px;
    }
    
    .profile-details h1 {
        font-size: 1.8rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .profile-actions {
        flex-direction: column;
    }
    
    .about-content,
    .settings-content {
        padding: 20px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header,
    .modal-body {
        padding: 20px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stream-card,
.stat-card {
    animation: fadeInUp 0.6s ease-out;
}

.stream-card:nth-child(2) { animation-delay: 0.1s; }
.stream-card:nth-child(3) { animation-delay: 0.2s; }
.stream-card:nth-child(4) { animation-delay: 0.3s; }

.stat-card:nth-child(2) { animation-delay: 0.1s; }
.stat-card:nth-child(3) { animation-delay: 0.2s; }
.stat-card:nth-child(4) { animation-delay: 0.3s; }

/* Avatar Upload Styles */
.avatar-upload-container {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    padding: var(--space-4);
    background: var(--background-elevated);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-primary);
}

.current-avatar {
    flex-shrink: 0;
}

.current-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-400);
    box-shadow: var(--shadow-md);
}

.avatar-upload {
    flex: 1;
}

.avatar-upload input[type="file"] {
    display: none;
}

.upload-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    background: var(--gradient-primary);
    color: var(--text-primary);
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-weight: 600;
    font-size: var(--text-sm);
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-orange);
}

.avatar-upload small {
    display: block;
    margin-top: var(--space-2);
    color: var(--text-muted);
    font-size: var(--text-xs);
}

/* Profile Avatar Edit Button */
.profile-avatar {
    position: relative;
}

.avatar-edit-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    color: var(--text-primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-sm);
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    border: 3px solid var(--background-primary);
}

.avatar-edit-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--glow-orange);
}

/* Improved Modal Styles */
.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: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--gradient-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: var(--transition);
    box-shadow: var(--shadow-2xl);
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--border-primary);
}

.modal-header h2 {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: var(--space-2);
    border-radius: var(--radius);
    transition: var(--transition);
    font-size: var(--text-lg);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close:hover {
    color: var(--text-primary);
    background: var(--background-elevated);
}

.modal-actions {
    display: flex;
    gap: var(--space-4);
    justify-content: flex-end;
    margin-top: var(--space-6);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-primary);
}

/* Form Improvements */
.edit-form .form-group {
    margin-bottom: var(--space-6);
}

.edit-form label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-3);
    font-size: var(--text-sm);
}

.edit-form input,
.edit-form textarea {
    width: 100%;
    padding: var(--space-4);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    color: var(--text-primary);
    background: var(--background-tertiary);
    transition: var(--transition);
    font-family: inherit;
}

.edit-form input:focus,
.edit-form textarea:focus {
    outline: none;
    border-color: var(--primary-400);
    box-shadow: var(--glow-orange);
    background: var(--background-elevated);
}

.edit-form input::placeholder,
.edit-form textarea::placeholder {
    color: var(--text-muted);
}

.edit-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .avatar-upload-container {
        flex-direction: column;
        text-align: center;
        gap: var(--space-4);
    }
    
    .modal-content {
        width: 95%;
        padding: var(--space-6);
        margin: var(--space-4);
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-actions .btn {
        width: 100%;
    }
} 