/* Forum & Account Specific Styles */

/* Auth Section in Navigation */
.auth-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

.login-section {
    display: flex;
    gap: 0.5rem;
}

.auth-btn {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.auth-btn.secondary {
    background: transparent;
    border: 2px solid #ff6b6b;
    color: #ff6b6b;
}

.auth-btn.secondary:hover {
    background: #ff6b6b;
    color: white;
}

/* User Section */
.user-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #ff6b6b;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 107, 107, 0.1);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    color: #ff6b6b;
    font-weight: bold;
    font-size: 1.2rem;
}

.user-dropdown {
    position: relative;
    cursor: pointer;
}

.user-name {
    color: #ffffff;
    font-weight: 500;
    margin-left: 0.5rem;
}

.user-dropdown .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(15, 15, 25, 0.98);
    min-width: 180px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 107, 107, 0.2);
    backdrop-filter: blur(10px);
    margin-top: 8px;
    z-index: 1000;
}

.user-dropdown:hover .dropdown-content {
    display: block;
    animation: fadeInDown 0.3s ease;
}

.user-dropdown .dropdown-content a {
    color: #e0e0e0;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 107, 107, 0.1);
}

.user-dropdown .dropdown-content a:last-child {
    border-bottom: none;
}

.user-dropdown .dropdown-content a:hover {
    background: rgba(255, 107, 107, 0.1);
    color: #ffffff;
}

.user-dropdown .dropdown-content a.active {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
}

/* Forum Container */
.forum-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.forum-header {
    text-align: center;
    margin-bottom: 3rem;
}

.forum-header h1 {
    color: #ff6b6b;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.forum-header p {
    color: #cccccc;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.forum-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: #ff6b6b;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: #999;
    margin-top: 0.5rem;
}

/* Development Notice */
.development-notice {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1), rgba(255, 152, 0, 0.1));
    border: 2px solid rgba(255, 193, 7, 0.3);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.notice-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.notice-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.notice-text h3 {
    color: #ffc107;
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: bold;
}

.notice-text p {
    color: #e0e0e0;
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .notice-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .notice-icon {
        font-size: 2.5rem;
    }
    
    .notice-text h3 {
        font-size: 1.3rem;
    }
    
    .notice-text p {
        font-size: 0.9rem;
    }
}

/* Auth Required */
.auth-required {
    text-align: center;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 107, 107, 0.2);
    margin-bottom: 2rem;
}

.auth-card h2 {
    color: #ff6b6b;
    margin-bottom: 1rem;
}

.auth-card p {
    color: #cccccc;
    margin-bottom: 2rem;
}

.auth-card .auth-btn {
    margin: 0 0.5rem;
}

/* Forum Categories */
.forum-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.category-card {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(78, 205, 196, 0.1));
    border: 1px solid rgba(255, 107, 107, 0.2);
    border-radius: 15px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.2);
    border-color: #ff6b6b;
}

.category-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.category-info {
    flex: 1;
}

.category-info h3 {
    color: #ff6b6b;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.category-info p {
    color: #cccccc;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.category-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #999;
}

.category-latest {
    flex-shrink: 0;
    text-align: right;
    font-size: 0.9rem;
    color: #999;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    margin: 5% auto;
    padding: 2rem;
    border: none;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 1rem;
}

.close:hover {
    color: #ff6b6b;
}

/* Auth Tabs */
.auth-tabs {
    display: flex;
    margin-bottom: 2rem;
    border-bottom: 2px solid #333;
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    color: #cccccc;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tab-btn.active {
    color: #ff6b6b;
    border-bottom: 2px solid #ff6b6b;
}

/* Auth Forms */
.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form h2 {
    color: #ff6b6b;
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    color: #cccccc;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #333;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff6b6b;
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.2);
}

.auth-submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.auth-divider {
    text-align: center;
    color: #999;
    margin: 1rem 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #333;
    z-index: 1;
}

.auth-divider {
    background: #1a1a2e;
    padding: 0 1rem;
    z-index: 2;
    position: relative;
}

.google-btn {
    width: 100%;
    padding: 1rem;
    background: #4285f4;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.google-btn:hover {
    background: #3367d6;
    transform: translateY(-2px);
}

/* Forum Posts */
.forum-posts {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.forum-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #333;
}

.nav-btn {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nav-btn.primary {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
}

/* New Post Form */
.new-post-form {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 107, 107, 0.2);
}

.new-post-form h3 {
    color: #ff6b6b;
    margin-bottom: 1rem;
}

.post-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-primary {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #cccccc;
    border: 1px solid #555;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-2px);
}

/* Account Specific Styles */
.account-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

.account-header {
    text-align: center;
    margin-bottom: 3rem;
}

.account-header h1 {
    color: #ff6b6b;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.account-header p {
    color: #cccccc;
    font-size: 1.1rem;
}

.account-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.account-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(255, 107, 107, 0.2);
    backdrop-filter: blur(10px);
}

.account-section h2 {
    color: #ff6b6b;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

/* Profile Card */
.profile-card {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.profile-avatar-section {
    text-align: center;
}

.profile-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #ff6b6b;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 107, 107, 0.1);
    margin-bottom: 1rem;
}

.profile-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder-large {
    color: #ff6b6b;
    font-weight: bold;
    font-size: 3rem;
}

.avatar-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.profile-info {
    flex: 1;
}

.profile-field {
    margin-bottom: 1.5rem;
}

.profile-field label {
    display: block;
    color: #cccccc;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.field-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.field-group input {
    flex: 1;
}

.edit-btn {
    background: none;
    border: 1px solid #666;
    color: #cccccc;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.edit-btn:hover {
    background: rgba(255, 107, 107, 0.1);
    border-color: #ff6b6b;
    color: #ff6b6b;
}

/* Activity Card */
.activity-card {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.activity-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
}

.activity-list {
    max-height: 300px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.activity-text {
    color: #cccccc;
}

.activity-time {
    color: #999;
    font-size: 0.85rem;
}

/* Security Card */
.security-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.security-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.security-info h3 {
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.security-info p {
    color: #cccccc;
    font-size: 0.9rem;
}

.linked-providers {
    margin-top: 1rem;
}

.provider-item {
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #cccccc;
}

/* Preferences Card */
.preferences-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.preference-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.preference-info h3 {
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.preference-info p {
    color: #cccccc;
    font-size: 0.9rem;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #ff6b6b;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.theme-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #555;
    color: white;
    padding: 0.5rem;
    border-radius: 5px;
}

/* Danger Zone */
.danger-zone {
    border-color: #dc3545 !important;
}

.danger-zone h2 {
    color: #dc3545 !important;
}

.danger-card {
    background: rgba(220, 53, 69, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.danger-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.danger-info h3 {
    color: #dc3545;
    margin-bottom: 0.5rem;
}

.danger-info p {
    color: #cccccc;
    font-size: 0.9rem;
}

.btn-danger {
    background: #dc3545;
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-2px);
}

.danger-modal {
    border: 2px solid #dc3545;
}

.danger-modal h2 {
    color: #dc3545;
}

.danger-modal ul {
    color: #cccccc;
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.danger-modal li {
    margin-bottom: 0.5rem;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Loading States */
.loading {
    text-align: center;
    color: #999;
    padding: 2rem;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-section {
        display: none;
    }
    
    .forum-container,
    .account-container {
        padding: 1rem;
    }
    
    .forum-categories {
        grid-template-columns: 1fr;
    }
    
    .category-card {
        flex-direction: column;
        text-align: center;
    }
    
    .forum-nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .post-actions,
    .form-actions {
        flex-direction: column;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 1.5rem;
    }
    
    .profile-card {
        flex-direction: column;
        text-align: center;
    }
    
    .security-item,
    .preference-item,
    .danger-item {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .activity-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .forum-stats {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .activity-stats {
        grid-template-columns: 1fr;
    }
    
    .forum-stats {
        gap: 0.5rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
}

/* Post Items */
.posts-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.post-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1.5rem;
    border-left: 4px solid #ff6b6b;
    transition: all 0.3s ease;
    cursor: pointer;
}

.post-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.post-title {
    color: #ff6b6b;
    font-size: 1.2rem;
    font-weight: 600;
    flex: 1;
}

.post-meta {
    color: #999;
    font-size: 0.85rem;
    text-align: right;
    flex-shrink: 0;
}

.post-meta .author {
    color: #4ecdc4;
    font-weight: 500;
}

.post-content {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.post-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #999;
}

.no-posts {
    text-align: center;
    color: #999;
    padding: 3rem;
    font-style: italic;
}

/* Under Construction Page */
.under-construction {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 2rem;
}

.construction-content {
    text-align: center;
    max-width: 600px;
    background: rgba(15, 15, 25, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 107, 107, 0.3);
    border-radius: 20px;
    padding: 4rem 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.construction-icon {
    font-size: 5rem;
    margin-bottom: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.construction-title {
    font-size: 3rem;
    font-weight: bold;
    color: #ff6b6b;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
    letter-spacing: 2px;
}

.construction-text {
    font-size: 1.2rem;
    color: #e0e0e0;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.back-home-btn {
    display: inline-block;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.back-home-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
    color: white;
}

@media (max-width: 768px) {
    .construction-content {
        padding: 3rem 2rem;
    }
    
    .construction-icon {
        font-size: 4rem;
    }
    
    .construction-title {
        font-size: 2.2rem;
        letter-spacing: 1px;
    }
    
    .construction-text {
        font-size: 1.1rem;
    }
    
    .back-home-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}
