/*
* demo.css
* File include item demo only specific css only
******************************************************************************/

/*
* SweetAlert z-index fix - ensure alerts appear above Bootstrap modals
******************************************************************************/
.swal2-container {
    z-index: 2000 !important;
}

/*
* Rekabet Brand Colors Override
******************************************************************************/
:root,
[data-theme="theme-default"] {
  /* Primary - Red */
  --bs-primary: #E93434 !important;
  --bs-primary-rgb: 233, 52, 52 !important;
  --bs-primary-text-emphasis: #5c1515 !important;
  --bs-primary-bg-subtle: #fbd6d6 !important;
  --bs-primary-border-subtle: #f6acac !important;

  /* Info - Blue */
  --bs-info: #006AB5 !important;
  --bs-info-rgb: 0, 106, 181 !important;
  --bs-info-text-emphasis: #003d68 !important;
  --bs-info-bg-subtle: #cce1f0 !important;
  --bs-info-border-subtle: #99c3e1 !important;

  /* Warning - Yellow/Orange */
  --bs-warning: #FAA022 !important;
  --bs-warning-rgb: 250, 160, 34 !important;
  --bs-warning-text-emphasis: #64400e !important;
  --bs-warning-bg-subtle: #feecce !important;
  --bs-warning-border-subtle: #fdd99e !important;

  /* Danger - keep same as primary for consistency */
  --bs-danger: #E93434 !important;
  --bs-danger-rgb: 233, 52, 52 !important;
  --bs-danger-text-emphasis: #5c1515 !important;
  --bs-danger-bg-subtle: #fbd6d6 !important;
  --bs-danger-border-subtle: #f6acac !important;
}

/* Button and component color overrides */
.bg-primary { background-color: #E93434 !important; }
.btn-primary { background-color: #E93434 !important; border-color: #E93434 !important; }
.btn-primary:hover, .btn-primary:focus { background-color: #d42c2c !important; border-color: #d42c2c !important; }
.btn-outline-primary { color: #E93434 !important; border-color: #E93434 !important; }
.btn-outline-primary:hover { background-color: #E93434 !important; border-color: #E93434 !important; color: #fff !important; }
.text-primary { color: #E93434 !important; }
.border-primary { border-color: #E93434 !important; }

.bg-info { background-color: #006AB5 !important; }
.btn-info { background-color: #006AB5 !important; border-color: #006AB5 !important; }
.btn-info:hover, .btn-info:focus { background-color: #005a9a !important; border-color: #005a9a !important; }
.btn-outline-info { color: #006AB5 !important; border-color: #006AB5 !important; }
.btn-outline-info:hover { background-color: #006AB5 !important; border-color: #006AB5 !important; color: #fff !important; }
.text-info { color: #006AB5 !important; }
.border-info { border-color: #006AB5 !important; }

.bg-warning { background-color: #FAA022 !important; }
.btn-warning { background-color: #FAA022 !important; border-color: #FAA022 !important; }
.btn-warning:hover, .btn-warning:focus { background-color: #e8921a !important; border-color: #e8921a !important; }
.text-warning { color: #FAA022 !important; }

.bg-danger { background-color: #E93434 !important; }
.btn-danger { background-color: #E93434 !important; border-color: #E93434 !important; }
.btn-danger:hover, .btn-danger:focus { background-color: #d42c2c !important; border-color: #d42c2c !important; }
.text-danger { color: #E93434 !important; }

/* Menu active state - Red */
.bg-menu-theme.menu-vertical .menu-item.active > .menu-link:not(.menu-toggle) {
  background: linear-gradient(270deg, rgba(233, 52, 52, 0.7) 0%, #E93434 100%) !important;
  box-shadow: 0px 2px 6px 0px rgba(233, 52, 52, 0.3) !important;
  color: #fff !important;
}

.bg-menu-theme.menu-vertical .menu-item.active > .menu-link:not(.menu-toggle) .menu-icon {
  color: #fff !important;
}

/* Menu item active indicator bar - hidden */
.layout-wrapper:not(.layout-horizontal) .bg-menu-theme .menu-inner > .menu-item.active:before {
  background-color: transparent !important;
}

/* ── Sidebar section parent menus (dark bg – bright colors for contrast) ── */

/* Oyunlar section – bright amber/gold */
.bg-menu-theme.menu-vertical .menu-item.menu-section-oyunlar > .menu-link.menu-toggle .menu-icon {
  color: #fbbf24 !important;
}
.bg-menu-theme.menu-vertical .menu-item.menu-section-oyunlar > .menu-link.menu-toggle > div:first-of-type {
  color: #fbbf24;
  font-weight: 600;
}

/* Rekabet section – bright red */
.bg-menu-theme.menu-vertical .menu-item.menu-section-rekabet > .menu-link.menu-toggle .menu-icon {
  color: #f87171 !important;
}
.bg-menu-theme.menu-vertical .menu-item.menu-section-rekabet > .menu-link.menu-toggle > div:first-of-type {
  color: #f87171;
  font-weight: 600;
}

/* Keşfet section – bright blue */
.bg-menu-theme.menu-vertical .menu-item.menu-section-kesfet > .menu-link.menu-toggle .menu-icon {
  color: #60a5fa !important;
}
.bg-menu-theme.menu-vertical .menu-item.menu-section-kesfet > .menu-link.menu-toggle > div:first-of-type {
  color: #60a5fa;
  font-weight: 600;
}

/* Sosyal section – bright violet */
.bg-menu-theme.menu-vertical .menu-item.menu-section-sosyal > .menu-link.menu-toggle .menu-icon {
  color: #a78bfa !important;
}
.bg-menu-theme.menu-vertical .menu-item.menu-section-sosyal > .menu-link.menu-toggle > div:first-of-type {
  color: #a78bfa;
  font-weight: 600;
}

/* Hesabım section – soft grey */
.bg-menu-theme.menu-vertical .menu-item.menu-section-hesabim > .menu-link.menu-toggle .menu-icon {
  color: #94a3b8 !important;
}
.bg-menu-theme.menu-vertical .menu-item.menu-section-hesabim > .menu-link.menu-toggle > div:first-of-type {
  color: #94a3b8;
  font-weight: 600;
}

/* King menu item – bright gold icon */
.bg-menu-theme.menu-vertical .menu-item.menu-item-king > .menu-link .menu-icon {
  color: #fbbf24 !important;
}

/* Disabled menu items (coming soon) */
.menu-item.menu-item-disabled > .menu-link {
  opacity: 0.6;
  cursor: default !important;
  pointer-events: none;
}

.menu-item.menu-item-disabled > .menu-link:hover {
  background: transparent !important;
}

/* Coming soon badge in menu */
.menu-link .badge {
  font-size: 0.625rem;
  padding: 0.2em 0.5em;
  letter-spacing: 0.3px;
}

/* Auth page logo styling */
.auth-cover-brand .app-brand-logo.demo {
  width: auto;
  height: auto;
}

.auth-cover-brand .app-brand-logo.demo img {
  max-height: 80px;
  width: auto;
}

/* Form controls focus */
.form-control:focus,
.form-select:focus {
  border-color: #E93434 !important;
  box-shadow: 0 0 0 0.2rem rgba(233, 52, 52, 0.25) !important;
}

/* Links */
a { color: #E93434; }
a:hover { color: #d42c2c; }

/* Pagination */
.page-item.active .page-link {
  background-color: #E93434 !important;
  border-color: #E93434 !important;
}

.menu-vertical .app-brand.demo {
  height: 140px !important;
  padding: 1rem;
  justify-content: space-between;
  align-items: center;
}

.app-brand.demo .app-brand-link {
  flex: 1;
  justify-content: flex-start;
}

.app-brand-logo.demo {
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
  justify-content: center;
  display: -ms-flexbox;
  display: flex;
  width: auto;
  height: auto;
}

.app-brand-logo.demo img {
  max-height: 115px;
  max-width: 100%;
  width: auto;
  transition: max-height 0.3s ease;
}

.app-brand-logo.demo svg {
  width: 35px;
  height: 24px;
}

/* Toggle button side by side with logo */
.app-brand.demo .layout-menu-toggle {
  flex-shrink: 0;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

/* Logo visibility - expanded state shows full logo, collapsed shows icon */
.app-brand-logo.demo .app-brand-img {
  display: block;
}

.app-brand-logo.demo .app-brand-icon-collapsed {
  display: none;
  font-size: 1.75rem;
  color: #E93434;
}

/* Collapsed menu state */
.menu-collapsed:not(:hover) .app-brand-logo.demo .app-brand-img,
.layout-menu-collapsed:not(.layout-menu-hover) .layout-menu .app-brand-logo.demo .app-brand-img {
  display: none !important;
}

.menu-collapsed:not(:hover) .app-brand-logo.demo .app-brand-icon-collapsed,
.layout-menu-collapsed:not(.layout-menu-hover) .layout-menu .app-brand-logo.demo .app-brand-icon-collapsed {
  display: block !important;
}

/* Collapsed menu - center the icon */
.menu-collapsed:not(:hover) .app-brand.demo,
.layout-menu-collapsed:not(.layout-menu-hover) .layout-menu .app-brand.demo {
  justify-content: center !important;
  height: 80px !important;
  padding: 1rem 0.5rem !important;
}

.menu-collapsed:not(:hover) .app-brand.demo .layout-menu-toggle,
.layout-menu-collapsed:not(.layout-menu-hover) .layout-menu .app-brand.demo .layout-menu-toggle {
  display: none !important;
}

.app-brand-text.demo {
  font-size: 1.375rem;
}

/* ! For .layout-navbar-fixed added fix padding top tpo .layout-page */
.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 64px !important;
}
.layout-navbar-fixed .layout-wrapper:not(.layout-horizontal):not(.layout-without-menu) .layout-page {
  padding-top: 72px !important;
}
/* Navbar page z-index issue solution */
.content-wrapper .navbar {
  z-index: auto;
}

/*
* Content
******************************************************************************/

.demo-blocks > * {
  display: block !important;
}

.demo-inline-spacing > * {
  margin: 1rem 0.375rem 0 0 !important;
}

/* ? .demo-vertical-spacing class is used to have vertical margins between elements. To remove margin-top from the first-child, use .demo-only-element class with .demo-vertical-spacing class. For example, we have used this class in forms-input-groups.html file. */
.demo-vertical-spacing > * {
  margin-top: 1rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-lg > * {
  margin-top: 1.875rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-lg.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-xl > * {
  margin-top: 5rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-xl.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.rtl-only {
  display: none !important;
  text-align: left !important;
  direction: ltr !important;
}

[dir='rtl'] .rtl-only {
  display: block !important;
}

/* Dropdown buttons going out of small screens */
@media (max-width: 576px) {
  #dropdown-variation-demo .btn-group .text-truncate {
    width: 254px;
    position: relative;
  }
  #dropdown-variation-demo .btn-group .text-truncate::after {
    position: absolute;
    top: 45%;
    right: 0.65rem;
  }
}

/*
* Layout demo
******************************************************************************/

.layout-demo-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  margin-top: 1rem;
}
.layout-demo-placeholder img {
  width: 900px;
}
.layout-demo-info {
  text-align: center;
  margin-top: 1rem;
}
.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

.hero-section {
    padding: 3rem 0 2rem 0;
}

.article-meta {
    background: rgba(108, 117, 125, 0.1);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
}

.share-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.social-btn {
    transition: all 0.3s ease;
    min-width: 2.5rem;
    height: 2.5rem;
}

    .social-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    }

@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0 1.5rem 0;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .share-section {
        text-align: center;
    }

    .social-share-buttons {
        justify-content: center !important;
        margin-top: 1rem;
    }
}
