/**
 * Component styles for Pursue Life Outdoors
 * Contains styles for specific UI components (buttons, cards, hero slider, etc.)
 */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 5px;
  font-family: var(--body-font, 'Arial, sans-serif');
  font-weight: 600;
  font-size: var(--font-size-small, 0.875rem);
  text-align: center;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn .material-icons {
  margin-left: 8px;
}

.btn-primary {
  background-color: var(--golden-orange);
  color: var(--deep-green);
}

.btn-primary:hover {
  background-color: var(--soft-yellow);
  color: var(--deep-green);
}

.btn-secondary {
  background-color: var(--forest-green);
  color: white;
}

.btn-secondary:hover {
  background-color: var(--olive-green);
  color: var(--deep-green);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--golden-orange);
  color: var(--golden-orange);
}

.btn-outline:hover {
  background-color: var(--golden-orange);
  color: var(--deep-green);
}

/**
 * Card Component
 *
 * A reusable card component for displaying content with optional image,
 * title, text, and footer sections.
 *
 * Required HTML structure:
 * <div class="card">
 *   <img class="card__image" src="..." alt="...">
 *   <div class="card__body">
 *     <h3 class="card__title">...</h3>
 *     <p class="card__text">...</p>
 *   </div>
 *   <div class="card__footer">...</div>
 * </div>
 */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    background-color: white;
    background-clip: border-box;
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    word-wrap: break-word;
    aspect-ratio: 3/4;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card__image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    aspect-ratio: 16/9;
    background-color: var(--light-gray, #f5f5f5);
}

.card__body {
    flex: 1 1 auto;
    padding: var(--spacing-md, 1.25rem);
}

.card__title {
    font-family: var(--heading-font, 'Georgia, serif');
    font-size: var(--font-size-regular, 1rem);
    margin-bottom: var(--spacing-xs, 0.75rem);
    color: var(--deep-green, #2C3E50);
}

.card__text {
    font-size: var(--font-size-small, 0.875rem);
    color: var(--deep-green, #2C3E50);
    margin-bottom: var(--spacing-sm, 1rem);
}

.card__text:last-child {
    margin-bottom: 0;
}

.card__footer {
    padding: var(--spacing-sm, 0.75rem) var(--spacing-md, 1.25rem);
    background-color: rgba(0, 0, 0, 0.03);
    border-top: 1px solid rgba(0, 0, 0, 0.125);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Collection Cards - a variant of the card component */
.components-collection-card {
    position: relative;
    border-radius: 5px;
    overflow: hidden;
    height: 300px;
    aspect-ratio: 16/9;
}

.components-collection-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: var(--light-gray, #f5f5f5);
    transform: scale(1);
    will-change: transform;
    transition: transform 0.5s ease;
}

.components-collection-card:hover .components-collection-card__image {
    transform: scale(1.05);
}

.components-collection-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-md);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
    color: white;
}

.components-collection-card__title {
    font-family: var(--heading-font);
    font-size: var(--font-size-medium);
    margin-bottom: var(--spacing-xs);
}

/* Product Cards - another variant of the card component */
.product-card {
    border: 1px solid #f0f0f0;
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.product-card__image-wrapper {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    aspect-ratio: 1;
    background-color: var(--light-gray, #f5f5f5);
}

.product-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    will-change: transform;
    transition: transform 0.5s ease;
}

.product-card:hover .product-card__image {
    transform: scale(1.05);
}

.product-card__content {
    padding: var(--spacing-md);
    background-color: white;
}

.product-card__title {
    font-family: var(--heading-font);
    font-size: var(--font-size-regular);
    margin-bottom: var(--spacing-xs);
    color: var(--deep-green);
}

.product-card__price {
    font-size: var(--font-size-small);
    color: var(--forest-green);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.product-card__actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Header */
.site-header {
  background-color: var(--deep-green);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Header background overlay */
.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../images/header/pursue-life-outdoors-background.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.1;
  pointer-events: none;
  z-index: -1;
}

/* Header container desktop styles moved to layout.css */

.site-logo {
  display: flex;
  flex-direction: column;
}

/* Site title and description styles moved to layout.css for responsive control */

/* Navigation styles moved to navigation.css */

/* Header icon styles moved to layout.css for responsive control */

/* Mobile menu toggle moved to navigation.css */

/* Footer styles moved to footer.css */

/* Responsive Styles - cleaned up empty media queries */

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: var(--golden-orange);
  color: var(--deep-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--soft-yellow);
}

/* ========================================
   BUTTON STYLES
   ======================================== */

/* Button Styles
--------------------------------------------- */

/* Base Button Styles */
.btn,
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    border: 2px solid transparent;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-family: 'Roboto', sans-serif;
}

/* Button Sizes */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 3px;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    border-radius: 5px;
}

/* Primary Button */
.btn-primary,
input[type="submit"] {
    background-color: #2a7d2e;
    color: #fff;
    border-color: #2a7d2e;
}

.btn-primary:hover,
.btn-primary:focus,
input[type="submit"]:hover,
input[type="submit"]:focus {
    background-color: #216b24;
    border-color: #216b24;
    color: #fff;
}

/* Secondary Button */
.btn-secondary {
    background-color: #6c757d;
    color: #fff;
    border-color: #6c757d;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: #5a6268;
    border-color: #5a6268;
    color: #fff;
}

/* Outline Button */
.btn-outline {
    background-color: transparent;
    color: #2a7d2e;
    border-color: #2a7d2e;
}

.btn-outline:hover,
.btn-outline:focus {
    background-color: #2a7d2e;
    color: #fff;
}

/* Dark Outline Button (for light backgrounds) */
.btn-outline-dark {
    background-color: transparent;
    color: #333;
    border-color: #333;
}

.btn-outline-dark:hover,
.btn-outline-dark:focus {
    background-color: #333;
    color: #fff;
}

/* Light Outline Button (for dark backgrounds) */
.btn-outline-light {
    background-color: transparent;
    color: #fff;
    border-color: #fff;
}

.btn-outline-light:hover,
.btn-outline-light:focus {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Text Button */
.btn-text {
    padding: 0;
    background-color: transparent;
    border: none;
    color: #2a7d2e;
    text-decoration: none;
}

.btn-text:hover,
.btn-text:focus {
    color: #216b24;
    text-decoration: underline;
}

/* Disabled Button */
.btn.disabled,
.btn:disabled,
button:disabled,
input[type="button"]:disabled,
input[type="reset"]:disabled,
input[type="submit"]:disabled {
    opacity: 0.65;
    pointer-events: none;
    cursor: not-allowed;
}

/* Button with Icon */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon svg,
.btn-icon img,
.btn-icon i {
    margin-right: 0.5rem;
}

.btn-icon-right svg,
.btn-icon-right img,
.btn-icon-right i {
    margin-right: 0;
    margin-left: 0.5rem;
}

/* Circular Button */
.btn-circle {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-circle.btn-sm {
    width: 32px;
    height: 32px;
}

.btn-circle.btn-lg {
    width: 48px;
    height: 48px;
}

/* Full Width Button */
.btn-block {
    display: block;
    width: 100%;
}

.btn-block + .btn-block {
    margin-top: 0.5rem;
}

/* Button Group */
.btn-group {
    display: inline-flex;
    position: relative;
}

.btn-group .btn {
    position: relative;
    flex: 1 1 auto;
}

.btn-group .btn:not(:first-child) {
    margin-left: -1px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.btn-group .btn:not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

/* WooCommerce Buttons */
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    background-color: #2a7d2e;
    color: #fff;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background-color: #216b24;
    color: #fff;
}

.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
    background-color: #2a7d2e;
    color: #fff;
}

.woocommerce #respond input#submit.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
    background-color: #216b24;
    color: #fff;
}

/* Comment Reply Button */
.comment-reply-link {
    display: inline-block;
    padding: 0.4rem 0.75rem;
    background-color: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
    border-radius: 3px;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.comment-reply-link:hover {
    background-color: #e9ecef;
    color: #495057;
    text-decoration: none;
}

/* Read More Button */
.read-more {
    font-weight: 500;
    color: #2a7d2e;
    text-decoration: none;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #216b24;
    text-decoration: underline;
}

.read-more:after {
    content: '→';
    margin-left: 0.25rem;
    transition: margin-left 0.3s ease;
}

.read-more:hover:after {
    margin-left: 0.5rem;
}

/* Button Loading State */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1rem;
    height: 1rem;
    margin: -0.5rem 0 0 -0.5rem;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Focus Styles - Accessibility */
.btn:focus,
button:focus,
input[type="button"]:focus,
input[type="reset"]:focus,
input[type="submit"]:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(42, 125, 46, 0.25);
} 