/*
Theme Name: Hedge3 Standard Marketplace
Theme URI: https://hedge3.org/defi-turnkey-solution/
Author: Hedge3
Author URI: https://hedge3.org/
Description: TurnKey DeFi solutions.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hedge3-standard-marketplace
Tags: marketplace, ecommerce, responsive, custom-logo, translation-ready
*/




* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    color: #ffffff;
    margin: 0;
    padding: 0;
    background-color: <?php echo get_theme_mod('hedge3_body_bg_color', '#0e1621'); ?> !important; 
    background: <?php echo get_theme_mod('hedge3_body_bg_color', '#0e1621'); ?> !important; 
}

header {
    height: 70px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    width: calc(100% - 305px);
    margin-right: 305px;
    background: <?php echo get_theme_mod('hedge3_layout_background_color', '#17212b'); ?>;
}

header .logo {
    display:flex;
    vertical-align: middle;
    margin:0px 0px 0px 10px;
    height: 70px;
}

header .logo a {display:block;}

header .logo img {
    margin:14px 50px 0px 5px;
    height: 40px !important;
    width:auto !important;
}

header nav {
    margin-left: 20px;
}

header nav > ul {
    list-style: none;
    display: flex;
}
header nav > ul > li {
    position: relative;
    margin-right: 35px;
 
}

header nav > ul > li > a {
    color: #ffffff;
    text-decoration: none;
    line-height: 70px;
    display: inline-block;
}

/* Add the arrow icon to menu items that have submenus */
header nav > ul > li.menu-item-has-children > a::after {
    content: ' ▼'; /* Unicode for down arrow */
    font-size: 0.6em;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

/* Optional: Rotate the arrow when submenu is visible */
header nav > ul > li.menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}



header nav > ul > li > ul {
    display:none;
}

header nav > ul > li:hover > ul {
    display:block;
}

header nav > ul > li > ul {
    position:absolute;
    top:70px;
    min-width:200px;
    left: 50%;
    transform: translateX(-50%);
    list-style:none;
    z-index:1000;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    padding-bottom:10px;
    box-shadow: 0 0.5rem 1.875rem rgba(0, 0, 0, 0.15);
}



/* Style submenu <li> */
header nav > ul > li > ul > li {
    width: 100%;
    display:block;
    list-style:none;
    text-align:center;
    padding: 12px 22px 12px 22px;
    transition: all 0s;
    margin-bottom:-14px;
   
    border-radius:6px;
 
}

/* Style submenu <a> */
header nav > ul > li > ul > li > a {
    background-color: initial;
    color: #fff;
    display: block;
    font-size: 14px;
    font-weight: 400; 
    text-decoration: none;
    padding: 12px 22px 12px 22px;
    border-radius:6px;
    transition: background-color .3s;

}

header nav > ul > li > ul > li > a:hover {
    background-color: <?php echo get_theme_mod('hedge3_hightlight_sections_bg_color', '#232e3c'); ?>;
}




footer {
    color: #ffffff;
    padding: 20px;
    text-align: center;
    width: calc(100% - 305px);
    margin-right: 305px;
    background-color: <?php echo get_theme_mod('hedge3_layout_background_color', '#17212b'); ?>;
}

.sidebar, body .deznav.sidebar  {
    position: fixed;
    top: 0px;
    right: 0;
    width: 300px;
    height: 100vh;
    margin-left: 5px;
    display: flex;
    flex-direction: column;
    background-color: <?php echo get_theme_mod('hedge3_layout_background_color', '#17212b'); ?> !important;
    background: <?php echo get_theme_mod('hedge3_layout_background_color', '#17212b'); ?> !important;
}

.sidebar-header {
    height: 70px;
    width:100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
    text-align:center;
}

.sidebar-header .widget {
    height: 70px;
    width:100%;
}

.sidebar-header .widget .hedge3-widgets {
    width:275px;

}

.sidebar-header .widget .hedge3-widgets button {
    text-align:center;
}

.sidebar-header .widget .hedge3-widgets .dropdown-container {
    z-index:1000 !important;
    margin-top:0px !important;
}

.sidebar-section {
    padding: 0px;
    overflow-y: auto;
    scrollbar-width: thin;
    overflow-x: hidden;
    
}

.sidebar-section::-webkit-scrollbar {
    width: 5px;
}

.sidebar-section::-webkit-scrollbar-thumb {
    background-color: <?php echo get_theme_mod('hedge3_hightlight_sections_bg_color', '#232e3c'); ?>;
    border-radius: 10px;
}

.sidebar-section.section-1 {
    flex: 0 0 35%;
    
}

.sidebar-section.section-2 {
    flex: 0 0 35%;
}

.sidebar-section.section-3 {
    flex: 0 0 30%;
   
}

.sidebar-section-header {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 5px 5px 5px 20px;
    background-color: <?php echo get_theme_mod('hedge3_hightlight_sections_bg_color', '#232e3c'); ?>;
    color: #ffffff;
    font-weight: bold;
    position: sticky;
    top: 0;
    z-index: 10;
    text-align: left;
    margin-left: -10px;
    margin-right: -10px;
}

.sidebar-section.section-1 {

}

.sidebar-section.section-2 {

}

.sidebar-section.section-3 {
    height:115px;
}

/*DEZNAV*/
.widget-container.mobile .top-list-widget-wrapper {
    margin:0px !important;
    padding:0px 0px 28px 0px !important;
}
.deznav .top-list-widget-wrapper {
    width:100%;
    margin:0px !important;
    padding:0px 0px 28px 10px !important;
}

.widget-container.mobile .top-list-widget-wrapper .widget-container,
.deznav .top-list-widget-wrapper .widget-container {
    display:block;
    margin:0px !important;
    padding:0px !important;
}

.widget-container.mobile .top-list-widget-wrapper .dataTable,
.deznav .top-list-widget-wrapper .dataTable {
    width:100%;
}


.deznav .widget-container .top-list-widget-wrapper .card thead tr th {
    padding-top:0px !important;
}

.deznav .hedge3-widgets .card {
    margin-bottom:0px !important;
}

.widget-container.mobile .top-list-widget-wrapper .dataTable thead th:nth-child(2),
.widget-container.mobile .top-list-widget-wrapper .dataTable tbody td:nth-child(2),
.deznav .top-list-widget-wrapper .dataTable thead th:nth-child(2),
.deznav .top-list-widget-wrapper .dataTable tbody td:nth-child(2) {
    display: none;
}

.widget-container.mobile .top-list-widget-wrapper .dataTable tr td span,
.deznav .top-list-widget-wrapper .dataTable tr td small {
    display: none;
}


.widget-container.mobile .top-list-widget-wrapper .dataTable tbody tr:first-child td, 
.deznav .top-list-widget-wrapper  .dataTable tbody tr:first-child td {

}

.widget-container.mobile .top-list-widget-wrapper table.dataTable tbody td,
.deznav .top-list-widget-wrapper table.dataTable tbody td {
    padding:0.6rem;
    width:25%;
}


.widget-container.mobile .top-list-widget-wrapper .dataTable tbody tr:first-child td,
.deznav .top-list-widget-wrapper .dataTable tbody tr:first-child td {
    padding-bottom:5px;
}

.widget-container.mobile .top-list-widget-wrapper .dataTable tbody tr td:last-child,
.deznav .top-list-widget-wrapper .dataTable tbody tr td:last-child  {
    display:none;
}


.widget-container.mobile .top-list-widget-wrapper .dataTable tbody tr:first-child td h5,
.deznav .top-list-widget-wrapper .dataTable tbody tr:first-child td h5 {
    margin-left:0px !important;
    font-size: 1rem !important;
}


.sidebar-section.section-2 ul {
    display: block;
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* This controls the column widths */
    gap: 0px;
    justify-items: center;
    align-items: center;
    margin: 0px auto;
    margin-top:10px;
  }
  
  /* Removed the max-width from li as it's controlled by the grid */
  .sidebar-section.section-2 ul li {
    list-style:none;
    margin-bottom:10px;
  }
  
  .sidebar-section.section-2 ul li a {
    max-width: 80px;
    max-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0px;
    width: 100px;
    height: 100px;
    transition: background-color 0.3s;
    border-radius: 4px;
    color:#fff;
    text-decoration:none;
  }
  
  .sidebar-section.section-2 ul li a:hover {
    background-color: <?php echo get_theme_mod('hedge3_active_bg_color', '#85dab1'); ?>;
  }
  
  .sidebar-section.section-2 ul li a .iconBlock {
    margin-bottom: 5px;
  }
  
  .sidebar-section.section-2 ul li a small {
    white-space: nowrap;
  }


  
  .sidebar-section.section-3 .sidebar-ad-banner {
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    align-items: center;
    text-align:center;
    background-color:  <?php echo get_theme_mod('hedge3_hightlight_sections_bg_color', '#232e3c'); ?>;
    margin: 20px;
    border-radius: 10px;
    border: 1px solid rgba(128, 128, 128, 0.3);
    height:70px;
  }


  
  .sidebar-section.section-3 .sidebar-ad-banner:hover {
    cursor: pointer;
    transform: scale(1.05);
    transition: 0.3s ease;
  }
  
  .sidebar-section.section-3 .sidebar-ad-banner .ad-text {
    position: absolute;
    top: -3px;
    right: 0;
    display: none;
    padding: 5px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    color: #a3a7ab !important;
  }

  .sidebar-section.section-3 .sidebar-ad-banner p {
     color: #a3a7ab !important;
  }
  
  .sidebar-section.section-3 .sidebar-ad-banner:hover .ad-text {
    display: block;
  }


  /*CONTENT*/

.content {
    margin-right: 305px;
    padding: 20px;
    min-height: calc(100vh - 70px - 70px);
}

footer p {
    margin-bottom:10px;
    color:#a3a7ab;
}

footer a, footer a:link, footer a:visited {
    text-decoration:none;
    color:#a3a7ab;
}

footer a:hover, footer a:focus, footer a:active {
    text-decoration:underline;
}

/*WIDGETS*/
.hedge3-widgets .connect-button-widget-wrapper .connect-button {
    background-color:<?php echo get_theme_mod('hedge3_active_bg_color', '#85dab1'); ?> !important;
    background:<?php echo get_theme_mod('hedge3_active_bg_color', '#85dab1'); ?> !important;
}

body .hedge3-widgets .connect-button-widget-wrapper .btn.btn-primary.connect-button:hover,
body .hedge3-widgets .connect-button-widget-wrapper .btn.btn-primary.connect-button:focus,
body .hedge3-widgets .connect-button-widget-wrapper .btn.btn-primary.connect-button:visited {
    opacity:0.8;
    background-color:<?php echo get_theme_mod('hedge3_active_bg_color', '#85dab1'); ?> !important;
    background:<?php echo get_theme_mod('hedge3_active_bg_color', '#85dab1'); ?> !important;
}

@media (max-width: 768px) {
    .sidebar {
        position: static;
        width: 100%;
        height: auto;
        margin-left: 0;
    }
    .content {
        margin-right: 0;
    }
}
