/**
 * DigiFoxStudio - Main Additional CSS
 * This file contains additional styles that complement style.css
 * 
 * @package DigiFoxStudio
 */

/* ===================================
   WORDPRESS SPECIFIC STYLES
   =================================== */

/* WordPress Alignment Classes */
.alignleft {
  float: left;
  margin: 0.5rem 1.5rem 1rem 0;
}

.alignright {
  float: right;
  margin: 0.5rem 0 1rem 1.5rem;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.alignnone {
  display: block;
  margin: 1rem 0;
}

/* WordPress Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: white;
  padding: 1rem;
  font-size: 0.9rem;
}

/* ===================================
   FORMS & INPUTS
   =================================== */

/* Search Form Styling */
.search-form {
  position: relative;
  width: 100%;
}

.search-form input[type="search"] {
  width: 100%;
  padding: 1rem 3rem 1rem 1rem;
  background-color: var(--dark-tertiary);
  border: 1px solid var(--accent-border);
  border-radius: 4px;
  color: var(--text-white);
  font-size: 1rem;
  transition: all var(--transition-speed) ease;
}

.search-form input[type="search"]:focus {
  outline: none;
  border-color: var(--primary-orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.search-form .search-submit {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  padding: 0 1.5rem;
  background-color: var(--primary-orange);
  color: white;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}

.search-form .search-submit:hover {
  background-color: var(--primary-orange-hover);
}

/* Contact Form 7 Styling */
.wpcf7-form p {
  margin-bottom: 1.5rem;
}

.wpcf7-form label {
  display: block;
  color: var(--text-white);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form textarea,
.wpcf7-form select {
  width: 100%;
  padding: 1rem;
  background-color: var(--dark-tertiary);
  border: 1px solid var(--accent-border);
  border-radius: 4px;
  color: var(--text-white);
  font-family: var(--font-primary);
  transition: all var(--transition-speed) ease;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
  outline: none;
  border-color: var(--primary-orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.wpcf7-form textarea {
  resize: vertical;
  min-height: 150px;
}

.wpcf7-form input[type="submit"] {
  width: auto;
  padding: 1rem 2.5rem;
  background-color: var(--primary-orange);
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
}

.wpcf7-form input[type="submit"]:hover {
  background-color: var(--primary-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 107, 53, 0.4);
}

/* CF7 Validation Messages */
.wpcf7-not-valid-tip {
  color: var(--primary-orange);
  font-size: 0.9rem;
  margin-top: 0.5rem;
  display: block;
}

.wpcf7-response-output {
  margin: 1.5rem 0;
  padding: 1rem;
  border-radius: 4px;
  text-align: center;
}

.wpcf7-mail-sent-ok {
  background-color: rgba(16, 185, 129, 0.1);
  border: 1px solid #10b981;
  color: #10b981;
}

.wpcf7-validation-errors,
.wpcf7-mail-sent-ng {
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid #ef4444;
  color: #ef4444;
}

/* ===================================
   COMMENTS SECTION
   =================================== */

#comments {
  margin-top: 4rem;
  padding: 3rem;
  background-color: var(--dark-secondary);
  border-radius: 8px;
  border: 1px solid var(--accent-border);
}

.comments-title {
  color: var(--text-white);
  margin-bottom: 2rem;
}

.comment-list {
  list-style: none;
  padding: 0;
}

.comment {
  margin-bottom: 2rem;
  padding: 2rem;
  background-color: var(--dark-tertiary);
  border-radius: 8px;
  border-left: 4px solid var(--primary-orange);
}

.comment-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.comment-author img {
  border-radius: 50%;
}

.comment-metadata {
  font-size: 0.9rem;
  color: var(--text-gray);
  margin-bottom: 1rem;
}

.comment-content {
  color: var(--text-light-gray);
  line-height: 1.7;
}

.reply {
  margin-top: 1rem;
}

.comment-reply-link {
  color: var(--primary-orange);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

/* ===================================
   BREADCRUMBS
   =================================== */

.breadcrumbs {
  padding: 1rem 0;
  font-size: 0.9rem;
  color: var(--text-gray);
}

.breadcrumbs a {
  color: var(--text-gray);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

.breadcrumbs a:hover {
  color: var(--primary-orange);
}

.breadcrumbs span {
  margin: 0 0.5rem;
  color: var(--text-gray);
}

/* ===================================
   TABLES
   =================================== */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background-color: var(--dark-secondary);
  border-radius: 8px;
  overflow: hidden;
}

thead {
  background-color: var(--primary-orange);
}

th {
  padding: 1rem;
  text-align: left;
  color: white;
  font-weight: 600;
}

td {
  padding: 1rem;
  border-bottom: 1px solid var(--accent-border);
  color: var(--text-gray);
}

tr:last-child td {
  border-bottom: none;
}

tbody tr:hover {
  background-color: var(--dark-tertiary);
}

/* ===================================
   BLOCKQUOTE
   =================================== */

blockquote {
  position: relative;
  margin: 2rem 0;
  padding: 2rem 2rem 2rem 4rem;
  background-color: var(--dark-secondary);
  border-left: 4px solid var(--primary-orange);
  border-radius: 8px;
  font-style: italic;
  color: var(--text-light-gray);
}

blockquote::before {
  content: '"';
  position: absolute;
  left: 1rem;
  top: 1rem;
  font-size: 4rem;
  color: var(--primary-orange);
  opacity: 0.3;
  line-height: 1;
}

blockquote p {
  margin: 0;
}

blockquote cite {
  display: block;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-gray);
  font-style: normal;
}

/* ===================================
   LISTS
   =================================== */

.entry-content ul,
.entry-content ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.entry-content ul li,
.entry-content ol li {
  margin-bottom: 0.75rem;
  color: var(--text-gray);
  line-height: 1.7;
}

.entry-content ul li::marker {
  color: var(--primary-orange);
}

/* ===================================
   CODE BLOCKS
   =================================== */

code {
  padding: 0.25rem 0.5rem;
  background-color: var(--dark-tertiary);
  border: 1px solid var(--accent-border);
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  color: var(--primary-orange);
}

pre {
  margin: 2rem 0;
  padding: 1.5rem;
  background-color: var(--dark-tertiary);
  border: 1px solid var(--accent-border);
  border-radius: 8px;
  overflow-x: auto;
}

pre code {
  padding: 0;
  background: none;
  border: none;
  color: var(--text-light-gray);
}

/* ===================================
   POST META INFORMATION
   =================================== */

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-gray);
}

.entry-meta a {
  color: var(--text-gray);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

.entry-meta a:hover {
  color: var(--primary-orange);
}

/* ===================================
   POST NAVIGATION
   =================================== */

.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 3rem 0;
}

.nav-previous,
.nav-next {
  padding: 1.5rem;
  background-color: var(--dark-secondary);
  border: 1px solid var(--accent-border);
  border-radius: 8px;
  transition: all var(--transition-speed) ease;
}

.nav-previous:hover,
.nav-next:hover {
  border-color: var(--primary-orange);
  transform: translateY(-5px);
}

.nav-next {
  text-align: right;
}

/* ===================================
   ACCESSIBILITY
   =================================== */

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: var(--primary-orange);
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  color: white;
  display: block;
  font-size: 0.875rem;
  font-weight: bold;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* ===================================
   UTILITY HELPERS
   =================================== */

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

.text-uppercase {
  text-transform: uppercase;
}

.text-lowercase {
  text-transform: lowercase;
}

.text-capitalize {
  text-transform: capitalize;
}

.fw-light {
  font-weight: 300;
}

.fw-normal {
  font-weight: 400;
}

.fw-medium {
  font-weight: 500;
}

.fw-semibold {
  font-weight: 600;
}

.fw-bold {
  font-weight: 700;
}

.d-none {
  display: none;
}

.d-block {
  display: block;
}

.d-flex {
  display: flex;
}

.d-grid {
  display: grid;
}

/* ===================================
   LOADING SPINNER
   =================================== */

.loading-spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 107, 53, 0.2);
  border-top-color: var(--primary-orange);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}