/* Public Styles - House of Adsperiment Huisstijl */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

:root {
    --bg: #FFEDE5;
    --bg-card: #ffffff;
    --bg-dark: #008080;
    --bg-dark-gradient: linear-gradient(135deg, #008080 0%, #2AA198 100%);
    --border: #eec8a6;
    --text: #333333;
    --text-dark: #2D1810;
    --text-muted: #666666;
    --accent: #008080;
    --accent-hover: #006B5F;
    --accent-light: rgba(0, 128, 128, 0.1);
    --tertiary: #eec8a6;
    --tertiary-light: #FFEDE5;
    --orange: #FF6B35;
    --success: #22c55e;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== LOCK SCREEN ===== */
.lock-screen {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #008080 0%, #006B5F 50%, #004d4d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s, transform 0.5s;
}

.lock-screen.unlocking {
    opacity: 0;
    transform: scale(1.1);
}

.lock-container {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 1rem;
    padding: 48px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.lock-container.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-8px); }
    20%, 40%, 60%, 80% { transform: translateX(8px); }
}

.lock-icon {
    font-size: 64px;
    margin-bottom: 24px;
    animation: float 3s ease-in-out infinite;
}

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

.lock-container h2 {
    color: white;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.lock-container p {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    margin-bottom: 32px;
}

.lock-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lock-form input {
    padding: 16px 20px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    font-size: 16px;
    color: white;
    text-align: center;
    letter-spacing: 2px;
    transition: all 0.3s;
}

.lock-form input::placeholder {
    color: rgba(255,255,255,0.4);
    letter-spacing: normal;
}

.lock-form input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255,255,255,0.15);
    box-shadow: 0 0 0 4px rgba(59,130,246,0.2);
}

.lock-form button {
    padding: 16px 32px;
    background: linear-gradient(180deg, var(--tertiary) 60%, #ebc4a3 100%);
    border: 2px solid white;
    border-radius: 2rem;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s;
}

.lock-form button:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.lock-form button:active {
    transform: translateY(0);
}

.lock-error {
    margin-top: 16px;
    color: #f87171;
    font-size: 14px;
    min-height: 20px;
}

.lock-hint {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.4);
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

body {
    font-family: 'Montserrat', -apple-system, system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* Header */
.header {
    background: var(--bg-dark-gradient);
    color: white;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 128, 128, 0.2);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.header-brand a {
    display: block;
}

.header-logo {
    height: 48px;
    width: auto;
}

.header-title {
    flex: 1;
    text-align: center;
}

.header-title h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.header-title p {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}

.header-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.2);
}

.header-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: right;
}

.header-name {
    font-weight: 600;
    font-size: 14px;
}

.header-role {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    .header-info {
        text-align: center;
    }
    .header-title {
        order: -1;
    }
}

/* Main */
.main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 24px;
    min-height: calc(100vh - 300px);
}

.view {
    display: none;
}

.view.active {
    display: block;
}

.back-link {
    display: inline-block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 24px;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--accent);
}

/* Filters */
.filters {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--bg-card);
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--shadow);
}

.filter-btn:hover {
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 128, 128, 0.15);
}

.filter-btn.active {
    background: var(--bg-dark-gradient);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 128, 128, 0.3);
}

/* Designs Grid */
.designs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.design-card {
    background: var(--bg-card);
    border: none;
    border-radius: 12px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--shadow);
}

.design-card:hover {
    box-shadow: 0 8px 24px rgba(0, 128, 128, 0.15);
    transform: translateY(-4px);
}

.design-card-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.design-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.design-card p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 16px;
}

.design-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
}

.variant-count {
    background: var(--bg);
    padding: 4px 10px;
    border-radius: 12px;
}

/* Generator - 2 Column Layout */
.generator-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
    align-items: start;
}

@media (max-width: 900px) {
    .generator-layout {
        grid-template-columns: 1fr;
    }
}

/* Sidebar */
.generator-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Variant Picker */
.variant-picker {
    background: var(--bg-card);
    border: none;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.variant-picker h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.variant-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.variant-option {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    background: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.variant-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 128, 128, 0.15);
}

.variant-option.active {
    background: var(--accent-light);
    box-shadow: 0 0 0 2px var(--accent);
}

.variant-option-preview {
    width: 100%;
    height: 80px;
    background: #fafafa;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #eee;
}

.variant-option-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    text-align: center;
    padding: 4px 0;
}

/* Settings Panel */
.settings-panel {
    background: var(--bg-card);
    border: none;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.settings-panel h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.setting-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.setting-group input,
.setting-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    background: white;
}

.setting-group input:focus,
.setting-group select:focus {
    outline: none;
    border-color: var(--accent);
}

.setting-group input[type="color"] {
    height: 42px;
    padding: 4px;
    cursor: pointer;
}

.setting-description {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
    opacity: 0.7;
}

.setting-inline {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.setting-inline-item {
    flex: 1;
}

.setting-inline-item label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.setting-inline-item input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    background: white;
}

/* Main Area - Stacked */
.generator-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Preview */
.generator-preview {
    background: var(--bg-card);
    border: none;
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.preview-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.preview-toggle {
    display: flex;
    gap: 4px;
    background: var(--bg);
    padding: 4px;
    border-radius: 8px;
}

.toggle-btn {
    padding: 6px 12px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.toggle-btn.active {
    background: var(--bg-dark-gradient);
    color: white;
    box-shadow: 0 2px 4px rgba(0, 128, 128, 0.3);
}

.preview-container {
    background: white;
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 0;
    min-height: 100px;
    transition: max-width 0.3s;
}

.preview-container.mobile {
    max-width: 375px;
    margin: 0 auto;
}

/* Export */
.generator-export {
    background: var(--bg-card);
    border: none;
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.export-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.export-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.export-tabs {
    display: flex;
    gap: 8px;
}

.export-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    background: white;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.export-tab svg {
    flex-shrink: 0;
}

.export-tab:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 128, 128, 0.15);
}

.export-tab.active {
    background: var(--bg-dark-gradient);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 128, 128, 0.3);
}

/* Export Blocks */
.export-blocks {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wrap-toggle {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    background: var(--bg);
    padding: 4px;
    border-radius: 8px;
    width: fit-content;
}

.wrap-toggle-btn {
    padding: 6px 14px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.wrap-toggle-btn:hover {
    color: var(--text);
}

.wrap-toggle-btn.active {
    background: white;
    color: var(--text);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Code Block */
.code-block {
    position: relative;
    background: linear-gradient(135deg, #004d4d 0%, #006B5F 100%);
    border-radius: 8px;
    overflow: hidden;
}

.code-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.code-block-title {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-copy-inline {
    padding: 6px 12px;
    background: linear-gradient(180deg, var(--tertiary) 60%, #ebc4a3 100%);
    border: 1px solid white;
    border-radius: 1rem;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s;
}

.code-block:hover .btn-copy-inline {
    transform: translateY(-2px);
}

.btn-copy-inline:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-copy-inline.copied {
    background: var(--success);
    color: white;
}

.code-block pre {
    padding: 16px;
    margin: 0;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 12px;
    line-height: 1.5;
    color: #e2e8f0;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 300px;
    overflow: auto;
}

.code-block.shopify pre {
    max-height: 400px;
}

/* Footer */
.footer {
    background: var(--bg-dark-gradient);
    border-top: none;
    padding: 32px 24px;
    color: white;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-brand {
    flex-shrink: 0;
}

.footer-logo {
    height: 40px;
    width: auto;
}

.footer-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.2);
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.footer-name {
    font-weight: 600;
    font-size: 14px;
}

.footer-title {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}

.footer-tagline {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    max-width: 300px;
    text-align: right;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-tagline {
        text-align: center;
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
}
