html {
  font-size: 14px;
}

body.dark-mode #logoImg {
    content: url('/uploads/logo-dark.png');
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}


@media (max-width: 1200px) {
    #topBar .container-fluid {
        gap: 0.25rem !important;
    }

    #topBarContent {
        gap: 0.25rem !important;
    }

    #darkModeToggle {
        margin-left: auto;
    }
    /* Ayrı yazılmalı */
    .top-bar {
        background-color: #f8f9fa;
        padding: 0.5rem 1rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 0.75rem;
    }



    .mode-toggle {
        cursor: pointer;
        font-size: 1.3rem;
        color: #333;
        transition: color 0.3s ease;
    }

        .mode-toggle:hover,
        .mode-toggle:focus {
            color: #007bff;
            outline: none;
        }
    /* Responsive adjustments */
}

@media (max-width: 575.98px) {
    .top-bar {
        flex-direction: column;
        align-items: flex-start;
    }

        .top-bar .top-bar-content {
            width: 100%;
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            justify-content: flex-start;
        }

    .mode-toggle {
        align-self: flex-end;
        margin-top: 0.5rem;
    }
}

@media (max-width: 991.98px) {
    #mainNavbar .btn-danger {
        margin-top: 0.5rem;
        width: 100%;
    }
}

footer {
    font-size: 0.9rem;
    color: #666;
}



@media (min-width: 992px) {
    body {
        padding-top: 165px;
        /* header + navbar toplam yüksekliği kadar */
    }

    #topWrapper {
        width: 100%;
        z-index: 1030; /* Bootstrap varsayılan navbar z-index değeri */
    }
    #topBarContent {
        flex-wrap: nowrap;
        gap: 1.5rem;
    }

        #topBarContent > * {
            flex-shrink: 1;
            min-width: 0;
        }

    #topBar > .container-fluid {
        flex-wrap: nowrap;
        gap: 1rem;
    }
}

.sidebar {
    width: 320px;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    background-color: #fff;
    z-index: 1050;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
}

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

.gsc-completion-container, .gsc-completion-title {
    display: none !important;
}
.navbar-nav .nav-link {
    color: #c62828 !important;
    font-weight: 600;
    opacity: 1 !important;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    padding-bottom: 6px;
    border-bottom: 2px solid transparent;
}

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        color: #e74c3c !important; 
        border-bottom: 2px solid #e74c3c;
    }

.social-icons a {
    text-decoration: none;
    margin: 0 10px;
    font-size: 32px;
    transition: transform 0.3s ease;
}

    .social-icons a:hover {
        transform: scale(1.2);
    }

.social-icons .fa-facebook {
    color: #3b5998;
}

.social-icons .fa-twitter {
    color: #1da1f2;
}

.social-icons .fa-instagram {
    color: #e1306c;
}

.social-icons .fa-youtube {
    color: #ff0000;
}

.nav-item a {
    position: relative;
    color: #000;
    transition: color 0.3s ease;
}

    .nav-item a::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        background-color: #d32f2f; 
        left: 0;
        bottom: 0;
        transition: width 0.3s ease;
    }

    .nav-item a:hover {
        color: #d32f2f;
    }

        .nav-item a:hover::after {
            width: 100%; 
        }

#topBar {
    background-color: #f5f5f5;
    padding: 1rem 0;
    border-bottom: 2px solid #ff9999 !important;
}

    #topBar .navbar-brand img {
        max-height: 70px;
        margin-top: -10px;
    }

/* Navbar */
#mainNavbar {
    background-color: #ff0000 !important;
    border-top: 2px solid #ff9999 !important;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}


/* Marka yazısı */
.navbar-brand.fw-bold {
    color: #d32f2f !important;
    font-size: 1.75rem;
    margin: 0;
    padding: 0;
}

/* Dark Mode Toggle, Search, Menü Butonları */
#searchBtn,
.sidebarToggle {
    border-color: #d32f2f;
    color: #d32f2f;
}

    #darkModeToggle:hover,
    #searchBtn:hover,
    .sidebarToggle:hover {
        background-color: #d32f2f;
        color: #fff;
    }

/* Sosyal medya ikonları */
.social-icons a {
    font-size: 24px;
    transition: transform 0.3s ease;
    color: #6c757d; /* Orta gri */
}

    .social-icons a:hover {
        transform: scale(1.2);
        color: #d32f2f;
    }

.col-md-4 a.dark-link {
    color: #333333 !important;
}

    .col-md-4 a.dark-link:hover {
        color: #000000 !important;
    }
.logo-hidden {
    padding: 0 !important;
    height: 0 !important;
    overflow: hidden;
    transition: height 0.3s ease, padding 0.3s ease;
}

.navbar-fixed-top {
    margin-top: 0 !important;
    transition: margin-top 0.3s ease;
}