/* Mobile-First Petsera Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --primary: #667eea;
    --primary-dark: #764ba2;
    --secondary: #f093fb;
    --text: #2d3748;
    --text-light: #718096;
    --bg: #f7fafc;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--bg);
    padding-bottom: 70px;
    overflow-x: hidden;
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 100;
}

.nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 1.25rem;
}

.logo span:first-child {
    font-size: 1.75rem;
}

.menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text);
    margin: 5px 0;
    border-radius: 3px;
    transition: 0.3s;
}

.menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-menu {
    display: none;
    flex-direction: column;
    background: var(--white);
}

.nav-menu.active {
    display: flex;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    text-decoration: none;
    color: var(--text);
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.3s;
}

.nav-item:active {
    background: var(--bg);
}

.nav-item.active {
    color: var(--primary);
    background: #eef2ff;
}

.nav-item .icon {
    font-size: 1.5rem;
}

/* Hero */
.hero {
    position: relative;
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 1.5rem 3rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    z-index: -1;
}

.hero-content h1 {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 800;
}

.hero-content p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
}

/* Quick Actions */
.quick-actions {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: -2rem;
    position: relative;
    z-index: 10;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 20px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.action-btn:active {
    transform: scale(0.98);
}

.action-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
}

.action-secondary {
    background: var(--white);
    color: var(--text);
}

.action-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.action-text {
    flex: 1;
}

.action-text h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.action-text p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.arrow {
    font-size: 1.5rem;
    opacity: 0.5;
}

/* Features */
.features {
    padding: 2rem 1.5rem;
}

.features h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.feature {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.feature-text h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.feature-text p {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Blog Preview */
.blog-preview {
    padding: 2rem 0;
    background: var(--white);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem 1.5rem;
}

.section-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
}

.section-header a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.blog-scroll {
    display: flex;
    gap: 1rem;
    padding: 0 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

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

.blog-card {
    flex-shrink: 0;
    width: 250px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    scroll-snap-align: start;
}

.blog-card-header {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.grad-1 { background: linear-gradient(135deg, #667eea, #764ba2); }
.grad-2 { background: linear-gradient(135deg, #f093fb, #f5576c); }
.grad-3 { background: linear-gradient(135deg, #4facfe, #00f2fe); }

.blog-emoji {
    font-size: 3.5rem;
}

.blog-card-body {
    padding: 1.25rem;
}

.blog-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--bg);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.blog-card h3 {
    font-size: 1.1rem;
    line-height: 1.4;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    display: flex;
    justify-content: space-around;
    padding: 0.5rem 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 100;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    text-decoration: none;
    color: var(--text-light);
    padding: 0.5rem;
    min-width: 60px;
    transition: color 0.3s;
}

.bottom-nav-item.active {
    color: var(--primary);
}

.bottom-icon {
    font-size: 1.5rem;
}

.bottom-label {
    font-size: 0.7rem;
    font-weight: 500;
}

/* Utility */
.container {
    padding: 0 1.5rem;
}

/* Touch Feedback */
a:active,
button:active {
    opacity: 0.7;
}

/* Responsive */
@media (min-width: 768px) {
    body {
        max-width: 500px;
        margin: 0 auto;
        box-shadow: 0 0 20px rgba(0,0,0,0.1);
    }
}

/* Page Header */
.page-header {
    padding: 5rem 1.5rem 2rem;
    text-align: center;
    background: var(--bg);
}

.page-header.grad-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
}

.page-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    opacity: 0.8;
}

/* Filters Mobile */
.filters-mobile {
    padding: 1rem 1.5rem;
    display: flex;
    gap: 0.75rem;
}

.filter-select {
    flex: 1;
    padding: 0.875rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    background: var(--white);
    color: var(--text);
}

/* Profiles Mobile */
.profiles-mobile {
    padding: 1rem 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.profile-card-mobile {
    display: flex;
    gap: 1rem;
    background: var(--white);
    padding: 1rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    align-items: center;
}

.profile-image-mobile {
    width: 80px;
    height: 80px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-emoji {
    font-size: 3rem;
}

.profile-info-mobile h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.profile-info-mobile p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0.125rem 0;
}

/* Walks Mobile */
.walks-mobile {
    padding: 1rem 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.walk-card-mobile {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.walk-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.time-icon {
    font-size: 1.25rem;
}

.walk-card-mobile h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.walk-card-mobile p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Blog Articles Mobile */
.blog-articles-mobile {
    padding: 1rem 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.article-mobile {
    display: flex;
    gap: 1rem;
    background: var(--white);
    padding: 1.25rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--text);
    align-items: flex-start;
}

.article-icon-mobile {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.article-content-mobile {
    flex: 1;
}

.article-tag-mobile {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    background: var(--bg);
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.article-content-mobile h3 {
    font-size: 1.1rem;
    margin-bottom: 0.375rem;
    line-height: 1.3;
}

.article-content-mobile p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.4;
}
