/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS and SCSS file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 *
 * It is generally better to create a new file per style scope.
 *
 */

@import "actiontext.css";

:root {
    --primary: #E85D04;
    --primary-light: #FFF3E0;
    --text-dark: #1F2937;
    --text-gray: #6B7280;
    --bg-creamy: #FAFAF9;
    --white: #FFFFFF;
    --radius-lg: 16px;
    --radius-md: 12px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-creamy);
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23E85D04' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    /* This is a simple plus pattern for now, let's try a more complex pizza one below */
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M25 25 L45 25 L35 45 Z' stroke='%23E85D04' stroke-width='1' fill='none' opacity='0.08'/%3E%3Ccircle cx='75' cy='75' r='12' stroke='%23E85D04' stroke-width='1' fill='none' opacity='0.08'/%3E%3Cpath d='M75 25 A 10 10 0 0 1 85 35' stroke='%23E85D04' stroke-width='1' fill='none' opacity='0.08'/%3E%3Ccircle cx='25' cy='75' r='2' fill='%23E85D04' opacity='0.08'/%3E%3C/svg%3E");
    color: var(--text-dark);
    line-height: 1.5;
    margin: 0;
    padding-bottom: 80px;
    /* Space for bottom nav if needed */
}

.container {
    max-width: 480px;
    /* Mobile-first width focus */
    margin: 0 auto;
    padding: 1rem;
}

/* Typography */
h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

p {
    color: var(--text-gray);
}

.subtitle {
    font-size: 1rem;
    color: var(--text-gray);
    margin-top: 0;
    margin-bottom: 1.5rem;
}

/* Components */
.search-bar {
    background-color: var(--primary-light);
    border-radius: var(--radius-lg);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.search-bar input {
    border: none;
    background: transparent;
    width: 100%;
    margin-left: 0.5rem;
    font-size: 1rem;
    color: var(--text-dark);
}

.search-bar input:focus {
    outline: none;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: var(--primary-light);
    border-radius: var(--radius-lg);
    padding: 1rem;
    text-align: center;
    flex: 1;
}

.stat-card.yellow {
    background-color: #FEF3C7;
}

.stat-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-gray);
}

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

.see-all {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}

.pizza-card {
    background: var(--white);
    border: 1px solid #E5E7EB;
    border-radius: var(--radius-lg);
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
}

.pizza-image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    object-fit: cover;
    background-color: #eee;
}

.pizza-details {
    flex: 1;
}

.pizza-title {
    font-weight: 600;
    margin: 0;
    margin-bottom: 0.25rem;
}

.star-rating {
    color: #FBBF24;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.tags {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.tag {
    background-color: #F3F4F6;
    color: var(--text-gray);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

.fab {
    position: fixed;
    bottom: 6rem;
    right: 1.5rem;
    background-color: var(--primary);
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    text-decoration: none;
    font-size: 1.5rem;
    z-index: 100;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #E5E7EB;
    border-radius: var(--radius-md);
    font-size: 1rem;
    box-sizing: border-box;
}

.btn-primary {
    display: block;
    width: 100%;
    padding: 0.875rem;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

/* Hide Trix File Upload */
.trix-button--icon-attach,
.trix-button-group--file-tools {
    display: none !important;
}

.hidden {
    display: none !important;
}