/* DraftCopy - Placeholder Copy Library - Styles */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'IBM Plex Mono', 'Consolas', 'Monaco', monospace;
  background: #FFFFFF;
  color: #000000;
  font-size: 14px;
  line-height: 1.5;
}

/* Layout */
.container {
  display: flex;
  height: 100vh;
}

/* Sidebar - 2px border for main structural divider */
.sidebar {
  width: 220px;
  min-width: 220px;
  border-right: 2px solid #000000;
  overflow-y: auto;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
}

.sidebar-title {
  font-size: 12px;
  font-weight: 700;
  padding: 15px 20px;
  border-bottom: 2px solid #000000;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sidebar-logo {
  display: block;
  max-width: calc(100% + 4px);
  width: auto;
  height: auto;
  max-height: 28px;
  margin-left: -2px;
}

.sidebar-tagline {
  font-size: 10px;
  padding: 0 20px 15px 20px;
  border-bottom: 2px solid #000000;
  margin-bottom: 10px;
  line-height: 1.5;
  color: #666;
}

.sidebar-nav {
  list-style: none;
  flex: 1;
}

.sidebar-nav li {
  border-bottom: 1px solid #000000;
}

.sidebar-nav a {
  display: block;
  padding: 12px 20px;
  color: #000000;
  text-decoration: none;
  font-size: 13px;
}

.sidebar-nav a:hover {
  background: #000000;
  color: #FFFFFF;
}

.sidebar-nav a.active {
  background: #000000;
  color: #FFFFFF;
}

.sidebar-footer {
  padding: 15px 20px;
  border-top: 2px solid #000000;
  margin-top: auto;
}

.seo-keywords {
  font-size: 9px;
  line-height: 1.4;
  color: #999;
}

/* Main Content */
.main {
  flex: 1;
  overflow-y: auto;
  padding: 20px 30px;
}

/* Section Header - Full width line */
.section-header {
  padding-bottom: 15px;
  margin-bottom: 20px;
  margin-left: -30px;
  margin-right: -30px;
  padding-left: 30px;
  padding-right: 30px;
  border-bottom: 2px solid #000000;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Controls Row */
.controls {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.control-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.control-label {
  font-size: 12px;
  text-transform: uppercase;
}

/* Custom Dropdown Wrapper */
.custom-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-trigger {
  font-family: inherit;
  font-size: 12px;
  padding: 6px 32px 6px 12px;
  border: 2px solid #000000;
  background: #FFFFFF;
  color: #000000;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 70px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.dropdown-trigger::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #000000;
}

.dropdown-trigger:hover,
.dropdown-trigger.active {
  background: #000000;
  color: #FFFFFF;
}

.dropdown-trigger:hover::after,
.dropdown-trigger.active::after {
  border-top-color: #FFFFFF;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #FFFFFF;
  border: 2px solid #000000;
  border-top: none;
  min-width: 100%;
  z-index: 1000;
  max-height: 200px;
  overflow-y: auto;
}

.dropdown-menu.open {
  display: block;
}

.dropdown-option {
  padding: 8px 12px;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
  border-bottom: 1px solid #000000;
}

.dropdown-option:last-child {
  border-bottom: none;
}

.dropdown-option:hover {
  background: #000000;
  color: #FFFFFF;
}

.dropdown-option.selected {
  background: #000000;
  color: #FFFFFF;
}

/* Hidden native select for accessibility fallback */
.control-select {
  font-family: inherit;
  font-size: 12px;
  padding: 6px 12px;
  border: 1px solid #000000;
  border-radius: 0;
  background: #FFFFFF;
  color: #000000;
  cursor: pointer;
  height: auto;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='4' viewBox='0 0 8 4'%3E%3Cpath fill='%23000' d='M0 0l4 4 4-4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}

.control-select:focus {
  outline: none;
  background-color: #000000;
  color: #FFFFFF;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='4' viewBox='0 0 8 4'%3E%3Cpath fill='%23FFF' d='M0 0l4 4 4-4z'/%3E%3C/svg%3E");
}

.btn {
  font-family: inherit;
  font-size: 12px;
  padding: 6px 12px;
  border: 2px solid #000000;
  background: #FFFFFF;
  color: #000000;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.btn:hover {
  background: #000000;
  color: #FFFFFF;
}

/* Quote Format Options */
.format-options {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.format-option {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  cursor: pointer;
}

/* Custom radio button styling - box style */
.format-option input[type="radio"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border: 1px solid #000000;
  background: #FFFFFF;
  cursor: pointer;
  margin: 0;
  padding: 0;
  vertical-align: middle;
}

.format-option input[type="radio"]:checked {
  background: #000000;
}

.format-option input[type="radio"]:focus {
  outline: none;
}

/* Items List */
.items-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid #000000;
  gap: 15px;
}

.item:first-child {
  border-top: 1px solid #000000;
}

.item-text {
  flex: 1;
  word-break: break-word;
}

.item-text.paragraph {
  line-height: 1.7;
}

.copy-btn {
  font-family: inherit;
  font-size: 11px;
  padding: 4px 8px;
  border: 1px solid #000000;
  background: #FFFFFF;
  color: #000000;
  cursor: pointer;
  white-space: nowrap;
  min-width: 55px;
  text-align: center;
}

.copy-btn:hover {
  background: #000000;
  color: #FFFFFF;
}

.copy-btn.copied {
  background: #000000;
  color: #FFFFFF;
}

/* Attribution styling for quotes */
.item-attribution {
  font-size: 12px;
  margin-top: 8px;
  opacity: 0.8;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #FFFFFF;
}

::-webkit-scrollbar-thumb {
  background: #000000;
}

/* Mobile Navigation Toggle */
.mobile-nav-toggle {
  display: none;
  position: fixed;
  top: 15px;
  left: 15px;
  z-index: 1001;
  width: 40px;
  height: 40px;
  background: #FFFFFF;
  border: 2px solid #000000;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 8px;
}

.hamburger-line {
  width: 100%;
  height: 2px;
  background: #000000;
  transition: transform 0.3s, opacity 0.3s;
}

.mobile-nav-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-nav-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Responsive Adjustments - Tablet */
@media (max-width: 900px) {
  .sidebar {
    width: 200px;
    min-width: 200px;
  }
  
  .main {
    padding: 20px 25px;
  }
  
  .section-header {
    margin-left: -25px;
    margin-right: -25px;
    padding-left: 25px;
    padding-right: 25px;
  }
  
  .controls {
    gap: 10px;
  }
  
  .format-options {
    gap: 10px;
  }
}

/* Responsive Adjustments - Mobile */
@media (max-width: 768px) {
  .mobile-nav-toggle {
    display: flex;
  }
  
  .container {
    flex-direction: column;
  }
  
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    border-right: 2px solid #000000;
    background: #FFFFFF;
  }
  
  .sidebar.open {
    transform: translateX(0);
  }
  
  .sidebar-title {
    padding-top: 60px;
  }
  
  .main {
    width: 100%;
    min-height: 100vh;
    padding: 70px 20px 30px 20px;
  }
  
  .section-header {
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
  }
  
  .section-title {
    font-size: 16px;
    margin-bottom: 12px;
  }
  
  .controls {
    gap: 8px;
  }
  
  .control-group {
    gap: 6px;
  }
  
  .btn {
    padding: 5px 10px;
    font-size: 11px;
  }
  
  .dropdown-trigger {
    padding: 5px 24px 5px 10px;
    font-size: 11px;
  }
  
  .item {
    padding: 10px 0;
    gap: 10px;
  }
  
  .item-text {
    font-size: 13px;
  }
  
  .copy-btn {
    padding: 3px 6px;
    font-size: 10px;
    min-width: 45px;
  }
  
  /* Format options stack on mobile */
  .format-options {
    width: 100%;
    gap: 8px;
  }
  
  .format-option {
    font-size: 11px;
    gap: 4px;
  }
  
  .format-option input[type="radio"] {
    width: 10px;
    height: 10px;
  }
  
  /* Mobile overlay when sidebar is open */
  .sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }
  
  .sidebar-overlay.active {
    display: block;
  }
}

/* Responsive Adjustments - Small Mobile */
@media (max-width: 480px) {
  .main {
    padding: 65px 15px 25px 15px;
  }
  
  .section-header {
    margin-left: -15px;
    margin-right: -15px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .section-title {
    font-size: 14px;
  }
  
  .controls {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .control-group {
    width: 100%;
    justify-content: space-between;
  }
  
  .control-label {
    font-size: 11px;
  }
  
  .btn {
    flex: 1;
    text-align: center;
  }
  
  /* Stack buttons on small screens */
  .controls > .btn,
  .controls > .control-group {
    width: 100%;
  }
  
  .controls > .btn {
    padding: 8px 12px;
  }
  
  .format-options {
    flex-direction: column;
    gap: 6px;
  }
  
  .item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .copy-btn {
    align-self: flex-end;
  }
  
  .item-text {
    width: 100%;
    font-size: 12px;
    line-height: 1.6;
  }
  
  .sidebar-tagline {
    font-size: 9px;
    padding: 0 15px 12px 15px;
  }
  
  .seo-keywords {
    font-size: 8px;
  }
  
  .sidebar-nav a {
    padding: 10px 15px;
    font-size: 12px;
  }
}

/* Print styles */
@media print {
  .sidebar,
  .mobile-nav-toggle,
  .copy-btn,
  .controls {
    display: none !important;
  }
  
  .main {
    padding: 0;
  }
  
  .section-header {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
}
