/* Petneta - Mobile-First Responsive Styles */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --text: #1f2937;
    --text-light: #6b7280;
    --bg: #ffffff;
    --bg-alt: #f9fafb;
    --border: #e5e7eb;
    --success: #10b981;
    --warning: #f59e0b;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header */
.header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

.logo:hover {
    text-decoration: none;
}

.nav {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.nav a {
    color: var(--text);
    font-weight: 500;
    padding: 4px 8px;
}

.nav a:hover {
    color: var(--primary);
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 48px 0;
    text-align: center;
}

.hero h1 {
    font-size: 28px;
    margin-bottom: 12px;
}

.hero p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 24px;
}

/* Search Box */
.search-box {
    background: white;
    border-radius: 8px;
    padding: 16px;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.search-box input[type="text"] {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 16px;
    margin-bottom: 12px;
}

.search-box select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 16px;
    margin-bottom: 12px;
    background: white;
}

.search-box button {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

.search-box button:hover {
    background: var(--primary-dark);
}

/* Section */
.section {
    padding: 40px 0;
}

.section-title {
    font-size: 24px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
}

/* Article Grid */
.article-grid {
    display: grid;
    gap: 24px;
}

@media (min-width: 640px) {
    .article-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .article-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.article-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.article-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.article-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.article-card-content {
    padding: 16px;
}

.article-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.article-card h3 a {
    color: var(--text);
}

.article-card h3 a:hover {
    color: var(--primary);
}

.article-card .meta {
    font-size: 14px;
    color: var(--text-light);
}

.article-card .excerpt {
    margin-top: 8px;
    color: var(--text-light);
    font-size: 14px;
}

/* Category Cards */
.category-grid {
    display: grid;
    gap: 16px;
}

@media (min-width: 640px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.category-card {
    background: var(--bg-alt);
    padding: 24px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.2s;
}

.category-card:hover {
    transform: translateY(-4px);
}

.category-card h3 {
    margin-bottom: 8px;
}

/* Listing Grid */
.listing-grid {
    display: grid;
    gap: 16px;
}

@media (min-width: 640px) {
    .listing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .listing-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.listing-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
}

.listing-card h3 {
    font-size: 18px;
    margin-bottom: 4px;
}

.listing-card .address {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 8px;
}

.listing-card .phone {
    color: var(--primary);
    font-weight: 500;
}

/* Article Page */
.article {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px 16px;
}

.article-header {
    margin-bottom: 24px;
}

.article-header h1 {
    font-size: 28px;
    line-height: 1.3;
    margin-bottom: 12px;
}

.article-meta {
    color: var(--text-light);
    font-size: 14px;
}

.article-featured-image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 24px;
}

.article-content {
    line-height: 1.8;
}

.article-content h2 {
    font-size: 22px;
    margin: 32px 0 16px;
}

.article-content h3 {
    font-size: 18px;
    margin: 24px 0 12px;
}

.article-content p {
    margin-bottom: 16px;
}

.article-content ul, .article-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.article-content li {
    margin-bottom: 8px;
}

/* Listing Page */
.listing {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px 16px;
}

.listing-header h1 {
    font-size: 28px;
    margin-bottom: 8px;
}

.listing-contact {
    background: var(--bg-alt);
    padding: 16px;
    border-radius: 8px;
    margin: 24px 0;
}

.listing-contact p {
    margin-bottom: 8px;
}

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

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 4px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 16px;
}

.form-group textarea {
    min-height: 120px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

.btn:hover {
    background: var(--primary-dark);
}

/* Footer */
.footer {
    background: var(--text);
    color: white;
    padding: 32px 0;
    margin-top: 48px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 640px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.footer a {
    color: white;
    opacity: 0.8;
}

.footer a:hover {
    opacity: 1;
}

/* Utilities */
.text-center { text-align: center; }
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }
