/* Tattoo Designer Styles */

.main-content {
    min-height: 100vh;
    padding-top: var(--header-height, 80px);
    position: relative;
    z-index: 1;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: var(--color-text);
    padding: 4rem 0;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
    line-height: 1.6;
    color: var(--color-text);
}

/* Designer Section */
.designer-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-primary) 100%);
    position: relative;
    z-index: 1;
}

/* Tool Tabs */
.tool-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    overflow-x: auto;
    position: relative;
    z-index: 2;
}

.tab-btn {
    background: rgba(248, 245, 242, 0.2);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px 8px 0 0;
    padding: 1rem 2rem;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text);
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 140px;
    position: relative;
    z-index: 2;
}

.tab-btn i {
    font-size: 1.5rem;
    color: var(--color-accent);
}

.tab-btn:hover {
    color: var(--color-text);
    background: rgba(248, 245, 242, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(89, 74, 71, 0.1);
}

.tab-btn.active {
    color: var(--color-text);
    border-bottom-color: var(--color-accent);
    background: rgba(248, 245, 242, 0.4);
    box-shadow: 0 4px 16px rgba(89, 74, 71, 0.1);
}

/* Tool Panels */
.tool-panels {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.tool-panel {
    display: none;
    background: rgba(248, 245, 242, 0.25);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(89, 74, 71, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
    position: relative;
    z-index: 2;
}

.tool-panel.active {
    display: block;
}

.panel-header {
    text-align: center;
    margin-bottom: 2rem;
}

.panel-header h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.panel-header p {
    color: var(--color-secondary);
    font-family: var(--font-body);
    font-size: 1rem;
}

/* Form Styles */
.tattoo-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--color-text);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-body);
    background: rgba(248, 245, 242, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--color-text);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    background: rgba(248, 245, 242, 0.3);
    box-shadow: 0 0 0 3px rgba(135, 206, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* File Upload Area */
.file-upload-area {
    border: 2px dashed rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: rgba(248, 245, 242, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2;
}

.file-upload-area:hover {
    border-color: var(--color-accent);
    background: rgba(135, 206, 235, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(89, 74, 71, 0.1);
}

.file-upload-area.small {
    padding: 1rem;
}

.file-upload-area input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    top: 0;
    left: 0;
}

.upload-content {
    pointer-events: none;
}

.upload-content i {
    font-size: 2rem;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
    display: block;
}

.upload-content p {
    margin: 0;
    font-weight: 500;
    color: var(--color-text);
    font-family: var(--font-body);
}

.upload-content span {
    font-size: 0.85rem;
    color: var(--color-secondary);
    font-family: var(--font-body);
}

/* Preview Container */
.preview-container {
    position: relative;
    display: inline-block;
}

.preview-container img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.remove-btn {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* Prompt Editor Styles */
.prompt-editor-section {
    margin: 1.5rem 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(248, 245, 242, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow: hidden;
    transition: all 0.3s ease;
}

.prompt-editor-header {
    padding: 0;
}

.prompt-toggle-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.prompt-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-accent);
}

.prompt-toggle-btn i:first-child {
    color: var(--color-accent);
    margin-right: 0.5rem;
}

.prompt-toggle-btn .toggle-icon {
    transition: transform 0.3s ease;
}

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

.prompt-editor-content {
    display: none;
    padding: 0 1.5rem 1.5rem;
    animation: slideDown 0.3s ease;
}

.prompt-editor-content.active {
    display: block;
}

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

.prompt-section {
    background: rgba(248, 245, 242, 0.2);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.prompt-tabs {
    display: flex;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 4px;
    overflow-x: auto;
}

.prompt-tab {
    flex: 1;
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: fit-content;
}

.prompt-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-accent);
}

.prompt-tab.active {
    background: rgba(135, 206, 235, 0.3);
    color: var(--color-text);
    box-shadow: 0 2px 8px rgba(135, 206, 235, 0.2);
}

.prompt-panels {
    position: relative;
}

.prompt-panel {
    display: none;
}

.prompt-panel.active {
    display: block;
}

.prompt-panel label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-text);
    font-family: var(--font-body);
}

.prompt-panel textarea {
    width: 100%;
    min-height: 120px;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    background: rgba(248, 245, 242, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--color-text);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
    resize: vertical;
    transition: all 0.3s ease;
}

.prompt-panel textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    background: rgba(248, 245, 242, 0.4);
    box-shadow: 0 0 0 3px rgba(135, 206, 235, 0.1);
}

.prompt-panel textarea[readonly] {
    background: rgba(200, 200, 200, 0.1);
    cursor: default;
}

.prompt-help {
    margin: 0.5rem 0 0;
    font-size: 0.85rem;
    color: var(--color-secondary);
    font-style: italic;
    font-family: var(--font-body);
}

.prompt-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.prompt-actions .btn-secondary {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Prompt editor specific button styles */
.prompt-actions .btn-secondary {
    background: rgba(198, 172, 143, 0.3);
    border-color: rgba(198, 172, 143, 0.5);
}

.prompt-actions .btn-secondary:hover {
    background: rgba(198, 172, 143, 0.5);
    transform: translateY(-1px);
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 12px 30px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--color-text);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.6s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    background: rgba(248, 245, 242, 0.4);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(89, 74, 71, 0.1);
    will-change: transform, box-shadow;
}

.btn-primary::before,
.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-text), var(--color-secondary));
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: -1;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-secondary:hover,
.btn-secondary:focus {
    color: var(--color-bg);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(89, 74, 71, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-primary:hover::before,
.btn-secondary:hover::before {
    transform: translateX(0);
}

.btn-secondary {
    background: rgba(198, 172, 143, 0.4);
}

/* Results Section */
.results-section {
    max-width: 1000px;
    margin: 3rem auto 0;
    background: rgba(248, 245, 242, 0.25);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(89, 74, 71, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
    position: relative;
    z-index: 2;
}

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

.results-header h3 {
    color: var(--color-text);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin: 0;
}

.results-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.results-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.result-image {
    text-align: center;
}

.result-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.result-info h4 {
    color: var(--color-text);
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.result-info p {
    color: var(--color-secondary);
    font-family: var(--font-body);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.result-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 0.9rem;
}

.meta-item i {
    color: var(--color-accent);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(89, 74, 71, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    background: rgba(248, 245, 242, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 3rem;
    border-radius: 16px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(89, 74, 71, 0.3);
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid var(--color-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

.loading-content h3 {
    color: var(--color-text);
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
}

.loading-content p {
    color: var(--color-secondary);
    font-family: var(--font-body);
    margin: 0;
}

/* Features Section */
.features-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-primary) 100%);
    position: relative;
    z-index: 1;
}

.features-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-family: var(--font-heading);
    color: var(--color-text);
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 16px;
    background: rgba(248, 245, 242, 0.25);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(89, 74, 71, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(248, 245, 242, 0.35);
    box-shadow: 0 16px 48px rgba(89, 74, 71, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.6),
                0 0 40px rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 16px rgba(89, 74, 71, 0.2);
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    color: var(--color-text);
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--color-secondary);
    font-family: var(--font-body);
    line-height: 1.6;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .tool-tabs {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .tab-btn {
        min-width: 120px;
        padding: 0.75rem 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .results-content {
        grid-template-columns: 1fr;
    }
    
    .results-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .results-actions {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .tool-panel {
        padding: 1.5rem;
    }
    
    .loading-content {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .tab-btn span {
        display: none;
    }
    
    .tab-btn {
        min-width: 60px;
    }
    
    .tool-panel {
        padding: 1rem;
    }
    
    .file-upload-area {
        padding: 1rem;
    }
}

/* Footer z-index fixes */
.footer {
    position: relative;
    z-index: 1;
}

/* Custom cursor compatibility */
body {
    cursor: none; /* Maintain custom cursor */
} 