/* 
    OFO Custom Design System
    Consolidated Styles for Global consistency
*/

:root {
    --ofo-theme-blue: #2b70fa;
    --ofo-glass-bg: rgba(255, 255, 255, 0.1);
    --ofo-glass-border: rgba(255, 255, 255, 0.2);
}

/* 1. Global Content Typography (Editor content) */
.text-content,
.content-area {
    font-size: 17px;
    line-height: 1.8;
    color: #444;
}

.text-content p,
.content-area p {
    margin-bottom: 20px;
}

.text-content h3,
.text-content h4,
.content-area h3,
.content-area h4 {
    color: #111;
    margin-top: 35px;
    margin-bottom: 20px;
    font-weight: 700;
}

/* 2. Stylized Lists (li with arrow) */
.text-content ul,
.content-area ul {
    margin-bottom: 25px;
    list-style: none;
    padding-left: 10px;
}

.text-content ul li,
.content-area ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    color: #555;
}

.text-content ul li:before,
.content-area ul li:before {
    content: "\f105";
    /* fa-angle-right */
    font-family: "Font Awesome 6 Pro";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--theme-color1, var(--ofo-theme-blue));
    font-size: 16px;
}

/* 3. Global Gallery Item Styles */
.gallery-item-container {
    background: #fbfbfb;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.gallery-item-container:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.hover-zoom {
    transition: transform 0.5s ease;
}

.hover-zoom:hover {
    transform: scale(1.05);
}

/* 4. Glassmorphism - Homepage Contact Form */
.glass-container {
    background: var(--ofo-glass-bg) !important;
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid var(--ofo-glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

#home_contact_form .form-control {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
}

#home_contact_form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
}

#home_contact_form .security-box {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

/* 5. Utility Styles */
.border-bottom-dashed {
    border-bottom: 1px dashed #eee;
}

.hover-underline:hover {
    text-decoration: underline !important;
}

.shadow-xs {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 6. Animations */
@keyframes pulse-whatsapp {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.pulse-animation {
    animation: pulse-whatsapp 2s infinite ease-in-out;
}

/* Sidebar Fixes */
.sidebar-widget,
.project-info-widget {
    border-radius: 15px !important;
}

.sidebar__category-list li.active a {
    color: var(--theme-color1);
    font-weight: 700;
}

/* Mobil Menü Düzenlemeleri */
@media only screen and (max-width: 991px) {

    /* Menü açıldığında header'ın alt kısımlarını gizle */
    body.mobile-menu-visible .header-lower,
    body.mobile-menu-visible .sticky-header {
        display: none !important;
    }

    /* Menü kutusunu en tepeden başlat ve en üstte göster */
    .mobile-menu .menu-box {
        top: 0 !important;
        height: 100% !important;
        z-index: 1000000 !important;
    }

    /* Menü açıkken arka planı koyulaştır */
    .mobile-menu .menu-backdrop {
        background: rgba(0, 0, 0, 0.8) !important;
        z-index: 999999 !important;
    }

    /* Mobil Menü Sosyal Medya */
    .mobile-menu .social-icon-two {
        display: flex !important;
        flex-wrap: wrap !important;
        padding: 0 30px !important;
        margin-bottom: 30px !important;
    }

    .mobile-menu .social-icon-two li {
        margin-right: 12px !important;
        margin-bottom: 12px !important;
    }

    .mobile-menu .social-icon-two li a {
        background: var(--theme-color1) !important;
        color: #fff !important;
        width: 44px !important;
        height: 44px !important;
        line-height: 44px !important;
        font-size: 16px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
    }
}

/* Footer Links Styling & Hover Effect */
.footer-widget.links-widget .user-links {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.footer-widget.links-widget .user-links li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 0px;
    transition: all 0.3s ease;
}

.footer-widget.links-widget .user-links li:before {
    content: "\f105";
    /* fa-angle-right */
    font-family: "Font Awesome 6 Pro";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 10px;
    color: var(--theme-color1, #2b70fa);
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-widget.links-widget .user-links li a {
    display: inline-block;
    transition: all 0.3s ease;
}

.footer-widget.links-widget .user-links li:hover {
    transform: translateX(5px);
}

.footer-widget.links-widget .user-links li:hover a {
    color: var(--theme-color1, #2b70fa);
}

/* Similar Projects Card */
.similar-project-card {
    background: #fdfdfd;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 12px;
    transition: all 0.3s ease;
}
.similar-project-card:hover {
    background: #ffffff;
    border-color: var(--theme-color1, #2b70fa);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transform: translateY(-2px);
}
.similar-project-card:hover .group-hover-primary {
    color: var(--theme-color1, #2b70fa) !important;
}

/* --- Search Page Results --- */
.search-result-item {
    transition: all 0.3s ease;
    background: #fff;
}
.search-result-item:hover {
    background: #f8f9fa;
    border-color: var(--theme-color1) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.search-result-item h6 a {
    color: var(--theme-color3, #333);
    text-decoration: none;
}
.search-result-item:hover h6 a {
    color: var(--theme-color1);
}

/* --- Blog Page --- */
.hover-primary:hover {
    color: var(--primary-color, #727cf5) !important;
}
.news-block .inner-box {
    transition: all 0.3s ease;
}
.news-block:hover .inner-box {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

/* --- Blog Details Page --- */
.border-bottom-dashed {
    border-bottom: 1px dashed #eee;
}
.recent-posts__item:last-child {
    border-bottom: none;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
.blog-details__text img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.hover-zoom {
    transition: transform 0.5s ease;
}
.hover-zoom:hover {
    transform: scale(1.1);
}
.group:hover .group-hover-primary {
    color: var(--theme-color1, #2b70fa) !important;
}

/* --- Projects Page --- */
.project-block .inner-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}
.project-block .inner-box:hover .image img {
    transform: scale(1.1);
}
.project-block .inner-box:hover .title-bar {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
    background-color: var(--theme-color1) !important;
}

/* --- Cookie Bar --- */
.ofo-cookie-bar {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  width: 90%;
  max-width: 800px;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 20px 30px;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
}
.ofo-cookie-bar.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.cookie-content {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #fff;
}
.cookie-icon {
  font-size: 24px;
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}
.cookie-text {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
}
.cookie-text b {
  color: #fff;
  display: block;
  margin-bottom: 2px;
}
.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.btn-cookie-accept {
  background: #3b82f6;
  color: #fff;
  border: none;
  padding: 10px 25px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
  box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3);
}
.btn-cookie-accept:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 15px 20px -5px rgba(59, 130, 246, 0.4);
}
@media (max-width: 768px) {
  .ofo-cookie-bar {
    flex-direction: column;
    text-align: center;
    padding: 20px;
    bottom: 20px;
  }
  .cookie-content {
    flex-direction: column;
  }
  .btn-cookie-accept {
    width: 100%;
  }
}