/* Hero Card */
.hero-card {
    display: block;
    background: var(--bg-tertiary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 14px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.03);
}

.hero-card-image {
    height: 140px;
    background-size: cover;
    background-position: center;
}

.hero-card-body { padding: 14px 16px; }

.hero-card-label {
    font-size: 9px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.hero-card-title { font-size: 18px; font-weight: 700; margin-bottom: 2px; }
.hero-card-desc { font-size: 12px; color: var(--text-secondary); }

/* Home Row */
.home-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
}

.home-row .thumb-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 1;
}

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

.home-row .thumb-placeholder { background: var(--bg-secondary); }

/* Quote */
.quote-block {
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    padding: 14px;
    border-left: 3px solid var(--accent);
    box-shadow: 0 1px 4px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.quote-text { font-size: 13px; font-style: italic; margin-bottom: 4px; line-height: 1.4; }
.quote-author { font-size: 11px; color: var(--accent); font-weight: 600; }

/* Tile Grids */
.tile-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.tile-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 14px; }

.tile-card {
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    padding: 14px 8px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.02);
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.tile-card:active { transform: scale(0.96); }
.tile-card.small { padding: 12px 6px; }
.tile-card-icon { font-size: 26px; }
.tile-card.small .tile-card-icon { font-size: 22px; }
.tile-card-title { font-size: 12px; font-weight: 600; }
.tile-card.small .tile-card-title { font-size: 10px; }
.tile-card-sub { font-size: 10px; color: var(--text-secondary); }

/* Fact Card */
.fact-card {
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    padding: 12px 14px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.02);
}

.fact-emoji { font-size: 18px; flex-shrink: 0; }
.fact-card p { font-size: 12px; line-height: 1.5; }

/* Table Section */
.table-section {
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.02);
}

.table-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 0.5px solid var(--bg-secondary);
    transition: background 0.15s ease;
}

.table-row:active { background: var(--bg-secondary); }
.table-row:last-child { border-bottom: none; }
.row-content { flex: 1; min-width: 0; }
.row-title { font-size: 14px; font-weight: 600; margin-bottom: 1px; }
.row-subtitle { font-size: 11px; color: var(--text-secondary); }
.row-arrow { font-size: 15px; color: var(--text-tertiary); flex-shrink: 0; margin-left: 6px; }

/* Chips */
.chips-scroll {
    display: flex;
    gap: 8px;
    padding-bottom: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.chips-scroll::-webkit-scrollbar { display: none; }

.chip {
    padding: 12px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    display: inline-block;
}

.chip.active { background: var(--accent); color: white; }

/* Buttons */
.btn {
    padding: 10px 12px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.15s ease;
}

.btn:active { opacity: 0.7; }
.btn-ghost { background: var(--bg-tertiary); color: var(--text-primary); box-shadow: 0 1px 3px rgba(0,0,0,0.03); }
.btn-accent { background: var(--accent); color: white; }

/* Feed Grid */
.feed-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    margin-bottom: 14px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.feed-item { aspect-ratio: 3/4; display: block; overflow: hidden; }
.feed-item img { width: 100%; height: 100%; object-fit: cover; }

/* Recipe Detail */
.recipe-hero-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: 14px;
}

.tagline-quote { font-style: italic; color: var(--accent); font-size: 14px; margin-bottom: 12px; }

.base-link {
    display: inline-block;
    padding: 5px 12px;
    background: var(--bg-secondary);
    border-radius: 14px;
    font-size: 11px;
    color: var(--accent);
    margin-bottom: 14px;
}

/* Ingredients & Steps */
.ingredient-row, .step-row {
    display: flex;
    padding: 7px 0;
    font-size: 13px;
    border-bottom: 0.5px solid var(--bg-secondary);
}

.ingredient-row:last-child, .step-row:last-child { border-bottom: none; }
.ingredient-row { justify-content: space-between; }
.step-row { gap: 10px; align-items: flex-start; line-height: 1.4; }

.ingredient-name { color: var(--text-primary); }
.ingredient-amount { color: var(--text-secondary); flex-shrink: 0; margin-left: 10px; font-size: 12px; }

.step-num {
    width: 20px; height: 20px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

/* Forms */
.form-input {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--separator);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    margin-bottom: 8px;
    outline: none;
    transition: border-color 0.15s ease;
}

.form-input:focus { border-color: var(--accent); }
.form-input::placeholder { color: var(--text-tertiary); }
.form-textarea { height: 80px; resize: vertical; }

/* Camera */
.camera-viewfinder {
    height: 260px;
    background: #1C1C1E;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 14px;
}

.camera-placeholder { font-size: 40px; opacity: 0.3; }

.camera-logo {
    position: absolute;
    bottom: 14px; right: 14px;
    font-size: 13px;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    letter-spacing: 3px;
}

.capture-btn {
    display: block;
    width: 60px; height: 60px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--bg-secondary);
    margin: 14px auto;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.capture-btn:active { transform: scale(0.92); }

/* About */
.info-card {
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    margin-bottom: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.02);
}

.info-card h2 { font-size: 18px; font-weight: 700; margin-bottom: 2px; }
.info-card p { font-size: 13px; color: var(--text-secondary); }

.feature-card {
    background: var(--bg-tertiary);
    padding: 12px 14px;
    margin-bottom: 6px;
    border-radius: var(--radius-md);
    box-shadow: 0 1px 4px rgba(0,0,0,0.02);
}

.feature-title { font-weight: 600; font-size: 13px; margin-bottom: 1px; }
.feature-desc { font-size: 12px; color: var(--text-secondary); }

/* Contacts */
.contact-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    margin-bottom: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.02);
}

.contact-card-icon { font-size: 22px; flex-shrink: 0; }
.contact-card small { font-size: 10px; color: var(--text-secondary); display: block; margin-bottom: 1px; }
.contact-card strong { font-size: 13px; }

/* Legal */
.accordion-item {
    background: var(--bg-tertiary);
    margin-bottom: 5px;
    border-radius: var(--radius-md);
    box-shadow: 0 1px 4px rgba(0,0,0,0.02);
    overflow: hidden;
}

.accordion-header {
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-body {
    padding: 0 14px 10px;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    display: none;
}

.accordion-body.open { display: block; }

/* Photo Detail */
.photo-full {
    width: 100%;
    border-radius: var(--radius-lg);
    margin-bottom: 14px;
}

/* Tab Bar */
.tab-bar {
    position: fixed;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    background: rgba(245, 240, 235, 0.72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 0.5px solid rgba(0, 0, 0, 0.06);
    border-radius: 22px;
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 8px 20px 12px;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 9px;
    font-weight: 500;
    transition: color 0.15s ease;
    min-width: 40px;
    color: var(--text-tertiary);
}

.tab-item.active { color: var(--accent); }
.tab-icon { font-size: 18px; }

/* Action Row */
.action-row {
    display: flex;
    gap: 8px;
    margin: 14px 0 16px;
}

/* Fact icon */
.fact-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Tile card thumbnail */
.tile-card-thumb {
    width: 100%;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

/* Base description */
.base-description {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 16px;
}

/* Base link icon */
.base-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.base-link-icon {
    width: 14px;
    height: 14px;
}

/* Button icon */
.btn-icon {
    width: 16px;
    height: 16px;
}

/* Camera placeholder image */
.camera-placeholder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-xl);
}

/* Tag cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin: 12px 0;
}

.tag {
    background: var(--bg-secondary);
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 11px;
    color: var(--accent);
    font-weight: 600;
}

.catchphrase {
    text-align: center;
    font-size: 15px;
    margin: 12px 0;
    font-weight: 600;
}

.catchphrase strong { color: var(--accent); }

.small-text {
    text-align: center;
    font-size: 11px;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 6px;
}

.established {
    text-align: center;
    font-size: 10px;
    color: var(--text-tertiary);
    padding: 10px 0 16px;
    letter-spacing: 0.5px;
}

.contact-footer {
    text-align: center;
    font-size: 10px;
    color: var(--text-tertiary);
    padding: 12px 0 16px;
    font-style: italic;
}

.legal-footer {
    text-align: center;
    padding: 16px 0;
}

.legal-footer p {
    font-size: 10px;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}

.legal-joke {
    font-style: italic;
    color: var(--accent) !important;
    font-size: 12px !important;
}

/* Camera container */
.camera-container {
    position: relative;
    margin-bottom: 14px;
}

#cameraPreview {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    background: #1C1C1E;
    transform: scaleX(-1);
}

.camera-info {
    text-align: center;
    font-size: 11px;
    color: var(--accent);
    margin: 6px 0;
}

.camera-footer {
    text-align: center;
    font-size: 10px;
    color: var(--text-tertiary);
    padding-bottom: 14px;
}
