/* Global Styles - AI Landing Page Builder */

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

body {
    font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text, #1a1714);
    background: var(--bg, #f5f1eb);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }

/* Typography */
h1, h2, h3 {
    font-family: 'Lora', Georgia, serif;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--text, #1a1714);
    margin-bottom: 0.75rem;
}

h4, h5, h6 {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 500;
    line-height: 1.3;
    color: var(--text, #1a1714);
    margin-bottom: 0.75rem;
}

h1 { font-size: 22px; }
h2 { font-size: 19px; }
h3 { font-size: 17px; }
h4 { font-size: 15px; }
h5 { font-size: 14px; }
h6 { font-size: 13px; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 18px;
    border: none;
    border-radius: 8px;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 500;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: center;
}

.btn-primary {
    background: var(--accent, #c2601a);
    color: #fff;
    box-shadow: 0 2px 10px rgba(194,96,26,0.2);
}

.btn-primary:hover {
    background: var(--accent2, #a85114);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(194,96,26,0.28);
}

.btn-secondary,
.btn-ghost {
    background: transparent;
    border: 1px solid var(--border2, #ddd6cc);
    color: var(--muted, #8a8278);
}

.btn-secondary:hover,
.btn-ghost:hover {
    background: var(--bg, #f5f1eb);
    color: var(--text, #1a1714);
}

.btn-success {
    background: var(--green, #2d7a47);
    color: #fff;
}

.btn-danger {
    background: var(--danger, #b91c1c);
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent, #c2601a);
    color: var(--accent, #c2601a);
}

.btn-outline:hover {
    background: var(--accent-light, #f7ece2);
}

/* Cards */
.card {
    background: var(--card, #fffefb);
    border-radius: 14px;
    border: 1px solid var(--border, #e8e2d9);
    padding: 20px;
    margin-bottom: 20px;
    transition: background 0.12s ease;
}

.card:hover {
    background: var(--surface, #faf7f2);
}

.card-header {
    border-bottom: 1px solid var(--border, #e8e2d9);
    padding-bottom: 14px;
    margin-bottom: 14px;
}

.card-title {
    font-family: 'Lora', Georgia, serif;
    font-size: 17px;
    font-weight: 400;
    margin-bottom: 0;
}

/* Forms */
.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 500;
    font-size: 12px;
    color: var(--text, #1a1714);
}

.form-control {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--border, #e8e2d9);
    border-radius: 8px;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 13px;
    color: var(--text, #1a1714);
    background: var(--bg, #f5f1eb);
    transition: border-color 0.15s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-mid, #e8a06a);
}

.form-control::placeholder {
    color: var(--faint, #c4bdb3);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%238a8278' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px 12px;
    padding-right: 40px;
}

/* Grid */
.grid {
    display: grid;
    gap: 20px;
}

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* Flex */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-x-6 > * + * { margin-left: 1.5rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    h1 { font-size: 20px; }
    h2 { font-size: 17px; }
    h3 { font-size: 15px; }

    .btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .card {
        padding: 16px;
    }
}
