/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #fff;
    overflow-x: hidden;
}

/* Glass Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hamburger-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.hamburger-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    font-size: 28px;
    animation: pulse 2s infinite;
}

.brand-name {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(45deg, #f093fb 0%, #f5576c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 0 20px;
}

.category-selector select {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
}

.category-selector select:hover {
    background: rgba(255, 255, 255, 0.2);
}

.category-selector select option {
    background: #2d1b4e;
    color: #fff;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.status-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 6px 14px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    font-size: 14px;
}

.time-display, .battery-display {
    display: flex;
    align-items: center;
    gap: 6px;
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logout-btn {
    background: rgba(255, 0, 0, 0.2);
    border: none;
    color: #fff;
    padding: 8px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(255, 0, 0, 0.4);
    transform: scale(1.05);
}

/* Sidebar */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100vh;
    background: rgba(20, 10, 40, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 24px;
    overflow-y: auto;
}

.sidebar.open {
    left: 0;
}

.sidebar-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-user-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sidebar-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.sidebar-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-user-details h3 {
    font-size: 18px;
    margin-bottom: 4px;
}

.user-role {
    font-size: 12px;
    padding: 2px 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    display: inline-block;
}

.premium-badge {
    font-size: 12px;
    margin-top: 4px;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.8);
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateX(4px);
}

.menu-item i {
    width: 20px;
    text-align: center;
}

.menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 8px 0;
}

/* Main Content */
.main-content {
    margin-top: 80px;
    padding: 24px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.news-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
    padding: 16px 0;
}

.news-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInUp 0.5s ease forwards;
}

.news-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.news-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.news-card-content {
    padding: 20px;
}

.news-category {
    display: inline-block;
    padding: 2px 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 11px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
    cursor: pointer;
    transition: color 0.3s ease;
}

.news-card-title:hover {
    color: #f093fb;
}

.news-card-description {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 12px;
    line-height: 1.6;
}

.news-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    opacity: 0.7;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.news-card-actions {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.action-btn-small {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    padding: 6px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
}

.action-btn-small:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.action-btn-small.liked {
    color: #ff6b6b;
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 60px 0;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

/* Notification */
.notification {
    position: fixed;
    top: 80px;
    right: 24px;
    padding: 16px 24px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateX(120%);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2000;
}

.notification.show {
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-content i {
    font-size: 20px;
    color: #4CAF50;
}

/* Auth Pages */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo {
    font-size: 48px;
    margin-bottom: 10px;
}

.auth-header h1 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 4px;
}

.auth-header p {
    opacity: 0.7;
}

.auth-video {
    width: 100%;
    max-width: 400px;
    margin: 0 auto 24px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.auth-video video {
    width: 100%;
    aspect-ratio: 16/9;
    display: block;
    background: #000;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 6px;
    opacity: 0.8;
}

.form-group input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #f093fb;
    background: rgba(255, 255, 255, 0.1);
}

.password-input {
    position: relative;
}

.password-input input {
    padding-right: 44px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 4px;
}

.toggle-password:hover {
    color: #fff;
}

.file-input {
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    cursor: pointer;
}

.file-preview {
    margin-top: 10px;
    text-align: center;
}

.file-preview img {
    max-width: 100px;
    max-height: 100px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.auth-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(45deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(245, 87, 108, 0.4);
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.auth-footer a {
    color: #f093fb;
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Profile Page */
.profile-container {
    padding: 100px 20px 40px;
    max-width: 800px;
    margin: 0 auto;
}

.profile-card {
    padding: 40px;
    border-radius: 24px;
}

.back-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    padding: 8px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 24px;
}

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

.profile-header {
    text-align: center;
    margin-bottom: 32px;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 16px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.premium-badge-large {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #4CAF50;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
}

.stat-item {
    text-align: center;
}

.stat-item i {
    font-size: 24px;
    display: block;
    margin-bottom: 4px;
}

.stat-item span {
    font-size: 20px;
    font-weight: 700;
    display: block;
}

.stat-item small {
    opacity: 0.7;
    font-size: 12px;
}

.profile-info {
    display: grid;
    gap: 16px;
    margin-bottom: 24px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.info-item label {
    opacity: 0.7;
}

.profile-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.action-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.02);
}

.action-btn.danger {
    background: rgba(255, 0, 0, 0.2);
}

.action-btn.danger:hover {
    background: rgba(255, 0, 0, 0.4);
}

/* Comment Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 3000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: rgba(20, 10, 40, 0.95);
    border-radius: 20px;
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideUp 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    padding: 0 8px;
    transition: transform 0.3s ease;
}

.modal-close:hover {
    transform: rotate(90deg);
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 16px;
    max-height: 400px;
    overflow-y: auto;
}

.comment-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: background 0.3s ease;
}

.comment-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.comment-reply {
    margin-left: 48px;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    padding-left: 16px;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-body {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.comment-username {
    font-weight: 600;
    font-size: 14px;
}

.admin-badge {
    background: #f093fb;
    color: #fff;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.comment-time {
    font-size: 11px;
    opacity: 0.6;
}

.comment-text {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 8px;
}

.comment-actions {
    display: flex;
    gap: 12px;
}

.comment-like-btn, .comment-reply-btn, .comment-delete-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.comment-like-btn:hover, .comment-reply-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.comment-like-btn.liked {
    color: #ff6b6b;
}

.comment-delete-btn:hover {
    color: #ff6b6b;
    background: rgba(255, 0, 0, 0.1);
}

.like-count {
    font-size: 12px;
}

.comment-replies {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comment-input-area {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.comment-input-area textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 60px;
    transition: border-color 0.3s ease;
}

.comment-input-area textarea:focus {
    outline: none;
    border-color: #f093fb;
}

.comment-submit {
    align-self: flex-end;
    padding: 8px 20px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(45deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.comment-submit:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(245, 87, 108, 0.4);
}

.no-comments {
    text-align: center;
    padding: 40px 20px;
    opacity: 0.6;
}

.no-comments i {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}

.loading-spinner-small {
    text-align: center;
    padding: 20px;
    font-size: 14px;
    opacity: 0.6;
}

.error-text {
    color: #ff6b6b;
    text-align: center;
    padding: 20px;
}

/* Animations */
@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Responsive */
@media (max-width: 768px) {
    .nav-center {
        display: none;
    }
    
    .status-bar {
        font-size: 12px;
        padding: 4px 10px;
    }
    
    .brand-name {
        font-size: 18px;
    }
    
    .news-container {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        width: 280px;
        left: -280px;
    }
    
    .auth-card {
        padding: 24px;
    }
    
    .profile-stats {
        gap: 20px;
    }
    
    .modal-content {
        max-height: 90vh;
    }
    
    .comment-reply {
        margin-left: 24px;
    }
}

@media (max-width: 480px) {
    .status-bar .time-display span,
    .status-bar .battery-display span {
        display: none;
    }
    
    .navbar {
        padding: 10px 16px;
    }
    
    .main-content {
        padding: 16px;
    }
}