/* Ink & Aura - Unified Button System */
/* This file standardizes all button styles across the theme */

/* CSS Variables for Ink & Aura Brand Colors */
:root {
    /* Primary Brand Colors */
    --ia-primary: #F6F3EB;     /* Ivory Mist - Main Background */
    --ia-secondary: #0C3B2E;   /* Obsidian - Text Color */
    --ia-accent: #BFA15A;      /* Antique Gold - Accent */
    --ia-neutral: #EAE3D9;     /* Warm Beige - Secondary Background */
    --ia-soft: #FFFFFF;        /* Soft White - Card Backgrounds */
    
    /* Extended Color Palette */
    --ia-gold: #BFA15A;        /* Antique Gold */
    --ia-gold-dark: #A68B5B;   /* Darker Gold */
    --ia-gold-light: #D4C4A8;  /* Light Gold */
    --ia-charcoal: #4A3F35;    /* Charcoal */
    --ia-charcoal-light: #6B5B47; /* Light Charcoal */
    --ia-ivory: #F6F3EB;       /* Ivory */
    --ia-ivory-dark: #F0EDE4;  /* Dark Ivory */
    
    /* Button Colors - Standardized */
    --btn-primary-bg: #BFA15A;
    --btn-primary-hover: #A68B5B;
    --btn-primary-text: #FFFFFF;
    --btn-secondary-bg: transparent;
    --btn-secondary-border: #BFA15A;
    --btn-secondary-text: #BFA15A;
    --btn-secondary-hover-bg: #BFA15A;
    --btn-secondary-hover-text: #FFFFFF;
    
    /* Typography */
    --font-primary: 'Montserrat', sans-serif;
    --font-heading: 'Cormorant Garamond', serif;
    --font-luxury: 'Cormorant Garamond', serif;
}

/* Base Button Styles */
.btn, .button, button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
    text-transform: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

/* Primary Button */
.btn-primary, .button-primary, .primary-button {
    background: linear-gradient(135deg, var(--btn-primary-bg) 0%, var(--btn-primary-hover) 100%);
    color: var(--btn-primary-text);
    border-color: var(--btn-primary-bg);
    box-shadow: 0 4px 15px rgba(191, 161, 90, 0.2);
}

.btn-primary:hover, .button-primary:hover, .primary-button:hover {
    background: linear-gradient(135deg, var(--btn-primary-hover) 0%, #8B7355 100%);
    color: var(--btn-primary-text);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(191, 161, 90, 0.3);
}

/* Secondary Button */
.btn-secondary, .button-secondary, .secondary-button {
    background: var(--btn-secondary-bg);
    color: var(--btn-secondary-text);
    border-color: var(--btn-secondary-border);
}

.btn-secondary:hover, .button-secondary:hover, .secondary-button:hover {
    background: var(--btn-secondary-hover-bg);
    color: var(--btn-secondary-hover-text);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(191, 161, 90, 0.2);
}

/* Outline Button */
.btn-outline, .button-outline {
    background: transparent;
    color: var(--ia-gold);
    border-color: var(--ia-gold);
}

.btn-outline:hover, .button-outline:hover {
    background: var(--ia-gold);
    color: var(--ia-soft);
    transform: translateY(-2px);
}

/* Luxury Button (Special occasions) */
.luxury-button {
    padding: 1.2rem 2.5rem;
    font-family: var(--font-luxury);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--ia-gold) 0%, var(--ia-gold-dark) 100%);
    color: var(--ia-soft);
    border: 2px solid var(--ia-gold);
    box-shadow: 0 6px 20px rgba(191, 161, 90, 0.3);
}

.luxury-button:hover {
    background: transparent;
    color: var(--ia-gold);
    border-color: var(--ia-gold);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(191, 161, 90, 0.4);
}

/* Button Sizes */
.btn-sm, .button-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

.btn-lg, .button-lg {
    padding: 1.125rem 2.25rem;
    font-size: 1.125rem;
}

.btn-xl, .button-xl {
    padding: 1.375rem 2.75rem;
    font-size: 1.25rem;
}

/* Button States */
.btn:disabled, .button:disabled, button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn:focus, .button:focus, button:focus {
    outline: 2px solid var(--ia-gold);
    outline-offset: 2px;
}

/* WooCommerce Button Overrides */
.woocommerce .btn,
.woocommerce .button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button,
.woocommerce #respond input#submit {
    background: var(--btn-primary-bg) !important; /* Keep - WooCommerce override needed */
    color: var(--btn-primary-text) !important; /* Keep - WooCommerce override needed */
    border: 2px solid var(--btn-primary-bg) !important; /* Keep - WooCommerce override needed */
    border-radius: 8px !important; /* Keep - WooCommerce override needed */
    padding: 0.875rem 1.75rem !important; /* Keep - WooCommerce override needed */
    font-family: var(--font-primary) !important; /* Keep - WooCommerce override needed */
    font-weight: 600 !important; /* Keep - WooCommerce override needed */
    text-decoration: none; /* Remove !important - not needed */
    transition: all 0.3s ease; /* Remove !important - not needed */
}

.woocommerce .btn:hover,
.woocommerce .button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button:hover,
.woocommerce #respond input#submit:hover {
    background: var(--btn-primary-hover) !important; /* Keep - WooCommerce override needed */
    color: var(--btn-primary-text) !important; /* Keep - WooCommerce override needed */
    transform: translateY(-2px); /* Remove !important - not needed */
    box-shadow: 0 8px 25px rgba(191, 161, 90, 0.3); /* Remove !important - not needed */
}

/* Add to Cart Button Specific */
.single_add_to_cart_button,
.add_to_cart_button {
    background: var(--btn-primary-bg) !important; /* Keep - WooCommerce override needed */
    color: var(--btn-primary-text) !important; /* Keep - WooCommerce override needed */
    border: 2px solid var(--btn-primary-bg) !important; /* Keep - WooCommerce override needed */
    border-radius: 8px !important; /* Keep - WooCommerce override needed */
    padding: 1rem 2rem !important; /* Keep - WooCommerce override needed */
    font-family: var(--font-primary) !important; /* Keep - WooCommerce override needed */
    font-weight: 600 !important; /* Keep - WooCommerce override needed */
    font-size: 1.1rem !important; /* Keep - WooCommerce override needed */
    text-transform: uppercase; /* Remove !important - not needed */
    letter-spacing: 0.05em; /* Remove !important - not needed */
    transition: all 0.3s ease; /* Remove !important - not needed */
    box-shadow: 0 4px 15px rgba(191, 161, 90, 0.2); /* Remove !important - not needed */
}

.single_add_to_cart_button:hover,
.add_to_cart_button:hover {
    background: var(--btn-primary-hover) !important; /* Keep - WooCommerce override needed */
    color: var(--btn-primary-text) !important; /* Keep - WooCommerce override needed */
    transform: translateY(-2px); /* Remove !important - not needed */
    box-shadow: 0 8px 25px rgba(191, 161, 90, 0.3); /* Remove !important - not needed */
}

/* Responsive Design */
@media (max-width: 768px) {
    .btn, .button, button {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .btn-lg, .button-lg {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .luxury-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .btn, .button, button {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .luxury-button {
        padding: 0.875rem 1.75rem;
        font-size: 0.9rem;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .btn-primary, .button-primary {
        background: #000 !important;
        color: #fff !important;
        border-color: #000 !important;
    }
    
    .btn-secondary, .button-secondary {
        background: #fff !important;
        color: #000 !important;
        border-color: #000 !important;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .btn, .button, button {
        transition: none;
    }
    
    .btn:hover, .button:hover, button:hover {
        transform: none;
    }
}
