/**
 * Halus Stories - Shared Styles
 * AI Jewelry Designer Application
 */

:root {
    /* Halus Stories Brand Colors */
    --halus-text: #1c1d1d;
    --halus-bg: #F7F7F1;
    --halus-navy: #0A2844;
    --halus-accent: #557b97;
    --halus-border: #e8e9eb;
    --halus-gold: #C9A962;

    /* Typography */
    --font-body: 'Lato', sans-serif;
    --font-heading: 'Crimson Text', serif;
}

/* Ensure all containers respect box-sizing */
*, *:before, *:after {
    box-sizing: border-box;
}

/* Ensure proper sizing within iframe */
html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
}

body {
    font-family: var(--font-body);
    color: var(--halus-text);
    background: var(--halus-bg);
    line-height: 1.6;
    -webkit-overflow-scrolling: touch;
    letter-spacing: 0.01em;
}

.header,
.header-content,
.logo {
    display: none;
}

/* Hero Section (full page) */
.hero-section {
    background: linear-gradient(135deg, var(--halus-navy) 0%, #153450 100%);
    padding: 4rem 1rem 6rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('path/to/pattern.png') repeat;
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 300;
    color: white;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Design Section */
.design-section {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    box-sizing: border-box;
}

.design-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 2.5rem;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
}

.design-card h3 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--halus-navy);
}

/* Hero Mini (compact header) */
.hero-mini {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(85, 123, 151, 0.1) 0%, rgba(85, 123, 151, 0.05) 100%);
    border-radius: 8px;
    border: 1px solid var(--halus-border);
}

.hero-mini h1 {
    font-family: var(--font-heading);
    color: var(--halus-navy);
    font-size: 1.75rem;
    font-weight: 400;
    margin: 0 0 0.5rem;
    letter-spacing: 0;
}

.hero-mini p {
    color: var(--halus-text);
    font-size: 1rem;
    margin: 0;
    opacity: 0.9;
}

/* Language Selector */
.lang-selector {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--halus-border);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--halus-text);
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.6;
}

.lang-btn:hover {
    opacity: 0.9;
    border-color: var(--halus-accent);
}

.lang-btn.active {
    background: var(--halus-navy);
    color: white;
    border-color: var(--halus-navy);
    opacity: 1;
}

/* Design Builder */
.design-builder {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid var(--halus-accent);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.design-builder h2 {
    font-family: var(--font-heading);
    color: var(--halus-navy);
    font-size: 1.3rem;
    font-weight: 400;
    margin: 0 0 0.5rem;
    text-align: center;
}

.builder-description {
    text-align: center;
    margin-bottom: 1.5rem;
}

.builder-description p {
    color: var(--halus-text);
    margin: 0;
    opacity: 0.8;
}

/* Structured Input */
.structured-input {
    background: var(--halus-bg);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--halus-accent);
}

/* Advanced Toggle */
.advanced-toggle {
    margin-top: 1.5rem;
    text-align: center;
}

.toggle-btn {
    background: none;
    border: 1px solid var(--halus-border);
    padding: 0.8rem 1.2rem;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--halus-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.toggle-btn:hover {
    background: rgba(85, 123, 151, 0.05);
    border-color: var(--halus-accent);
}

.toggle-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.toggle-btn.active .toggle-icon {
    transform: rotate(180deg);
}

/* Advanced Section */
.advanced-section {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(85, 123, 151, 0.02);
    border: 1px solid var(--halus-border);
    border-radius: 8px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 300px;
    }
}

.advanced-header {
    margin-bottom: 1rem;
}

.advanced-header h3 {
    color: var(--halus-navy);
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
}

.advanced-header p {
    color: var(--halus-text);
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.8;
}

/* Benefits Preview */
.benefits-preview {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.benefit-item {
    background: rgba(85, 123, 151, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--halus-navy);
    font-weight: 500;
}

/* Results Header */
.results-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(85, 123, 151, 0.05) 0%, rgba(85, 123, 151, 0.1) 100%);
    border-radius: 8px;
    border-left: 4px solid var(--halus-accent);
}

.results-header h2 {
    font-family: var(--font-heading);
    color: var(--halus-navy);
    font-size: 1.4rem;
    font-weight: 400;
    margin: 0 0 0.5rem;
}

.results-header p {
    color: var(--halus-text);
    margin: 0;
    opacity: 0.9;
}

/* Description Textarea */
.description-area {
    width: 100%;
    padding: 1.2rem;
    border: 2px solid var(--halus-border);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-family: var(--font-body);
    min-height: 150px;
    resize: vertical;
    box-sizing: border-box;
    background-color: white;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.description-area:focus {
    outline: none;
    border-color: var(--halus-accent);
    box-shadow: 0 0 0 3px rgba(85, 123, 151, 0.1);
}

/* Generate Button */
.generate-btn {
    background: var(--halus-navy);
    color: white;
    border: none;
    padding: 1.2rem 2.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    width: 100%;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.generate-btn:hover {
    box-shadow: 0 0 20px rgba(201, 169, 98, 0.5), 0 0 40px rgba(201, 169, 98, 0.3);
    transform: translateY(-2px);
}

.generate-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.generate-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Disclaimer */
.disclaimer {
    background-color: rgba(10, 33, 51, 0.05);
    border: 1px solid var(--halus-border);
    padding: 1.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    line-height: 1.6;
    border-radius: 4px;
}

.disclaimer ul {
    color: var(--halus-text);
}

.disclaimer li {
    margin-bottom: 0.5rem;
}

.disclaimer li:last-child {
    margin-bottom: 0;
}

/* Spinner */
.spinner {
    display: none;
    width: 100%;
    padding: 3rem 0;
    margin: 2rem 0;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.spinner.active {
    display: flex;
}

/* 3-dot loading animation */
.spinner-circle {
    display: flex;
    gap: 8px;
    margin-bottom: 0.5rem;
}

.spinner-circle::before,
.spinner-circle::after,
.spinner-circle span {
    content: '';
    width: 12px;
    height: 12px;
    background: var(--halus-gold);
    border-radius: 50%;
    animation: bounce 1.4s ease-in-out infinite both;
}

.spinner-circle::before {
    animation-delay: -0.32s;
}

.spinner-circle span {
    animation-delay: -0.16s;
}

.spinner-circle::after {
    animation-delay: 0s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.spinner-text {
    margin-top: 1rem;
    color: var(--halus-navy);
    font-size: 0.95rem;
    font-weight: 400;
    transition: opacity 0.2s ease;
    text-align: center;
    min-height: 1.5em;
}

/* Result Container */
.result-container {
    display: none;
    margin: 2rem 0;
    padding: 0;
}

.result-container.active {
    display: block;
}

/* Design Image */
.design-image {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transition: transform 0.3s ease;
    display: block;
}

.design-image:hover {
    transform: scale(1.02);
}

.design-image-container {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.specifications {
    display: none;
}

/* Dialog Overlay */
.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(10, 33, 51, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.dialog-overlay.active {
    display: flex;
}

.dialog-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease-out;
}

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

.dialog-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.dialog-logo {
    height: 30px;
    width: auto;
}

.dialog-body {
    text-align: center;
}

.dialog-body h3 {
    color: var(--halus-navy);
    font-weight: 500;
    margin-bottom: 1rem;
}

.dialog-body p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.dialog-example {
    font-style: italic;
    background: var(--halus-bg);
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
}

.dialog-button {
    background: var(--halus-navy);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    margin-top: 1.5rem;
}

.dialog-button:hover {
    background-color: #153450;
}

/* Error Message */
.error-message {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    color: #856404;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
    display: none;
    animation: slideIn 0.3s ease-out;
    font-size: 0.9rem;
    position: relative;
}

.error-message.active {
    display: block;
}

.error-close {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #856404;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.2rem;
    opacity: 0.7;
}

.error-close:hover {
    opacity: 1;
}

/* Rate limit reached variant */
.error-message.limit-reached {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #6c5ce7;
    color: #2d3436;
    text-align: center;
    padding: 1.5rem;
}

.limit-reached-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.limit-reached-content strong {
    font-size: 1.1rem;
    color: #6c5ce7;
}

.limit-reached-content p {
    margin: 0;
    color: #636e72;
}

.limit-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #6c5ce7;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
}

.limit-contact-btn:hover {
    background: #5b4cdb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
}

.limit-contact-btn svg {
    flex-shrink: 0;
}

.error-overlay {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    color: #721c24;
}

.error-overlay p {
    margin: 0 0 0.5rem;
    font-weight: 500;
}

.error-overlay small {
    opacity: 0.8;
}

/* Example Section */
.example-section {
    margin: 2.5rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    border: 1px solid var(--halus-border);
}

.example-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

/* Interactive Example */
.interactive-example {
    position: relative;
    line-height: 1.8;
    font-size: 1.1rem;
    color: var(--halus-text);
}

.keyword {
    position: relative;
    display: inline-block;
    color: var(--halus-gold);
    font-weight: 600;
    cursor: pointer;
    padding: 0.2rem 0.1rem;
    border-bottom: 2px dotted var(--halus-gold);
    transition: all 0.3s ease;
    border-radius: 0;
}

.keyword:hover {
    background: rgba(201, 169, 98, 0.1);
    border-bottom-style: solid;
}

/* Pulse animation for first keyword to draw attention */
.keyword:first-of-type {
    animation: keywordPulse 2s ease-in-out 3;
}

@keyframes keywordPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
        background: rgba(201, 169, 98, 0.15);
    }
}

/* Popup */
.popup {
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    top: 100%;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 0.8rem;
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
    border: 1px solid var(--halus-border);
}

.popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.popup::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: white;
    border-left: 1px solid var(--halus-border);
    border-top: 1px solid var(--halus-border);
}

.popup-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.popup-item {
    padding: 0.75rem 1rem;
    color: var(--halus-text);
    font-size: 0.9rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.popup-item:hover {
    background: rgba(85, 123, 151, 0.1);
    color: var(--halus-navy);
}

/* Copy Button */
.copy-button {
    background: none;
    border: none;
    color: var(--halus-navy);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.copy-button:hover {
    background: rgba(85, 123, 151, 0.1);
}

.copy-button svg {
    width: 16px;
    height: 16px;
}

.copy-button.copied {
    background: var(--halus-navy);
    color: white;
}

/* Send Button Overlay */
.send-button-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(10, 33, 51, 0.9));
    padding: 2rem 1rem 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: flex;
    justify-content: center;
}

.design-image-container:hover .send-button-overlay {
    transform: translateY(0);
}

.send-button {
    background: white;
    color: var(--halus-navy);
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.send-button:hover {
    background: var(--halus-navy);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.send-button svg {
    width: 18px;
    height: 18px;
}

/* Carousel Container */
.jewelry-carousel {
    position: relative;
    max-width: 600px;
    margin: 0 auto 4rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    overflow: visible;
    padding-bottom: 1rem;
}

.carousel-container {
    overflow: hidden;
    border-radius: 12px;
}

.carousel-viewport {
    position: relative;
    width: 100%;
    height: 580px;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.carousel-slide {
    width: 33.333%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

.slide-header {
    padding: 1.5rem 1.5rem 1rem;
    text-align: center;
    background: linear-gradient(135deg, var(--halus-navy) 0%, #153450 100%);
    color: white;
}

.carousel-slide .slide-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.5px;
    color: #ffffff;
}

.slide-subtitle {
    font-size: 0.9rem;
    margin: 0.5rem 0 0;
    font-weight: 400;
    text-shadow: 0 1px 3px rgba(0,0,0,0.7);
    color: #ffffff;
    opacity: 0.95;
}

.slide-image-container {
    flex: 1;
    position: relative;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 350px;
}

.slide-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
    transition: transform 0.3s ease;
}

.slide-image:hover {
    transform: scale(1.05);
}

.slide-footer {
    padding: 1.25rem 1.5rem;
    background: white;
    border-top: 1px solid var(--halus-border);
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    bottom: -2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.9);
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(26, 33, 51, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--halus-navy);
    transform: scale(1.3);
    box-shadow: 0 0 0 2px rgba(26, 33, 51, 0.2);
}

.carousel-dot:hover {
    background: rgba(26, 33, 51, 0.6);
    transform: scale(1.1);
}

/* Carousel Arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10, 33, 51, 0.8);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.carousel-arrow:hover {
    background: var(--halus-navy);
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow.prev {
    left: 1rem;
}

.carousel-arrow.next {
    right: 1rem;
}

.carousel-arrow svg {
    width: 20px;
    height: 20px;
}

/* Send Button in Carousel */
.carousel-send-button {
    background: var(--halus-navy);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    width: 100%;
}

.carousel-send-button:hover {
    background: #153450;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 33, 51, 0.3);
}

.carousel-send-button svg {
    width: 18px;
    height: 18px;
}

/* Error State in Carousel */
.slide-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    color: #666;
}

.slide-error-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.slide-error h4 {
    margin: 0 0 0.5rem;
    color: var(--halus-navy);
}

.slide-error p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ==================== */
/* RESPONSIVE STYLES    */
/* ==================== */

@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 1rem 4rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .design-section {
        padding: 8px 0.5rem;
        max-width: 100%;
    }

    .design-card {
        padding: 1rem;
    }

    .description-area {
        min-height: 80px;
    }

    .generate-btn {
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
        width: 100%;
        margin: 1rem 0;
    }

    .specifications {
        padding: 1.5rem;
    }

    .designs-grid {
        width: 100%;
        margin: 0 0 1rem 0;
    }

    .hero-mini {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-mini h1 {
        font-size: 1.3rem;
    }

    .hero-mini p {
        font-size: 0.9rem;
    }

    .design-builder {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .structured-input {
        padding: 1rem;
    }

    .benefits-preview {
        gap: 0.5rem;
    }

    .benefit-item {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    .results-header {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }

    .results-header h2 {
        font-size: 1.1rem;
    }

    .results-header p {
        font-size: 0.9rem;
    }

    .send-button-overlay {
        transform: translateY(0);
        padding: 1rem;
        background: rgba(10, 33, 51, 0.9);
    }

    .send-button {
        width: 100%;
        justify-content: center;
        padding: 1rem;
    }

    .send-button:hover {
        transform: none;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .jewelry-carousel {
        margin: 0 auto 3rem;
        border-radius: 8px;
    }

    .carousel-viewport {
        height: 450px;
    }

    .slide-header {
        padding: 1rem 1rem 0.75rem;
    }

    .slide-title {
        font-size: 1.1rem;
    }

    .slide-subtitle {
        font-size: 0.8rem;
    }

    .slide-image-container {
        min-height: 250px;
    }

    .slide-footer {
        padding: 1rem 1rem 1.5rem;
    }

    .carousel-send-button {
        padding: 1rem 1rem;
        font-size: 0.9rem;
        min-height: 48px;
    }

    .carousel-arrow {
        width: 40px;
        height: 40px;
    }

    .carousel-arrow svg {
        width: 18px;
        height: 18px;
    }

    .carousel-arrow.prev {
        left: 0.5rem;
    }

    .carousel-arrow.next {
        right: 0.5rem;
    }

    .carousel-nav {
        bottom: -3.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
        padding: 0 0.5rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        padding: 0 0.75rem;
    }

    .design-section {
        padding: 5px 0.5rem;
    }

    .example-section {
        padding: 1rem;
        margin: 1rem 0;
    }

    .interactive-example {
        font-size: 0.9rem;
        line-height: 1.8;
    }

    .disclaimer {
        padding: 0.75rem;
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .disclaimer,
    .example-section,
    .description-area,
    .result-container {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .dialog-content {
        padding: 1.5rem;
    }

    .dialog-body h3 {
        font-size: 1.1rem;
    }

    .dialog-body p {
        font-size: 0.9rem;
    }

    .popup {
        min-width: 120px;
    }

    .send-button {
        font-size: 0.85rem;
        padding: 0.75rem 1rem;
    }

    .carousel-viewport {
        height: 400px;
    }

    .slide-image-container {
        min-height: 180px;
    }

    .slide-footer {
        padding: 1rem 1rem 1.5rem;
    }

    .carousel-send-button {
        padding: 1rem;
        font-size: 0.85rem;
        min-height: 50px;
    }
}

/* Touch-friendly interactions */
@media (hover: none) {
    .keyword {
        padding: 0.5rem 0.25rem;
    }

    .popup-item {
        padding: 0.75rem 1rem;
    }

    .send-button-overlay {
        transform: translateY(0);
        background: rgba(10, 33, 51, 0.9);
    }
}
