:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --background-color: #f8f9fa;
    --text-color: #2c3e50;
    --border-radius: 8px;
    --box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

body {
    background-color: #f8f9fa;
    color: var(--text-color);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Ana içerik alanı için flex stilleri */
main.flex-grow-1,
.container {
    flex-grow: 1;
}

/* Sayfalarda main tag'ı yoksa body'nin child container'ları için */
body.d-flex > .container {
    flex-grow: 1;
}

/* Footer Styles */
.footer {
    background-color: #343a40 !important;
    color: #fff;
    width: 100%;
    height: auto;
    min-height: 200px;
    margin-top: auto; /* Footer'ı aşağıya it */
}

.footer a {
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #fff !important;
    transform: translateY(-1px);
}

.footer .social-link {
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer .social-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px) scale(1.1);
}

/* Navbar Styles */
.navbar {
    background-color: #343a40;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: bold;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem !important;
    border-radius: var(--border-radius);
    margin: 0 0.2rem;
}

.nav-link:hover {
    color: #fff !important;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

/* Card Styles */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.card-header {
    background: linear-gradient(135deg, #343a40, #212529);
    color: white;
    border-bottom: none;
    padding: 1rem 1.5rem;
}

.card-header h4 {
    font-weight: 600;
    margin: 0;
}

.card-body {
    padding: 1.5rem;
}

/* Form Styles */
.form-control {
    border-radius: var(--border-radius);
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), #2980b9);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2980b9, #2472a4);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

/* Alert Styles */
.alert {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--box-shadow);
}

.alert-success {
    background-color: #2ecc71;
    color: white;
}

.alert-danger {
    background-color: var(--accent-color);
    color: white;
}

/* Footer Styles */
footer {
    margin-top: auto;
    padding: 2rem 0;
    background-color: #343a40;
    color: #fff;
}

footer h5 {
    font-weight: 600;
    margin-bottom: 1.5rem;
}

footer .text-white-50 {
    transition: color 0.3s ease;
}

footer a.text-white-50:hover {
    color: #fff !important;
    text-decoration: none;
}

footer .social-links a {
    font-size: 1.25rem;
    margin-right: 1rem;
    transition: all 0.3s ease;
}

footer .social-links a:hover {
    transform: translateY(-3px);
}

footer hr {
    opacity: 0.1;
}

/* Profile Image */
.profile-img {
    object-fit: cover;
    border: 2px solid #fff;
}

/* Custom Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.container {
    animation: fadeIn 0.5s ease-out;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .navbar-nav {
        margin-top: 1rem;
    }
    
    .nav-link {
        margin: 0.2rem 0;
    }
    
    .card {
        margin: 1rem 0;
    }
    
    .stats-card {
        margin-bottom: 1rem;
    }
    
    /* Footer'ı küçük ekranlarda gizle */
    .footer,
    footer {
        display: none !important;
    }
    
    /* Mobil için body padding'ini düzenle */
    body {
        padding-bottom: 70px !important; /* Sadece mobile navigation için padding bırak */
    }
}

/* Statistics Card */
.stats-card {
    text-align: center;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
}

.stats-card h4 {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.stats-card .number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0d6efd;
}

/* Topic List */
.topic-list {
    list-style: none;
    padding: 0;
}

.topic-item {
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.topic-item:last-child {
    border-bottom: none;
}

.topic-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.topic-meta {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Topic and Comment Styles */
.card-body.border-bottom {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.card-body.border-top {
    border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.topic-content {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 1rem;
}

.comment-content {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #444;
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 0.5rem 0;
}

.comment-actions {
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.card-body:hover .comment-actions {
    opacity: 1;
}

.comment-actions .btn-link {
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.comment-actions .btn-link:hover {
    color: #0d6efd !important;
    transform: translateY(-1px);
}

.comment-actions .btn-link .fas,
.comment-actions .btn-link.active {
    color: #0d6efd !important;
}

.likes-count {
    font-size: 0.8rem;
    color: #6c757d;
    margin-left: 0.25rem;
}

/* Reply form styles */
.reply-form {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 0.5rem;
}

.reply-form .form-control {
    border: 1px solid #dee2e6;
    transition: all 0.2s ease;
}

.reply-form .form-control:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.1);
}

.reply-form .btn-light {
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.reply-form .btn-light:hover {
    background-color: #dee2e6;
}

/* Badge styling */
.badge.bg-primary {
    font-weight: 500;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    background: linear-gradient(135deg, #0d6efd, #0b5ed7) !important;
}

/* Avatar images */
.rounded-circle {
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Textarea focus state */
.form-control:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Alert in comment form */
.alert-info {
    background-color: #cfe2ff;
    border: none;
    color: #084298;
}

.alert-info a {
    color: #084298;
    font-weight: 600;
    text-decoration: none;
}

.alert-info a:hover {
    text-decoration: underline;
}

/* Card spacing */
.card-body {
    padding: 1.5rem;
}

.card-body.py-4 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

/* Progress bar width classes */
.progress-width-0 { width: 0%; }
.progress-width-10 { width: 10%; }
.progress-width-20 { width: 20%; }
.progress-width-30 { width: 30%; }
.progress-width-40 { width: 40%; }
.progress-width-50 { width: 50%; }
.progress-width-60 { width: 60%; }
.progress-width-70 { width: 70%; }
.progress-width-80 { width: 80%; }
.progress-width-90 { width: 90%; }
.progress-width-100 { width: 100%; }

/* User Badges */
.member-badge-sm,
.admin-badge-sm,
.topic-owner-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

.member-badge-sm {
    background-color: #e9ecef;
    color: #6c757d;
}

.admin-badge-sm {
    background-color: #f8d7da;
    color: #842029;
}

.topic-owner-badge {
    background-color: #e2e3e5;
    color: #41464b;
}

/* ===== PWA & MOBILE STYLES ===== */

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #dee2e6;
    padding: 8px 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1040;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.1);
}

.mobile-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #6c757d;
    padding: 8px 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
    min-width: 60px;
    font-size: 0.75rem;
}

.mobile-bottom-nav .nav-item i {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.mobile-bottom-nav .nav-item.create-btn {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    transform: translateY(-8px);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.mobile-bottom-nav .nav-item.create-btn:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.mobile-bottom-nav .nav-item.active {
    color: #4f46e5;
    background-color: rgba(79, 70, 229, 0.1);
}

.mobile-bottom-nav .nav-item:hover {
    color: #4f46e5;
    background-color: rgba(79, 70, 229, 0.05);
    transform: translateY(-2px);
}

.mobile-bottom-nav .profile-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-bottom: 4px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.mobile-bottom-nav .nav-item.active .profile-avatar {
    border-color: #4f46e5;
}

/* Mobile-specific adjustments */
@media (max-width: 991.98px) {
    body {
        padding-bottom: 70px; /* Space for bottom nav */
    }
    
    /* Hide hamburger menu on mobile - we have bottom nav */
    .navbar-toggler {
        display: none !important;
    }
    
    /* Hide top navbar collapse on mobile */
    .navbar-collapse {
        display: none !important;
    }
    
    /* Keep only brand visible on mobile */
    .navbar .container {
        justify-content: center;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    /* Make cards more mobile-friendly */
    .card {
        border-radius: 12px;
        margin-bottom: 15px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    /* Touch-friendly buttons */
    .btn {
        min-height: 44px;
        border-radius: 8px;
        font-weight: 500;
    }
    
    .btn-sm {
        min-height: 36px;
        padding: 8px 16px;
    }
    
    /* Larger tap targets */
    .nav-link,
    .dropdown-item,
    .pagination .page-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    /* Better spacing for mobile */
    .mt-3 {
        margin-top: 1.5rem !important;
    }
    
    .mb-3 {
        margin-bottom: 1.5rem !important;
    }
}

/* Removed PWA styles - keeping mobile navigation */

/* Touch feedback */
.mobile-touch-feedback {
    position: relative;
    overflow: hidden;
}

.mobile-touch-feedback::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(79, 70, 229, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
    pointer-events: none;
}

.mobile-touch-feedback:active::after {
    width: 100%;
    height: 100%;
}

/* Swipe indicators */
.swipe-indicator {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: rgba(79, 70, 229, 0.6);
    animation: swipeHint 3s ease-in-out infinite;
    pointer-events: none;
}

.swipe-indicator.left {
    left: 10px;
}

.swipe-indicator.right {
    right: 10px;
}

@keyframes swipeHint {
    0%, 100% {
        opacity: 0;
        transform: translateY(-50%) translateX(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-50%) translateX(10px);
    }
}

/* Loading states for mobile */
.mobile-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.mobile-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #4f46e5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Mobile form enhancements */
@media (max-width: 767.98px) {
    .form-control,
    .form-select {
        font-size: 16px; /* Prevents zoom on iOS */
        border-radius: 8px;
        padding: 12px;
    }
    
    .input-group .form-control {
        border-radius: 8px 0 0 8px;
    }
    
    .input-group .btn {
        border-radius: 0 8px 8px 0;
    }
}

/* Dark mode disabled - keeping light theme only */
/* Dark mode media query removed to ensure consistent light theme across all devices */

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .mobile-bottom-nav .nav-item {
        border: 2px solid transparent;
    }
    
    .mobile-bottom-nav .nav-item.active {
        border-color: currentColor;
    }
}

/* Large font support */
@media (prefers-font-size: large) {
    body {
        font-size: 1.125rem;
    }
    
    .mobile-bottom-nav .nav-item {
        font-size: 0.875rem;
    }
} 