/* Zefoy - Clean HTML CSS */

/* CSS Variables - Theme Colors */
:root {
  --color-primary: #2872fa;
  --color-primary-dark: #1559ed;
  --color-text: #3A4F66;
  --color-text-dark: #192a3d;
  --color-border: #e1e8ed;
  --color-bg-light: #f2f5f7;
  --color-bg-lighter: #FAFBFC;
  --color-white: #ffffff;
  --color-black: #000000;
  --spacing-sm: 0.44rem;
  --spacing-md: 0.67rem;
  --spacing-lg: 1rem;
  --spacing-xl: 1.5rem;
  --content-max-width: 1200px;
  --font-size-small: 13px;
  --font-size-medium: 20px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-white);
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  color: var(--color-primary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

/* Layout */
.container {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

/* Header */
#header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.ct-container {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title a {
  font-family: sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--color-text-dark);
  text-decoration: none;
}

/* Navigation */
.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
}

.menu li {
  margin: 0;
}

.ct-menu-link {
  color: var(--color-text);
  font-weight: 500;
  padding: 8px 12px;
  transition: color 0.2s;
}

.ct-menu-link:hover {
  color: var(--color-primary);
}

/* Mobile Menu */
.ct-header-trigger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.ct-icon {
  fill: var(--color-text);
}

/* Offcanvas Menu */
.ct-drawer-canvas {
  display: none;
}

.ct-panel {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100%;
  background: var(--color-white);
  box-shadow: -2px 0 10px rgba(0,0,0,0.1);
  transition: right 0.3s;
  z-index: 1000;
}

.ct-panel.active {
  right: 0;
}

.ct-panel-inner {
  padding: 20px;
}

.ct-toggle-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  float: right;
}

.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.mobile-menu li {
  margin: 10px 0;
}

.mobile-menu a {
  display: block;
  padding: 10px;
  color: var(--color-text);
}

/* Main Content */
#main {
  min-height: calc(100vh - 200px);
}

.ct-container-full {
  padding: 40px 20px;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  padding: 40px 20px;
  text-align: center;
  border-radius: 8px;
  margin-bottom: 30px;
}

.hero-section .page-title {
  color: var(--color-white) !important;
  margin: 0;
  font-size: 2em;
}

.page-title {
  color: var(--color-text) !important;
  font-size: 2em;
  margin-bottom: 20px;
}

/* Entry Content */
.entry-content {
  max-width: 900px;
  margin: 0 auto;
}

.has-text-align-center {
  text-align: center;
}

.has-small-font-size {
  font-size: var(--font-size-small);
}

/* Headings */
h2 {
  font-size: 1.5em;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--color-text-dark);
  font-weight: 600;
}

h5 {
  font-size: 1.2em;
  margin-top: 0;
  margin-bottom: 15px;
  color: var(--color-text-dark);
  font-weight: 600;
}

/* Columns / Grid */
.wp-block-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.wp-block-column {
  flex: 1;
  min-width: 200px;
  padding: var(--spacing-md);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-white);
}

.wp-block-column h5 {
  text-align: center;
  margin-bottom: 15px;
  color: var(--color-text-dark);
}

/* Buttons */
.wp-block-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.wp-block-button {
  display: inline-block;
}

.wp-block-button.has-custom-width.wp-block-button__width-100 {
  width: 100%;
}

.wp-block-button__link {
  display: inline-block;
  padding: 12px 24px;
  background: var(--color-primary);
  color: var(--color-white) !important;
  border-radius: 6px;
  font-weight: 600;
  text-align: center;
  transition: all 0.2s;
  width: 100%;
}

.wp-block-button__link:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

/* Download Button Variants */
.btn-download-1 .wp-block-button__link {
  background-image: linear-gradient(45deg, #ff5c57, #c62828) !important;
}
.btn-download-2 .wp-block-button__link {
  background-image: linear-gradient(45deg, #43aa8b, #1e5f48) !important;
}
.btn-download-3 .wp-block-button__link {
  background-image: linear-gradient(45deg, #9b5de5, #4c1d95) !important;
}
.btn-download-4 .wp-block-button__link {
  background-image: linear-gradient(45deg, #0096c7, #014f86) !important;
}
.btn-download-5 .wp-block-button__link {
  background-image: linear-gradient(45deg, #ff7f11, #b34700) !important;
}

.btn-download-1 .wp-block-button__link:hover,
.btn-download-2 .wp-block-button__link:hover,
.btn-download-3 .wp-block-button__link:hover,
.btn-download-4 .wp-block-button__link:hover,
.btn-download-5 .wp-block-button__link:hover {
  filter: brightness(1.1);
}

/* Form */
#zefoy-form {
  background: var(--color-white);
  padding: 10px 20px;
  border-radius: 8px;
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#zefoy-form input[type="url"] {
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 16px;
  flex: 1;
}

#zefoy-form button {
  padding: 12px 24px;
  background-color: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.2s;
}

#zefoy-form button:hover {
  background-color: var(--color-primary-dark);
}

@media (min-width: 600px) {
  #zefoy-form {
    flex-direction: row;
    align-items: center;
  }
  #zefoy-form button {
    margin-left: 10px;
  }
}

/* Lists */
.wp-block-list {
  padding-left: 20px;
}

.wp-block-list li + li {
  margin-top: 12px;
}

/* Separator */
.wp-block-separator {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 20px 0;
}

/* Footer */
#footer {
  background: var(--color-bg-light);
  padding: 30px 20px;
  text-align: center;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.footer-links li {
  display: inline;
}

.footer-links li:not(:last-child)::after {
  content: "|";
  margin-left: 4px;
}

/* Terms Section Highlight */
.terms-section:target {
  background-color: #ffff00;
  border: 2px solid #ffeeba;
  padding: 5px;
  scroll-margin-top: 80px;
}

/* Utilities */
.btext {
  font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
  [data-device="desktop"] {
    display: none !important;
  }
  
  [data-device="mobile"] {
    display: block !important;
  }
  
  .ct-header-trigger {
    display: block;
  }
  
  .wp-block-columns {
    flex-direction: column;
  }
  
  .wp-block-column {
    min-width: 100%;
  }
}

@media (min-width: 769px) {
  [data-device="mobile"] {
    display: none !important;
  }
  
  [data-device="desktop"] {
    display: block !important;
  }
}

/* Background colors */
.has-palette-color-8-background-color,
.has-background {
  background-color: var(--color-white);
}

.has-palette-color-5-border-color {
  border-color: var(--color-border);
}

/* Constrained layout */
.is-layout-constrained {
  max-width: 900px;
  margin: 0 auto;
}

.is-layout-constrained > * {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.is-layout-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.is-layout-flow > * + * {
  margin-top: var(--spacing-lg);
}

/* Article */
article {
  padding: 20px;
}

/* Small text */
small {
  color: #666;
  font-size: 12px;
}

