/*
Theme Name: Frenchie iOS
Theme URI: https://example.com/frenchie-ios
Author: Boutique Kennel Dev
Author URI: https://example.com
Description: A clean, native iOS-inspired WordPress theme designed for French Bulldog breeders.
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: frenchie-ios
*/

:root {
    --ios-bg: #F2F2F7;
    --ios-surface: #FFFFFF;
    --ios-surface-translucent: rgba(255, 255, 255, 0.78);
    --ios-label: #000000;
    --ios-secondary-label: rgba(60, 60, 67, 0.6);
    --ios-tertiary-label: rgba(60, 60, 67, 0.3);
    --ios-separator: rgba(60, 60, 67, 0.14);
    --ios-fill: rgba(120, 120, 128, 0.12);
    --ios-blue: #007AFF;
    --ios-blue-hover: #0062CC;
    --ios-radius-lg: 20px;
    --ios-radius-md: 14px;
    --ios-radius-pill: 9999px;
    --ios-shadow: 0 4px 20px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.03);
    --ios-shadow-hover: 0 12px 28px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
    --font-ios: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

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

body {
    background-color: var(--ios-bg);
    color: var(--ios-label);
    font-family: var(--font-ios);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

/* iOS Translucent Frosted Navigation Bar */
.ios-navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--ios-surface-translucent);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 0.5px solid var(--ios-separator);
    padding: 14px 0;
}

.navbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.site-brand {
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ios-label);
}

/* Segmented Control Style Navigation */
.ios-nav-pills ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--ios-fill);
    padding: 3px;
    border-radius: var(--ios-radius-pill);
    flex-wrap: wrap;
}

.ios-nav-pills li a {
    display: block;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--ios-label);
    border-radius: var(--ios-radius-pill);
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.ios-nav-pills li a:hover,
.ios-nav-pills li.current-menu-item a,
.ios-nav-pills li.current_page_item a {
    background: var(--ios-surface);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* iOS Large Title Header */
.ios-large-header {
    padding: 32px 0 24px;
}

.ios-kicker {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ios-secondary-label);
    margin-bottom: 4px;
}

.ios-large-title {
    font-size: 2.15rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--ios-label);
}

.ios-subtitle {
    margin-top: 8px;
    font-size: 0.95rem;
    color: var(--ios-secondary-label);
    max-width: 640px;
}

/* iOS App Store / Widget Style Card Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.ios-card {
    background: var(--ios-surface);
    border-radius: var(--ios-radius-lg);
    overflow: hidden;
    box-shadow: var(--ios-shadow);
    transition: transform 0.28s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.28s ease;
    display: flex;
    flex-direction: column;
}

.ios-card:hover {
    transform: translateY(-4px) scale(1.008);
    box-shadow: var(--ios-shadow-hover);
}

.ios-card:active {
    transform: scale(0.985);
}

.card-image-wrap {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: #E5E5EA;
    position: relative;
}

.card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.ios-card:hover .card-image-wrap img {
    transform: scale(1.04);
}

.card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ios-secondary-label);
    font-size: 0.85rem;
    font-weight: 500;
}

.card-body {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.card-title {
    font-size: 1.08rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.3;
    color: var(--ios-label);
}

.card-chevron {
    color: var(--ios-tertiary-label);
    font-size: 1.1rem;
    font-weight: 600;
    flex-shrink: 0;
    transition: transform 0.2s ease, color 0.2s ease;
}

.ios-card:hover .card-chevron {
    color: var(--ios-blue);
    transform: translateX(2px);
}

/* Single Post Sheet */
.single-sheet {
    max-width: 760px;
    margin: 28px auto 64px;
    background: var(--ios-surface);
    border-radius: var(--ios-radius-lg);
    box-shadow: var(--ios-shadow);
    overflow: hidden;
}

.single-hero-image img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
}

.single-content-wrap {
    padding: 32px 36px 40px;
}

.single-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin-bottom: 10px;
}

.single-meta {
    font-size: 0.875rem;
    color: var(--ios-secondary-label);
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 0.5px solid var(--ios-separator);
}

.single-meta a {
    color: var(--ios-blue);
    font-weight: 500;
}

.entry-content {
    font-size: 1.05rem;
    line-height: 1.65;
    color: #1C1C1E;
}

.entry-content p {
    margin-bottom: 1.35em;
}

/* Grouped iOS Settings-Style Taxonomy List */
.ios-grouped-meta {
    margin-top: 32px;
    background: var(--ios-bg);
    border-radius: var(--ios-radius-md);
    padding: 4px 16px;
}

.ios-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 0.9rem;
    gap: 16px;
}

.ios-meta-row + .ios-meta-row {
    border-top: 0.5px solid var(--ios-separator);
}

.ios-meta-label {
    font-weight: 500;
    color: var(--ios-label);
}

.ios-meta-value {
    color: var(--ios-secondary-label);
    text-align: right;
}

.ios-meta-value a {
    color: var(--ios-blue);
}

/* iOS Pill Pagination */
.pagination {
    margin-bottom: 56px;
    text-align: center;
}

.pagination .nav-links {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ios-surface);
    padding: 6px;
    border-radius: var(--ios-radius-pill);
    box-shadow: var(--ios-shadow);
}

.pagination a,
.pagination span {
    padding: 6px 14px;
    border-radius: var(--ios-radius-pill);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ios-label);
    transition: background-color 0.2s ease;
}

.pagination a:hover {
    background: var(--ios-fill);
}

.pagination .current {
    background: var(--ios-blue);
    color: #FFFFFF;
}

/* Empty State Card */
.ios-empty-card {
    background: var(--ios-surface);
    border-radius: var(--ios-radius-lg);
    padding: 48px 24px;
    text-align: center;
    color: var(--ios-secondary-label);
    box-shadow: var(--ios-shadow);
    margin-bottom: 56px;
}

/* Footer with iOS Spotlight Search Bar */
.site-footer {
    padding: 36px 0 48px;
    border-top: 0.5px solid var(--ios-separator);
    text-align: center;
}

.ios-search-bar {
    max-width: 380px;
    margin: 0 auto 20px;
    position: relative;
}

.ios-search-bar form {
    display: flex;
    align-items: center;
    background: var(--ios-fill);
    border-radius: 12px;
    padding: 4px 6px 4px 14px;
}

.ios-search-icon {
    color: var(--ios-secondary-label);
    font-size: 0.95rem;
    margin-right: 8px;
    user-select: none;
}

.ios-search-bar input[type="search"] {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px 4px;
    font-family: var(--font-ios);
    font-size: 0.95rem;
    color: var(--ios-label);
    outline: none;
}

.ios-search-bar input[type="search"]::placeholder {
    color: var(--ios-secondary-label);
}

.ios-search-bar button {
    background: var(--ios-blue);
    color: #FFFFFF;
    border: none;
    border-radius: 9px;
    padding: 7px 14px;
    font-family: var(--font-ios);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.ios-search-bar button:hover {
    background: var(--ios-blue-hover);
}

.footer-note {
    font-size: 0.82rem;
    color: var(--ios-secondary-label);
}

@media (max-width: 640px) {
    .ios-large-title {
        font-size: 1.75rem;
    }
    .single-content-wrap {
        padding: 24px 20px 32px;
    }
    .single-title {
        font-size: 1.6rem;
    }
}

.site-branding-inline {
    display: flex;
    align-items: center; /* Vertically centers the icon and text */
    gap: 12px;           /* Adds space between the icon and site name */
}

.site-branding-inline .site-icon {
    width: 40px;         /* Change this from 64px to 40px or smaller */
    height: auto;
    object-fit: contain;
}

.site-branding-inline .site-title {
    font-size: 1.5rem;   /* Adjust text size to match the larger icon */
    font-weight: bold;
    line-height: 1.2;
}

/* Applies only on desktop/laptop screens (768px and wider) */
@media (min-width: 768px) {
    .single-hero-image img {
        max-width: 500px; /* Adjust this pixel value or use a % like 60% */
        height: auto;
        display: block;
        margin: 0 auto;   /* Centers the image; remove if you want it left-aligned */
    }
}