/* css/main.css */
/* Consolidated CSS styles for The Laser Gurus website */
/* Merged from all existing CSS files for better maintainability */

/* ===========================================
   IMPORTS & FONTS
   =========================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Open+Sans:wght@400;600&display=swap');

/* ===========================================
   CSS VARIABLES & ROOT SETTINGS
   =========================================== */
:root {
    --header-height: 70px;
    --laser-cyan: #00d1ff;
    --dark-bg: #0a0a0a;
    --card-bg: #1a1a1a;
    --border-color: #333;
    
    /* Theme Variables */
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #999999;
    --accent-primary: #00d1ff;
    --accent-secondary: #0099cc;
}

/* ===========================================
   BASE STYLES
   =========================================== */
body {
    margin: 0;
    background-color: var(--dark-bg);
    font-family: 'Montserrat', sans-serif;
    color: var(--text-primary);
    overflow-x: hidden;
}

canvas {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
}


/* Blog post specific styles for settings guide - dark theme compatible */
.settings-tip {
    background-color: rgba(59, 130, 246, 0.1);
    border-left: 4px solid rgb(59 130 246);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
    color: #e2e8f0;
}

.parameter-box {
    background-color: rgba(31, 41, 55, 0.8);
    border-left: 4px solid rgb(75 85 99);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
    color: #e2e8f0;
}

.parameter-box.power {
    border-color: rgb(248 113 113);
}

.parameter-box.speed {
    border-color: rgb(74 222 128);
}

.parameter-box.passes {
    border-color: rgb(96 165 250);
}

.parameter-box h3 {
    color: #f1f5f9;
}

.material-section {
    background-color: rgba(31, 41, 55, 0.8);
    border: 1px solid rgb(75 85 99);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    color: #e2e8f0;
}

.material-section h3, .material-section h4 {
    color: #f1f5f9;
}

.pro-tip {
    background-color: rgba(52, 211, 153, 0.1);
    border-left: 4px solid rgb(52 211 153);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
    color: #e2e8f0;
}

.pro-tip h4 {
    color: #10b981;
}

.warning-box {
    background-color: rgba(248, 113, 113, 0.1);
    border-left: 4px solid rgb(248 113 113);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
    color: #e2e8f0;
}

.warning-box h4 {
    color: #f87171;
}

.section-divider {
    width: 100%;
    height: 1px;
    background-color: rgb(75 85 99);
    margin: 2rem 0;
}

.icon-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.icon-header h2, .icon-header h4 {
    color: #f1f5f9;
}

.section-icon {
    width: 2rem;
    height: 2rem;
    background-color: rgb(59 130 246);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* ===========================================
   TYPOGRAPHY
   =========================================== */
h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--text-primary); /* White for dark theme */
}


/* Blog target theme typography */
.post-content h1 {
    font-size: 2.25rem; /* text-4xl */
    line-height: 1.25;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.post-content h2 {
    font-size: 1.875rem; /* text-3xl */
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--border-primary);
    padding-bottom: 0.5rem;
    color: var(--text-primary);
}

.post-content h3 {
    font-size: 1.5rem; /* text-2xl */
    font-weight: 600;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.post-content h4 {
    font-size: 1.25rem; /* text-xl */
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

/* Brand text styling */
.brand-text {
    color: #4299e1; /* Tailwind blue-400 */
}

.gradient-text {
    background: linear-gradient(to right, #38bdf8, #818cf8);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===========================================
   HEADER & NAVIGATION
   =========================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background-color: rgba(10, 10, 10, 0.75);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(51, 51, 51, 0.5);
    display: flex;
    align-items: center;
}

.header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.header-title {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 700;
    text-decoration: none;
    color: var(--text-primary);
}

.header-etsy-link {
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--laser-cyan);
    border: 1px solid var(--laser-cyan);
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.header-etsy-link:hover {
    background-color: var(--laser-cyan);
    color: var(--dark-bg);
}


/* ===========================================
   CARDS & CONTAINERS
   =========================================== */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 209, 255, 0.2);
}



/* ===========================================
   SECTIONS & LAYOUTS
   =========================================== */
.section {
    padding: 4rem 2rem;
    background-color: var(--dark-bg);
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    color: var(--laser-cyan);
}

.section-subtitle {
    text-align: center;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    max-width: 600px;
    margin: 0 auto 3rem auto;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Post containers */
.post-container {
    max-width: 800px;
    margin: auto;
}


/* ===========================================
   HERO SECTION
   =========================================== */
.hero-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 80vh;
    text-align: center;
    padding: 20px;
    box-sizing: border-box; 
    padding-top: var(--header-height);
}

.hero-container h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(0, 209, 255, 0.5);
}

.hero-container p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    max-width: 600px;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

/* ===========================================
   BUTTONS
   =========================================== */
.cta-button {
    display: inline-block; 
    padding: 15px 35px; 
    font-size: 1rem; 
    font-weight: 700; 
    color: var(--text-primary); 
    background-color: transparent; 
    border: 2px solid var(--laser-cyan); 
    border-radius: 8px; 
    text-decoration: none; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    transition: all 0.3s ease;
}

.cta-button:hover, .cta-button:focus {
    background-color: var(--laser-cyan); 
    color: var(--dark-bg); 
    transform: translateY(-3px); 
    box-shadow: 0 4px 15px rgba(0, 209, 255, 0.4);
}

.etsy-cta-button {
    display: inline-block;
    padding: 15px 35px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    background-color: transparent;
    border: 2px solid var(--laser-cyan);
    border-radius: 8px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.etsy-cta-button:hover {
    color: var(--dark-bg);
    background-color: var(--laser-cyan);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 209, 255, 0.4);
}

/* Tool-specific button styles */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    color: white;
    background-color: #4b5563; /* gray-600 */
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn:hover {
    background-color: #374151; /* gray-700 */
    transform: translateY(-1px);
}

.btn-primary {
    background-color: #00d1ff; /* laser-cyan */
    color: #0a0a0a; /* dark-bg */
    border: 2px solid #00d1ff;
}

.btn-primary:hover {
    background-color: #0099cc;
    border-color: #0099cc;
}

.btn-secondary {
    background-color: #10b981; /* emerald-500 */
    color: white;
}

.btn-secondary:hover {
    background-color: #059669; /* emerald-600 */
}

.btn:focus {
    outline: 2px solid #00d1ff;
    outline-offset: 2px;
}

/* ===========================================
   CAROUSEL
   =========================================== */
.carousel-wrapper { 
    position: relative; 
    max-width: 1200px; 
    margin: 0 auto; 
}

.carousel-viewport { 
    overflow: hidden; 
    margin-bottom: 2.5rem; 
}

.posts-container, .tools-container { 
    display: flex; 
    gap: 2rem; 
    transition: transform 0.5s ease-in-out; 
}

.blog-card { 
    width: calc(100% / 3 - (2rem * 2 / 3)); 
}

.blog-card img { 
    width: 100%; 
    height: 200px; 
    object-fit: cover; 
}

.blog-card-content { 
    padding: 1.5rem; 
}

.blog-card-content h3 { 
    margin-top: 0; 
    font-size: 1.25rem;
    color: var(--text-primary);
}

.blog-card-content p { 
    font-size: 0.95rem; 
    line-height: 1.5; 
    color: var(--text-secondary); 
}

.read-more-link { 
    display: inline-block; 
    margin-top: 1rem; 
    color: var(--laser-cyan); 
    text-decoration: none; 
    font-weight: 700; 
}

.read-more-link:hover { 
    text-decoration: underline; 
}

/* Tools Section */
.tools-section { 
    border-top: 1px solid var(--divider-primary); 
}

.tool-card { 
    width: calc(100% / 3 - (2rem * 2 / 3)); 
}

.tool-card img { 
    width: 100%; 
    height: 200px; 
    object-fit: cover; 
}

.tool-card-content { 
    padding: 1.5rem; 
}

.tool-card-content h3 { 
    margin-top: 0; 
    font-size: 1.25rem; 
}

.tool-card-content p { 
    font-size: 0.95rem; 
    line-height: 1.5; 
    color: var(--text-secondary); 
}

.tool-button { 
    display: inline-block; 
    margin-top: 1rem; 
    color: var(--laser-cyan); 
    text-decoration: none; 
    font-weight: 700; 
}

.tool-button:hover { 
    text-decoration: underline; 
}

/* Carousel Navigation */
.carousel-nav { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 1rem; 
}

.carousel-button { 
    background-color: transparent; 
    border: 1px solid var(--laser-cyan); 
    color: var(--laser-cyan); 
    border-radius: 50%; 
    width: 40px; 
    height: 40px; 
    cursor: pointer; 
    font-size: 24px; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    transition: background-color 0.3s ease; 
}

.carousel-button:hover:not(:disabled) { 
    background-color: var(--laser-cyan); 
    color: var(--dark-bg); 
}

.carousel-button:disabled { 
    opacity: 0.4; 
    cursor: not-allowed; 
    border-color: var(--disabled-border); 
    color: var(--text-muted); 
}

.pagination-dots { 
    display: flex; 
    gap: 0.75rem; 
}

.dot { 
    width: 12px; 
    height: 12px; 
    border-radius: 50%; 
    background-color: var(--disabled-bg); 
    cursor: pointer; 
    transition: background-color 0.3s ease; 
}

.dot:hover { 
    background-color: var(--hover-bg-secondary); 
}

.dot.active { 
    background-color: var(--laser-cyan); 
}

/* ===========================================
   FORMS & INPUTS
   =========================================== */
.input-field {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #4b5563; /* gray-600 */
    border-radius: 0.5rem;
    background-color: #ffffff; /* white */
    color: var(--text-primary); /* adaptable primary text */
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-field:focus {
    outline: none;
    border-color: #00d1ff; /* laser-cyan */
    box-shadow: 0 0 0 3px rgba(0, 209, 255, 0.1);
}

.input-field::placeholder {
    color: #6b7280; /* gray-500 - darker for visibility on white */
}

.input-field:focus {
    outline: 2px solid #00d1ff;
    outline-offset: 2px;
}

/* Select dropdown styles */
select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

select.input-field {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

select optgroup {
    font-weight: 600;
    color: #9ca3af;
    background-color: #1f2937;
    padding: 0.5rem 0;
}

select option {
    color: #e5e7eb;
    background-color: #111827;
    padding: 0.5rem;
}

select:focus,
button:focus {
    outline: none;
    ring: 2px;
    ring-color: rgba(14, 165, 233, 0.5);
    border-color: #0ea5e9;
}

/* ===========================================
   CHATBOT SECTION
   =========================================== */
.chatbot-section { 
    border-top: 1px solid var(--divider-primary); 
}

.chatbot-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto 3rem auto;
}

.chatbot-title-area {
    text-align: left;
}

.chatbot-container { 
    max-width: 800px;
    margin: 0 auto; 
    background-color: var(--card-bg); 
    border: 1px solid var(--border-color); 
    border-radius: 8px; 
    padding: 2rem; 
}

.chatbot-robot {
    display: flex;
    justify-content: center;
    align-items: center;
}

.robot-graphic {
    width: 200px;
    height: auto;
    max-width: 100%;
}

/* Dark theme: keep robot white/cyan */
.robot-graphic {
    filter: none;
}

/* Light theme: make robot black for contrast */
.light-theme .robot-graphic {
    filter: invert(1) brightness(0);
}

.chatbot-input-area { 
    display: flex; 
    gap: 1rem; 
    margin-bottom: 1.5rem; 
}

#chatbot-input { 
    flex-grow: 1; 
    background-color: var(--dark-bg); 
    border: 1px solid var(--border-color); 
    border-radius: 8px; 
    padding: 15px; 
    color: var(--text-primary); 
    font-size: 1rem; 
    font-family: 'Montserrat', sans-serif; 
    transition: border-color 0.3s ease, box-shadow 0.3s ease; 
}

#chatbot-input:focus { 
    outline: none; 
    border-color: var(--laser-cyan); 
    box-shadow: 0 0 10px rgba(0, 209, 255, 0.3); 
}

#chatbot-ask-btn { 
    padding: 0 25px; 
    font-size: 1rem; 
    font-weight: 700; 
    color: var(--dark-bg); 
    background-color: var(--laser-cyan); 
    border: 2px solid var(--laser-cyan); 
    border-radius: 8px; 
    cursor: pointer; 
    transition: background-color 0.3s ease, color 0.3s ease; 
}

#chatbot-ask-btn:hover { 
    background-color: transparent; 
    color: var(--laser-cyan); 
}

#chatbot-ask-btn:disabled { 
    background-color: var(--disabled-bg); 
    border-color: var(--disabled-border); 
    color: var(--disabled-text); 
    cursor: not-allowed; 
}

#chatbot-response-area { 
    min-height: 150px; 
    background-color: var(--dark-bg); 
    border: 1px solid var(--border-color); 
    border-radius: 8px; 
    padding: 1.5rem; 
    color: var(--text-secondary); 
    line-height: 1.6; 
    font-size: 1rem; 
    white-space: pre-wrap; 
}

.ai-response-box {
    min-height: 100px;
    max-height: 300px;
    overflow-y: auto;
    white-space: pre-wrap; /* Preserves formatting from AI response */
    scrollbar-width: thin;
    scrollbar-color: #6b7280 #374151;
}

.ai-response-box::-webkit-scrollbar {
    width: 8px;
}

.ai-response-box::-webkit-scrollbar-track {
    background: #374151;
    border-radius: 4px;
}

.ai-response-box::-webkit-scrollbar-thumb {
    background: #6b7280;
    border-radius: 4px;
}

.ai-response-box::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* ===========================================
   ETSY CTA SECTION
   =========================================== */
.etsy-cta-section { 
    border-top: 1px solid var(--divider-primary); 
}

.etsy-cta-container {
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 3rem; 
    align-items: center; 
    max-width: 1200px; 
    margin: 0 auto; 
    background-color: var(--card-bg); 
    padding: 3rem; 
    border-radius: 8px; 
    border: 1px solid var(--border-color);
}

.etsy-cta-content h2 { 
    font-size: clamp(1.8rem, 4vw, 2.5rem); 
    margin-top: 0; 
    margin-bottom: 1rem; 
}

.etsy-cta-content p { 
    color: var(--text-secondary); 
    line-height: 1.6; 
    margin-bottom: 2rem; 
}

.etsy-cta-list { 
    list-style: none; 
    padding: 0; 
    margin: 0 0 2.5rem 0; 
}

.etsy-cta-list li { 
    display: flex; 
    align-items: center; 
    gap: 0.75rem; 
    margin-bottom: 1rem; 
    color: var(--text-secondary);
}

.etsy-cta-list li::before { 
    content: '✓'; 
    color: var(--laser-cyan); 
    font-size: 1.2rem; 
    font-weight: 700; 
}

.etsy-image-collage { 
    position: relative; 
    min-height: 350px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

.etsy-image-collage a {
    position: absolute;
    width: 65%;
    max-width: 300px;
    transition: transform 0.3s ease;
}

.etsy-image-collage img {
    width: 100%;
    border-radius: 8px;
    border: 3px solid var(--border-color);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.etsy-image-collage .img1 {
    transform: translateX(-50%) translateY(-5%) rotate(-15deg);
    z-index: 1;
}

.etsy-image-collage .img2 {
    transform: translateX(50%) translateY(-5%) rotate(15deg);
    z-index: 1;
}

.etsy-image-collage .img3 {
    transform: translateY(15%) rotate(2deg) scale(1.05);
    z-index: 2;
}

.etsy-image-collage a:hover {
    z-index: 10;
}

.etsy-image-collage .img1:hover {
    transform: translateX(-50%) translateY(-5%) rotate(-15deg) scale(1.1);
}

.etsy-image-collage .img2:hover {
    transform: translateX(50%) translateY(-5%) rotate(15deg) scale(1.1);
}

.etsy-image-collage .img3:hover {
    transform: translateY(15%) rotate(2deg) scale(1.1);
}

/* Overlapping Collage Layout Styles */
.collage-img {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    border: 4px solid #fff;
    border-radius: 0.75rem; /* rounded-xl */
    position: absolute;
}

.collage-img:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    z-index: 20 !important;
}

/* ===========================================
   NEWSLETTER SECTION
   =========================================== */
.newsletter-signup {
    position: relative;
    padding: 5rem 0; /* py-20 */
    text-align: center;
    color: white;
    background-color: #111827; /* bg-gray-900 */
}

.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.newsletter-content {
    position: relative;
    z-index: 10;
}

.newsletter-title {
    margin-bottom: 1rem; /* mb-4 */
    font-size: 2.25rem; /* text-4xl */
    font-weight: 700; /* font-bold */
}

.newsletter-description {
    margin-bottom: 2rem; /* mb-8 */
}

.newsletter-form {
    display: flex;
    justify-content: center;
}

.newsletter-input {
    padding: 0.75rem; /* p-3 */
    color: #1f2937; /* text-gray-800 */
    border-top-left-radius: 0.5rem; /* rounded-l-lg */
    border-bottom-left-radius: 0.5rem;
    border: none;
    outline: none;
}

.newsletter-button {
    padding: 0.75rem 1.5rem; /* px-6 py-3 */
    font-weight: 700; /* font-bold */
    color: white;
    background-color: #3b82f6; /* bg-blue-500 */
    border-top-right-radius: 0.5rem; /* rounded-r-lg */
    border-bottom-right-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.newsletter-button:hover {
    background-color: #2563eb; /* hover:bg-blue-600 */
}

/* Newsletter Section (Original Style) */
.signup-section { 
    /* Removed border-top to prevent double border with footer */
    margin-top: 4rem;
    padding-top: 2rem;
    background: transparent !important;
}

.signup-container { 
    max-width: 600px; 
    margin: 4rem auto 0 auto; 
    text-align: center;
    background: transparent !important;
    padding: 2rem;
    border-radius: 16px;
}

.signup-form { 
    display: flex; 
    flex-direction: column; 
    gap: 1rem; 
}

#signup-email { 
    flex-grow: 1; 
    background-color: var(--card-bg); 
    border: 1px solid var(--border-color); 
    border-radius: 8px; 
    padding: 15px; 
    color: var(--text-primary); 
    font-size: 1rem; 
    font-family: 'Montserrat', sans-serif; 
    text-align: center; 
    transition: border-color 0.3s ease, box-shadow 0.3s ease; 
}

#signup-email:focus { 
    outline: none; 
    border-color: var(--laser-cyan); 
    box-shadow: 0 0 10px rgba(0, 209, 255, 0.3); 
}

#signup-button { 
    padding: 15px 30px; 
    font-size: 1rem; 
    font-weight: 700; 
    color: var(--dark-bg); 
    background-color: var(--laser-cyan); 
    border: 2px solid var(--laser-cyan); 
    border-radius: 8px; 
    cursor: pointer; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    transition: background-color 0.3s ease, color 0.3s ease; 
}

#signup-button:hover { 
    background-color: transparent; 
    color: var(--laser-cyan); 
}

/* ===========================================
   BLOG THEME SYSTEM
   =========================================== */

/* Unified Theme Support for Blog Posts */
.light-theme {
    background-color: #f7fafc;
    color: #1a202c;
}

.light-theme body {
    background-color: #f7fafc;
    color: #1a202c;
}

/* Dark theme support (default) */
body {
    background-color: var(--dark-bg);
    color: var(--text-primary);
}



/* Navigation for Themes */
.nav-light {
    background-color: rgba(255, 255, 255, 0.75);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e0e0e0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a202c;
    text-decoration: none;
}

.nav-light .nav-brand {
    color: #1a202c;
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-link {
    color: #4a5568;
    text-decoration: none;
    transition: color 0.2s;
}

.nav-link:hover {
    color: #4299e1;
}

.nav-light .nav-link {
    color: #4a5568;
    transition: color 0.2s;
}

.nav-light .nav-link:hover {
    color: #4299e1;
}

.nav-cta {
    color: #00b8d4;
    background-color: transparent;
    border: 1px solid #00b8d4;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background-color: #00b8d4;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 184, 212, 0.3);
}

.nav-light .nav-cta {
    background-color: #4299e1;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s;
}

.nav-light .nav-cta:hover {
    background-color: #2b6cb0;
}



/* ===========================================
   FOOTER
   =========================================== */
/* Old custom footer CSS removed - now using Tailwind-based components */


/* ===========================================
   CONTENT STYLES
   =========================================== */
.post-content p {
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

.post-content strong {
    color: #2d3748; /* gray-800 */
    font-weight: 600;
}

.post-content a {
    color: #4299e1; /* blue-400 */
    text-decoration: underline;
}

.post-content a:hover {
    color: #2b6cb0; /* blue-600 */
}


/* ===========================================
   LISTS
   =========================================== */
.post-content ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.post-content ol {
    list-style-type: decimal;
    margin-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}


/* Checklists */
.post-content .checklist {
    list-style-type: none;
    padding-left: 0;
}

.post-content .checklist li {
    display: flex;
    align-items: center;
}

.post-content .checklist li::before {
    content: '⬜️';
    margin-right: 0.75rem;
    font-size: 1rem;
}

/* ===========================================
   TABLES
   =========================================== */
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.post-content th, .post-content td {
    border: 1px solid #e2e8f0; /* gray-300 */
    padding: 0.75rem;
    text-align: left;
}

.post-content th {
    background-color: #edf2f7; /* gray-200 */
    font-weight: 600;
}


/* ===========================================
   SPECIAL CONTENT BOXES
   =========================================== */

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

/* ===========================================
   TOOL-SPECIFIC STYLES
   =========================================== */

/* Settings Calculator */
#results {
    transition: opacity 0.3s ease-in-out;
}

.result-card {
    transition: all 0.3s ease;
    background-color: #1f2937; /* gray-800 */
    border: 1px solid #374151; /* gray-700 */
    border-radius: 0.5rem;
    padding: 1rem;
}

.result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(14, 165, 233, 0.2);
}

.result-positive {
    background-color: rgba(16, 185, 129, 0.1); /* emerald with opacity */
    border-color: #10b981; /* emerald-500 */
}

.result-negative {
    background-color: rgba(239, 68, 68, 0.1); /* red with opacity */
    border-color: #ef4444; /* red-500 */
}

.result-neutral {
    background-color: rgba(14, 165, 233, 0.1); /* sky with opacity */
    border-color: #0ea5e9; /* sky-500 */
}

#calculateBtn {
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(14, 165, 233, 0.2);
}

#calculateBtn:hover {
    box-shadow: 0 10px 15px -3px rgba(14, 165, 233, 0.3);
}

#calculateBtn.loading {
    position: relative;
    color: transparent;
}

#calculateBtn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    border-color: #ffffff transparent #ffffff transparent;
    animation: loading 1.2s linear infinite;
}

/* Visualizer Tool */
.engraved-element {
    /* Base color for engraving on light wood (maple, pine) */
    color: rgba(0, 0, 0, 0.75); 
    /* Start invisible, will be faded in by JS */
    opacity: 0;
    /* Smooth transitions for various properties */
    transition: opacity 0.2s ease-in-out, border 0.2s ease-in-out;
    /* Absolute positioning allows for drag-and-drop */
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: center center;
    cursor: grab; /* Indicates the element is draggable */
    /* Transparent border that appears on hover/selection */
    border: 2px dashed transparent;
    padding: 5px; 
    border-radius: 5px;
}

.engraved-element.active-element {
    border-color: rgba(14, 165, 233, 0.7); /* Sky blue dashed border to match site theme */
    z-index: 10; /* Ensure the active element is on top */
}

/* Material-specific text colors for realistic laser engraving */
.maple-engraved,
.pine-engraved {
    color: rgba(0, 0, 0, 0.6) !important;
}

.oak-engraved,
.cherry-engraved {
    color: rgba(0, 0, 0, 0.85) !important;
}

.walnut-engraved {
    color: rgba(0, 0, 0, 0.95) !important;
}

.wood-texture, .slate-texture {
    background-size: cover;
    background-position: center center;
}

/* Wood Materials */
.bg-maple {
    background-image: url('/images/materials/maple.png');
}

.bg-walnut {
    background-image: url('/images/materials/walnut.png');
}

.bg-pine {
    background-image: url('/images/materials/pine.png');
}

.bg-oak {
    background-image: url('/images/materials/oak.png');
}

.bg-cherry {
    background-image: url('/images/materials/cherry.png');
}

/* Slate Materials */
.bg-circle-slate {
    background-image: url('/images/materials/circle-slate.png');
}

.bg-square-slate {
    background-image: url('/images/materials/square-slate.png');
}

.bg-circle-patch {
    background-image: url('/images/materials/circle-patch.png');
}

.bg-square-patch {
    background-image: url('/images/materials/square-patch.png');
}

.bg-oval-patch {
    background-image: url('/images/materials/oval-patch.png');
}

.slate-engraved {
    color: rgba(243, 244, 246, 0.7) !important; /* 70% opacity - more transparent for subtle slate etching */
}

.patch-engraved {
    color: rgba(0, 0, 0, 0.6) !important; /* 60% opacity black for light patch materials */
}

.material-btn {
    position: relative;
}

.material-btn.text-white {
    color: rgba(255, 255, 255, 0.75) !important; /* 75% opacity for more subtle tile effect */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.material-btn.text-black {
    color: rgba(0, 0, 0, 0.8) !important;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.3);
}

.graphic-wrapper svg {
    width: 100px; /* Base size for SVG, will be scaled with JS */
    height: 100px;
    fill: currentColor !important; /* Inherits the engraving color */
    pointer-events: none; /* Prevents the SVG from interfering with mouse events */
}

.graphic-wrapper svg *,
.engraved-element svg,
.engraved-element svg * {
    fill: currentColor !important;
}

/* Material-specific SVG styling */
.maple-engraved svg,
.maple-engraved svg *,
.pine-engraved svg,
.pine-engraved svg * {
    fill: rgba(0, 0, 0, 0.6) !important;
}

.oak-engraved svg,
.oak-engraved svg *,
.cherry-engraved svg,
.cherry-engraved svg * {
    fill: rgba(0, 0, 0, 0.85) !important;
}

.walnut-engraved svg,
.walnut-engraved svg * {
    fill: rgba(0, 0, 0, 0.95) !important;
}

.slate-engraved svg,
.slate-engraved svg * {
    fill: rgba(243, 244, 246, 0.7) !important;
}

.patch-engraved svg,
.patch-engraved svg * {
    fill: rgba(0, 0, 0, 0.6) !important;
}

/* Custom Range Slider Styling */
input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]:focus {
    outline: none;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: #4b5563;
    border-radius: 2px;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #0ea5e9; /* Sky blue to match site theme */
    cursor: pointer;
    margin-top: -6px;
}

input[type=range]::-moz-range-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: #4b5563;
    border-radius: 2px;
    border: none;
}

input[type=range]::-moz-range-thumb {
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: #0ea5e9;
    cursor: pointer;
    border: none;
}

/* Project Planner Tool */
.section-card {
    background-color: #111827; /* gray-900 */
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    border: 1px solid #374151; /* gray-700 */
}

.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    font-weight: bold;
    color: #9ca3af; /* gray-400 */
    background-color: #374151; /* gray-700 */
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.step-indicator.active {
    background-color: #00d1ff; /* laser-cyan */
    color: #0a0a0a; /* dark-bg */
    border-color: #0099cc;
    box-shadow: 0 0 20px rgba(0, 209, 255, 0.3);
}

.step-indicator.completed {
    background-color: #10b981; /* emerald-500 */
    color: white;
    border-color: #059669; /* emerald-600 */
}

.help-text {
    font-size: 0.9rem;
    color: #9ca3af; /* gray-400 */
    background-color: #1f2937; /* gray-800 */
    padding: 0.75rem;
    border-radius: 0.5rem;
    border-left: 4px solid #00d1ff; /* laser-cyan */
    margin-bottom: 0.5rem;
}

.chart-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    height: 300px;
    max-height: 400px;
    background-color: #1f2937; /* gray-800 */
    border-radius: 0.5rem;
    padding: 1rem;
    border: 1px solid #374151; /* gray-700 */
}

.form-section {
    background-color: #1f2937; /* gray-800 */
    border: 1px solid #374151; /* gray-700 */
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.disclaimer {
    border-left: 4px solid #fbbf24;
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.1) 0%, rgba(31, 41, 55, 0.5) 100%);
}

/* ===========================================
   ANIMATIONS & LOADING STATES
   =========================================== */
@keyframes loading {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loading {
    position: relative;
    color: transparent;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1rem;
    height: 1rem;
    margin: -0.5rem 0 0 -0.5rem;
    border: 2px solid #374151;
    border-top-color: #00d1ff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.result-card .icon-container {
    transition: transform 0.3s ease;
}

.result-card:hover .icon-container {
    transform: scale(1.1);
}

/* ===========================================
   RESPONSIVE DESIGN
   =========================================== */
@media (max-width: 992px) { 
    .blog-card { 
        width: calc(100% / 2 - (2rem * 1 / 2)); 
    } 
    
    .tool-card { 
        width: calc(100% / 2 - (2rem * 1 / 2)); 
    }
    
    .chatbot-header {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .chatbot-title-area {
        text-align: center;
    }
    
    .robot-graphic {
        width: 150px;
    }
    
    .etsy-cta-container { 
        grid-template-columns: 1fr 1fr; 
    }
    
    .chart-container { 
        height: 350px; 
    }
}

@media (max-width: 768px) { 
    .blog-card { 
        width: 100%; 
    } 
    
    .tool-card { 
        width: 100%; 
    }
    
    
    .grid.grid-cols-1.md\\:grid-cols-2.lg\\:grid-cols-4 {
        gap: 1rem;
    }
    
    select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .result-card {
        padding: 1rem;
    }
    
    .result-card h3 {
        font-size: 1rem;
    }
    
    .result-card p:first-of-type {
        font-size: 1.5rem;
    }
    
    .engraved-element {
        /* Larger touch targets on mobile */
        padding: 8px;
        border-width: 3px;
    }
    
    input[type=range]::-webkit-slider-thumb {
        height: 20px;
        width: 20px;
        margin-top: -8px;
    }
    
    input[type=range]::-moz-range-thumb {
        height: 20px;
        width: 20px;
    }
    
    input[type=range]::-webkit-slider-runnable-track {
        height: 6px;
    }
    
    input[type=range]::-moz-range-track {
        height: 6px;
    }
    
    .section-card {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .step-indicator {
        width: 2rem;
        height: 2rem;
        font-size: 0.875rem;
    }
    
    .chart-container {
        height: 250px;
        padding: 0.5rem;
    }
    
    .collage-img {
        border-width: 2px; /* Thinner borders on mobile */
    }
}

@media (min-width: 600px) { 
    .signup-form { 
        flex-direction: row; 
    } 
}

@media(min-width: 992px) { 
    .etsy-cta-container { 
        grid-template-columns: 1fr 1fr; 
    } 
}

/* ===========================================
   SMOOTH SCROLLING
   =========================================== */
html {
    scroll-behavior: smooth;
}

/* ===========================================
   PRINT STYLES
   =========================================== */
@media print {
    
    .section-card {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .btn {
        display: none;
    }
    
    nav, footer, .help-text {
        display: none;
    }
}