/*=========================================================================
# Project Overview
===========================================================================
Project Name    : Map hooks
Author          : Weplugins
Developer       : Dinesh Suthar
Version         : 1.0.0
Created On      : 1 June 2025
Last Updated    : 1 June 2025
Description     : This stylesheet is designed for an weplugins. 
                  Includes responsive design principles and accessibility.
===========================================================================*/

/*=========================================================================
# General Guidelines
===========================================================================
1. Maintain a modular approach for styles.
2. Test styles across all major browsers (Chrome, Firefox, Safari, Edge).
3. Ensure proper accessibility (e.g., WCAG compliance).
===========================================================================*/

/* Embedded font family
===========================================================================*/
@charset "UTF-8";

/* Variables
===========================================================================*/
:root {
  /* Colors */
  --wep-black: #000000;
  --wep-white: #ffffff;
  --wep-primary: #4390ff;
  --wep-primary-hover: #1572f5;
  --wep-secondary: #f5f7fa;
  --wep-success: #37b24d;
  --wep-danger: #e03131;
  --wep-info: #0dcaf0;
  --wep-warning: #fabb04;
  --wep-light: #ebebee;
  --wep-dark: #23272f;

  /* Link */
  --wep-link-color: var(--wep-primary);
  --wep-link-hover-color: var(--wep-primary-hover);
  --wep-link-text-decoration: none;

  /* Body Props */
  --wep-body-color: #65686e;
  --wep-body-bg: transparent;
  --wep-body-font-family: inherit;
  --wep-body-font-size: 16px;
  --wep-body-font-weight: 400;
  --wep-body-line-height: 1.3;

  /* Border */
  --wep-border-width: 1px;
  --wep-border-style: solid;
  --wep-border-color: rgba(0, 0, 0, 0.1);

  /* Heading */
  --wep-heading-color: #23272f;
  --wep-heading-font-family: inherit;
  --wep-heading-font-weight: 600;
  --wep-heading-line-height: 1.15;
  --wep-heading-margin-bottom: 16px;

  /* Other Variables */
  --wep-border-radius: 8px;
  --wep-border-radius-circle: 50%;
  --wep-box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

@media (prefers-reduced-motion: no-preference) {
  :root {
    scroll-behavior: smooth;
  }
}

/* Browser native scrollbar
===========================================================================*/
* {
  scrollbar-width: thin !important;
  scrollbar-color: rgba(0, 0, 0, 0.25) transparent;
}

::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar:horizontal {
  height: 4px;
}

::-webkit-scrollbar-track {
  border-radius: 4px;
  background: transparent;
}

::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.4);
}

::-webkit-scrollbar-thumb:window-inactive {
  background: rgba(0, 0, 0, 0.2);
}

/* Layouts
===========================================================================*/
.wep-section-map-hooks {
  font-family: var(--wep-body-font-family);
  font-size: var(--wep-body-font-size);
  font-weight: var(--wep-body-font-weight);
  line-height: var(--wep-body-line-height);
  background-color: var(--wep-body-bg);
  color: var(--wep-body-color);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  padding-block: 50px;
}

.wep-container {
  --wep-container-max-width: 1720px;
  width: 100%;
  max-width: var(--wep-container-max-width);
  margin-left: auto;
  margin-right: auto;
}

@media screen and (min-width: 992px) {
  .wep-main {
    display: flex;
  }

  .wep-content-area {
    flex: 1;
    order: 1;
    padding-right: 40px;
  }

  .syntaxhighlighter,
  .wep-content-area pre {
    width: 100%;
    max-width: 545px;
  }

  .wep-sidebar {
    order: 2;
    width: 100%;
    max-width: 350px;
    flex-shrink: 0;
    padding: 30px 20px;
    margin-block: -50px;
    border-left: 1px solid var(--wep-border-color);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    z-index: 100;
    max-height: 100dvh;
  }

  .wep-sidebar-header {
    padding-bottom: 20px;
  }

  .wep-sidebar-header .wep-sidebar-title {
    font-size: 28px;
    margin-bottom: 0;
  }

  .wep-sidebar .wep-map-list {
    flex: 1;
    overflow-y: auto;
  }
}

@media screen and (min-width: 1200px) {
  .syntaxhighlighter,
  .wep-content-area pre {
    max-width: 725px;
  }
}

@media screen and (min-width: 1400px) {
  .syntaxhighlighter,
  .wep-content-area pre {
    max-width: 900px;
  }
}

/* Card
===========================================================================*/
.wep-card {
  --wep-card-spacer-y: 30px;
  --wep-card-spacer-x: 30px;
  --wep-card-heading-color: #202124;
  --wep-card-heading-font-size: 16px;
  --wep-card-heading-font-weight: 600;
  --wep-card-border-width: var(--wep-border-width);
  --wep-card-border-color: rgba(0, 0, 0, 0.1);
  --wep-card-border-radius: 20px;
  --wep-card-inner-border-radius: var(--wep-card-border-radius);
  --wep-card-cap-padding-y: 15px;
  --wep-card-cap-padding-x: 30px;
  --wep-card-cap-bg: transparent;
  --wep-card-cap-color: #202124;
  --wep-card-bg: var(--wep-secondary);
  --wep-card-box-shadow: var(--wep-box-shadow);
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: var(--wep-body-color);
  word-wrap: break-word;
  background-color: var(--wep-card-bg);
  background-clip: border-box;
  border-radius: var(--wep-card-border-radius);
  margin-bottom: var(--wep-card-spacer-y);
  box-shadow: var(--wep-card-box-shadow);
}

.wep-card-full-height {
  height: calc(100% - var(--wep-card-spacer-y));
}

.wep-card-body {
  flex: 1 1 auto;
  padding: var(--wep-card-spacer-y) var(--wep-card-spacer-x);
}

.wep-card-header {
  position: relative;
  padding: calc(var(--wep-card-cap-padding-y) * 2) var(--wep-card-cap-padding-x)
    var(--wep-card-cap-padding-y);
  margin-bottom: 0;
  color: var(--wep-card-cap-color);
  background-color: var(--wep-card-cap-bg);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.wep-card-header .wep-card-heading {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 15px;
  text-transform: uppercase;
  font-size: var(--wep-card-heading-font-size);
  font-weight: var(--wep-card-heading-font-weight);
}

.wep-card-header + .wep-card-body {
  padding-top: var(--wep-card-cap-padding-y);
}

.wep-card-header:first-child {
  border-radius: var(--wep-card-inner-border-radius)
    var(--wep-card-inner-border-radius) 0 0;
}

.wep-card-header::after {
  content: "";
  height: 1px;
  position: absolute;
  bottom: 0;
  width: calc(100% - (var(--wep-card-cap-padding-x) * 2));
  background-color: var(--wep-card-border-color);
  margin-inline: auto;
}

/* Map list
===========================================================================*/
.wep-map-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}

.wep-map-list-item > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--wep-primary);
  word-break: break-all;
}
.wep-map-list-item > a::after {
  content: "";
  height: 20px;
  width: 20px;
  margin-left: 5px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%234390ff'%3E%3Cpath d='M10 6V8H5V19H16V14H18V20C18 20.5523 17.5523 21 17 21H4C3.44772 21 3 20.5523 3 20V7C3 6.44772 3.44772 6 4 6H10ZM21 3V11H19L18.9999 6.413L11.2071 14.2071L9.79289 12.7929L17.5849 5H13V3H21Z'%3E%3C/path%3E%3C/svg%3E");
}
