/* ========================================
   ODA SİMÜLATÖRÜ CSS
   Responsive & Interactive Design
======================================== */

/* Prevent Double Scroll */
html, body {
    overflow-x: hidden;
}

/* Hero Section */
.simulator-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 40px 0;
    color: white;
    text-align: center;
}

.simulator-hero h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.simulator-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Breadcrumb */
.breadcrumb-section {
    background: var(--bg-light);
    padding: 15px 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--text-muted);
}

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

.breadcrumb span:last-child {
    color: var(--text-dark);
    font-weight: 500;
}

/* Simulator Section */
.simulator-section {
    padding: 30px 0 60px;
    background: var(--bg-light);
    min-height: calc(100vh - 300px);
}

.simulator-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 25px;
    align-items: start;
}

/* Control Panel */
.simulator-controls {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.control-panel {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

/* Upload Panel - Highlighted */
.upload-panel-highlight {
    background: linear-gradient(135deg, #e8f5e9 0%, #fff 100%);
    border: 2px solid var(--success-color);
    position: relative;
}

.upload-panel-highlight::before {
    content: 'ÖNERİLEN';
    position: absolute;
    top: -10px;
    right: 15px;
    background: var(--success-color);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 10px;
}

.upload-room-box {
    text-align: center;
}

.upload-drop-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 15px;
    border: 2px dashed var(--primary-color);
    border-radius: var(--border-radius);
    background: white;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 12px;
}

.upload-drop-zone:hover,
.upload-drop-zone.dragover {
    background: var(--bg-light);
    border-color: var(--success-color);
}

.upload-drop-zone i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.upload-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.upload-subtext {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.upload-buttons {
    margin-bottom: 10px;
}

.camera-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.camera-btn:hover {
    background: var(--primary-dark);
}

.upload-hint {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin: 0;
}

.panel-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    margin-top: -5px;
}

.control-panel h3 {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bg-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.control-panel h3 i {
    color: var(--primary-color);
}

/* Room Selection Grid */
.room-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.room-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 12px 8px;
    background: var(--bg-light);
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.room-btn i {
    font-size: 1.3rem;
    color: var(--text-muted);
}

.room-btn span {
    font-size: 0.75rem;
    color: var(--text-light);
}

.room-btn:hover {
    border-color: var(--primary-color);
}

.room-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.room-btn.active i,
.room-btn.active span {
    color: white;
}

/* Carpet Search */
.carpet-search {
    position: relative;
    margin-bottom: 12px;
}

.carpet-search input {
    width: 100%;
    padding: 10px 35px 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
}

.carpet-search input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.carpet-search i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

/* Carpet Categories */
.carpet-categories {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.category-btn {
    padding: 6px 12px;
    background: var(--bg-light);
    border: none;
    border-radius: 15px;
    font-size: 0.8rem;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.category-btn:hover,
.category-btn.active {
    background: var(--primary-color);
    color: white;
}

/* Carpet Grid */
.carpet-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 5px;
}

.carpet-grid::-webkit-scrollbar {
    width: 5px;
}

.carpet-grid::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 5px;
}

.carpet-grid::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

.carpet-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.carpet-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carpet-item:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.carpet-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-color);
}

.carpet-item .carpet-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    font-size: 0.65rem;
    padding: 4px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Size Controls */
.size-control {
    margin-bottom: 15px;
}

.size-control:last-child {
    margin-bottom: 0;
}

.size-control label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 8px;
}

.size-control select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    background: white;
}

.size-control input[type="range"] {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--bg-light);
    border-radius: 3px;
    outline: none;
}

.size-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
}

/* Perspective Presets */
.perspective-presets {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

.preset-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.preset-btn {
    width: 36px;
    height: 36px;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--text-muted);
}

.preset-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.preset-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Actions Panel */
.actions-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.reset-btn {
    background: var(--bg-light);
    color: var(--text-dark);
}

.reset-btn:hover {
    background: var(--border-color);
}

.screenshot-btn {
    background: var(--primary-color);
    color: white;
}

.screenshot-btn:hover {
    background: var(--primary-dark);
}

.share-btn {
    background: #25d366;
    color: white;
}

.share-btn:hover {
    background: #128c7e;
}

/* Preview Area */
.simulator-preview {
    position: relative;
}

.preview-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    background: #f0f0f0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.room-background {
    position: absolute;
    inset: 0;
}

.room-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Carpet Layer - 3D Perspective */
.carpet-layer {
    position: absolute;
    width: 40%;
    left: 50%;
    top: 65%;
    transform: translate(-50%, -50%);
    cursor: move;
    user-select: none;
    transition: box-shadow 0.2s, filter 0.2s;
    
    /* 3D Container */
    perspective: 1000px;
    transform-style: preserve-3d;
}

.carpet-layer:hover {
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.carpet-layer img {
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
    
    /* 3D Transform - Yere serilmiş efekti */
    transform: rotateX(55deg) rotateZ(0deg);
    transform-origin: center bottom;
    
    /* Gölge efekti */
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
}

/* Halı gölgesi */
.carpet-layer::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 10%;
    right: 10%;
    height: 20px;
    background: radial-gradient(ellipse, rgba(0,0,0,0.3) 0%, transparent 70%);
    filter: blur(8px);
    transform: rotateX(55deg);
    z-index: -1;
}

.carpet-layer.dragging {
    opacity: 0.9;
    z-index: 100;
}

/* Resize Handles */
.carpet-handles {
    position: absolute;
    inset: -8px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
}

.carpet-layer:hover .carpet-handles,
.carpet-layer.active .carpet-handles {
    opacity: 1;
}

.handle {
    position: absolute;
    width: 16px;
    height: 16px;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    pointer-events: auto;
    cursor: nwse-resize;
}

.handle-tl { top: 0; left: 0; cursor: nwse-resize; }
.handle-tr { top: 0; right: 0; cursor: nesw-resize; }
.handle-bl { bottom: 0; left: 0; cursor: nesw-resize; }
.handle-br { bottom: 0; right: 0; cursor: nwse-resize; }

/* Instructions Overlay */
.instructions-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.instructions-overlay.hidden {
    display: none;
}

.instruction-content {
    text-align: center;
    color: white;
}

.instruction-content i {
    font-size: 3rem;
    margin-bottom: 15px;
    animation: bounce 1s infinite;
}

.instruction-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Preview Controls */
.preview-controls {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.preview-btn {
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.preview-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Selected Carpet Info */
.selected-carpet-info {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    padding: 15px;
    border-radius: var(--border-radius);
    margin-top: 15px;
    box-shadow: var(--shadow-sm);
}

.carpet-thumb {
    width: 70px;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.carpet-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carpet-details {
    flex: 1;
}

.carpet-details h4 {
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.carpet-details p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.carpet-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.carpet-actions {
    display: flex;
    gap: 10px;
}

.btn-sm {
    padding: 8px 15px;
    font-size: 0.85rem;
}

/* How It Works Section */
.how-it-works-section {
    padding: 60px 0;
    background: white;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.step-card {
    text-align: center;
    padding: 30px 20px;
    position: relative;
}

.step-number {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.step-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

.step-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.step-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Upload Room Section */
.upload-room-section {
    padding: 40px 0;
    background: var(--bg-light);
}

.upload-card {
    display: flex;
    align-items: center;
    gap: 30px;
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    border: 2px dashed var(--border-color);
}

.upload-icon {
    width: 100px;
    height: 100px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.upload-icon i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.upload-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.upload-content p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.upload-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.upload-note {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* CTA Section */
.simulator-cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 60px 0;
    text-align: center;
    color: white;
}

.cta-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-outline-light {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
}


/* Modal Styles */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow: hidden;
}

.modal-sm {
    max-width: 400px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header h3 i {
    color: var(--primary-color);
}

.modal-close {
    width: 35px;
    height: 35px;
    background: var(--bg-light);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--border-color);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

/* Screenshot Preview */
.screenshot-preview {
    background: var(--bg-light);
    border-radius: var(--border-radius);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screenshot-preview img {
    max-width: 100%;
    max-height: 400px;
    border-radius: var(--border-radius);
}

/* Share Buttons Grid */
.share-buttons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.share-btn-large {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    color: white;
}

.share-btn-large i {
    font-size: 1.5rem;
}

.share-btn-large span {
    font-size: 0.9rem;
}

.share-btn-large.whatsapp { background: #25d366; }
.share-btn-large.facebook { background: #1877f2; }
.share-btn-large.twitter { background: #1da1f2; }
.share-btn-large.email { background: var(--text-muted); }

.share-btn-large:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Share Link */
.share-link {
    display: flex;
    gap: 10px;
}

.share-link input {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.85rem;
    background: var(--bg-light);
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

/* Tablet */
@media (max-width: 1024px) {
    .simulator-layout {
        grid-template-columns: 280px 1fr;
        gap: 20px;
    }
    
    .carpet-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet Small */
@media (max-width: 900px) {
    .simulator-layout {
        grid-template-columns: 1fr;
    }
    
    .simulator-controls {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .actions-panel {
        grid-column: span 2;
        flex-direction: row;
    }
    
    .action-btn {
        flex: 1;
    }
    
    .carpet-grid {
        grid-template-columns: repeat(4, 1fr);
        max-height: 150px;
    }
    
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

/* Mobile Large */
@media (max-width: 768px) {
    .simulator-hero h1 {
        font-size: 1.5rem;
    }
    
    .simulator-hero p {
        font-size: 1rem;
    }
    
    .simulator-controls {
        grid-template-columns: 1fr;
    }
    
    .actions-panel {
        grid-column: span 1;
        flex-direction: column;
    }
    
    .room-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .carpet-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .preview-container {
        aspect-ratio: 4/3;
    }
    
    .selected-carpet-info {
        flex-wrap: wrap;
    }
    
    .carpet-actions {
        width: 100%;
        margin-top: 10px;
    }
    
    .carpet-actions .btn {
        flex: 1;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .step-card {
        display: flex;
        align-items: center;
        text-align: left;
        gap: 20px;
        padding: 20px;
        background: var(--bg-light);
        border-radius: var(--border-radius);
    }
    
    .step-number {
        position: static;
    }
    
    .step-icon {
        width: 60px;
        height: 60px;
        margin: 0;
        flex-shrink: 0;
    }
    
    .step-icon i {
        font-size: 1.5rem;
    }
    
    .upload-card {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    
    .upload-actions {
        flex-direction: column;
    }
    
    .cta-content h2 {
        font-size: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Mobile Small */
@media (max-width: 576px) {
    .simulator-section {
        padding: 20px 0 40px;
    }
    
    .simulator-hero {
        padding: 30px 0;
    }
    
    .simulator-hero h1 {
        font-size: 1.3rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .control-panel {
        padding: 15px;
    }
    
    .control-panel h3 {
        font-size: 0.95rem;
    }
    
    .room-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .room-btn {
        padding: 10px 6px;
    }
    
    .room-btn i {
        font-size: 1.1rem;
    }
    
    .room-btn span {
        font-size: 0.7rem;
    }
    
    .carpet-grid {
        grid-template-columns: repeat(3, 1fr);
        max-height: 180px;
    }
    
    .carpet-categories {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 5px;
    }
    
    .category-btn {
        flex-shrink: 0;
    }
    
    .preview-controls {
        top: 10px;
        right: 10px;
    }
    
    .preview-btn {
        width: 35px;
        height: 35px;
    }
    
    .carpet-thumb {
        width: 60px;
        height: 60px;
    }
    
    .carpet-details h4 {
        font-size: 0.95rem;
    }
    
    .carpet-price {
        font-size: 1rem;
    }
    
    .btn-sm {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .step-card {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        position: absolute;
        top: 10px;
        left: 10px;
    }
    
    .upload-icon {
        width: 80px;
        height: 80px;
    }
    
    .upload-icon i {
        font-size: 2rem;
    }
    
    .upload-content h3 {
        font-size: 1.1rem;
    }
    
    .simulator-cta-section {
        padding: 40px 0;
    }
    
    .cta-content h2 {
        font-size: 1.3rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .share-buttons-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .share-btn-large {
        padding: 15px;
    }
    
    .share-btn-large i {
        font-size: 1.2rem;
    }
    
    .share-btn-large span {
        font-size: 0.8rem;
    }
}

/* Very Small Screens */
@media (max-width: 400px) {
    .container {
        padding: 0 15px;
    }
    
    .simulator-hero h1 {
        font-size: 1.2rem;
    }
    
    .room-grid {
        gap: 8px;
    }
    
    .carpet-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Fullscreen Mode */
.preview-container.fullscreen {
    position: fixed;
    inset: 0;
    z-index: 9998;
    border-radius: 0;
    aspect-ratio: auto;
}

.preview-container.fullscreen .preview-controls {
    top: 20px;
    right: 20px;
}

/* Touch Device Optimizations */
@media (hover: none) {
    .carpet-layer .carpet-handles {
        opacity: 1;
    }
    
    .handle {
        width: 24px;
        height: 24px;
    }
}


/* Notification Animations */
@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}
