/*
Theme Name: Quick Share Photos
Theme URI: https://quicksharephotos.com
Author: Quick Share Photos
Description: Blog theme matching the QuickSharePhotos visual system — Outfit font, purple gradient header, card-based layout.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: quicksharephotos
*/

/* ─── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

/* ─── Reset ────────────────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ─── Design Tokens ────────────────────────────────────────── */
:root {
    --primary-start:    #667eea;
    --primary-end:      #764ba2;
    --primary-gradient: linear-gradient(135deg, var(--primary-start) 0%, var(--primary-end) 100%);
    --primary-light:    rgba(102, 126, 234, 0.10);
    --body-bg:          #f5f3fc;
    --card-bg:          #ffffff;
    --border:           #ebe7f4;
    --card-shadow:      0 4px 28px rgba(102, 126, 234, 0.07);
    --text-heading:     #1a1928;
    --text-body:        #444;
    --text-muted:       #5a5870;
    --text-light:       #888;
    --footer-bg:        #2d2d3f;
    --danger:           #ff4757;
    --success-bg:       #eff8f0;
    --success-text:     #2d6a3f;
    --success-border:   #b8e4c5;
}

/* ─── Base ─────────────────────────────────────────────────── */
body {
    font-family: 'Outfit', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--body-bg);
    color: var(--text-body);
    min-height: 100vh;
    line-height: 1.6;
    font-size: 16px;
}

a {
    color: var(--primary-start);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-end);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ─── Layout ───────────────────────────────────────────────── */
.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-main {
    flex: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.content-area {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 24px 80px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

.content-area.full-width {
    grid-template-columns: 1fr;
    max-width: 800px;
}

/* ─── Topbar ───────────────────────────────────────────────── */
.site-topbar {
    background: #2d2d3f;
    padding: 8px 0;
    font-size: 0.82em;
}

.topbar-link {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.topbar-link:hover {
    color: white;
}

/* ─── Header ───────────────────────────────────────────────── */
.site-header {
    background: var(--primary-gradient);
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.site-branding {
    display: flex;
    flex-direction: column;
}

.site-title {
    font-size: 1.6em;
    font-weight: 300;
    color: white;
    text-decoration: none;
    line-height: 1.2;
}

.site-title:hover {
    color: rgba(255, 255, 255, 0.85);
}

.site-description {
    font-size: 0.82em;
    opacity: 0.8;
    margin-top: 2px;
}

/* Nav */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.main-nav a {
    display: inline-block;
    background: rgba(255, 255, 255, 0.18);
    color: white;
    padding: 7px 15px;
    border-radius: 6px;
    font-size: 0.88em;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
    background: rgba(255, 255, 255, 0.30);
    color: white;
}

/* ─── Hero Banner (for archive/home top) ───────────────────── */
.page-hero {
    background: var(--primary-gradient);
    color: white;
    text-align: center;
    padding: 64px 24px 48px;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 30% 50%, rgba(255,255,255,0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(255,255,255,0.05) 0%, transparent 40%);
    pointer-events: none;
}

.page-hero-content {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.page-hero-eyebrow {
    font-size: 0.72em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    opacity: 0.75;
    margin-bottom: 14px;
}

.page-hero h1 {
    font-size: 2.4em;
    font-weight: 300;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.page-hero h1 strong {
    font-weight: 600;
}

.page-hero p {
    font-size: 1.1em;
    opacity: 0.88;
    line-height: 1.5;
}

/* ─── Post Cards (index / archive / search) ────────────────── */
.posts-grid {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.post-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(102, 126, 234, 0.14);
    border-color: #c3b8f0;
}

.post-card-thumb {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.post-card-body {
    padding: 28px 30px 30px;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8em;
    color: var(--text-light);
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.post-card-category a {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-start);
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9em;
    text-decoration: none;
    transition: background 0.2s;
}

.post-card-category a:hover {
    background: rgba(102, 126, 234, 0.18);
}

.post-card-date {
    color: var(--text-light);
}

.post-card-read-time {
    color: var(--text-light);
}

.post-card h2 {
    font-size: 1.3em;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 10px;
    line-height: 1.35;
}

.post-card h2 a {
    color: inherit;
    text-decoration: none;
}

.post-card h2 a:hover {
    color: var(--primary-start);
}

.post-card-excerpt {
    color: var(--text-muted);
    font-size: 0.95em;
    line-height: 1.65;
    margin-bottom: 20px;
}

.post-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.post-card-author {
    font-size: 0.85em;
    color: var(--text-muted);
    font-weight: 500;
}

.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.88em;
    font-weight: 600;
    color: var(--primary-start);
    text-decoration: none;
    transition: gap 0.2s ease;
}

.read-more-link:hover {
    gap: 9px;
    color: var(--primary-end);
}

/* ─── Single Post ──────────────────────────────────────────── */
.single-article {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.single-featured-image {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    display: block;
}

.single-header {
    padding: 36px 44px 28px;
    border-bottom: 1px solid var(--border);
}

.single-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.82em;
    color: var(--text-light);
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.single-category a {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-start);
    padding: 3px 11px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.95em;
    text-decoration: none;
}

.single-title {
    font-size: 2em;
    font-weight: 600;
    color: var(--text-heading);
    line-height: 1.3;
    margin-bottom: 14px;
    letter-spacing: -0.3px;
}

.single-author-line {
    font-size: 0.88em;
    color: var(--text-muted);
}

.single-author-line strong {
    color: var(--text-heading);
    font-weight: 600;
}

/* Post content typography */
.single-content {
    padding: 36px 44px 40px;
    color: #444;
    line-height: 1.8;
    font-size: 1.02em;
}

.single-content h2,
.single-content h3,
.single-content h4 {
    color: var(--text-heading);
    margin: 1.8em 0 0.7em;
    font-weight: 600;
    line-height: 1.3;
}

.single-content h2 { font-size: 1.45em; }
.single-content h3 { font-size: 1.2em; }
.single-content h4 { font-size: 1.05em; }

.single-content p {
    margin-bottom: 1.25em;
}

.single-content ul,
.single-content ol {
    margin: 0.5em 0 1.25em 1.4em;
}

.single-content li {
    margin-bottom: 0.5em;
}

.single-content blockquote {
    border-left: 4px solid var(--primary-start);
    margin: 1.5em 0;
    padding: 14px 22px;
    background: var(--primary-light);
    border-radius: 0 10px 10px 0;
    font-style: italic;
    color: var(--text-muted);
}

.single-content blockquote p:last-child {
    margin-bottom: 0;
}

.single-content code {
    background: #f0edf8;
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 0.9em;
    font-family: 'Fira Code', 'Courier New', monospace;
    color: var(--primary-end);
}

.single-content pre {
    background: #1a1928;
    color: #e8e4f8;
    padding: 20px 24px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 1.5em 0;
    font-size: 0.88em;
    line-height: 1.6;
}

.single-content pre code {
    background: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
}

.single-content img {
    border-radius: 10px;
    margin: 1em 0;
}

.single-content a {
    color: var(--primary-start);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.single-content a:hover {
    color: var(--primary-end);
}

.single-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2em 0;
}

/* Post tags */
.single-tags {
    padding: 0 44px 32px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.single-tags-label {
    font-size: 0.82em;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tag-pill {
    display: inline-block;
    background: #f0edf8;
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.82em;
    text-decoration: none;
    transition: all 0.2s;
}

.tag-pill:hover {
    background: var(--primary-light);
    border-color: var(--primary-start);
    color: var(--primary-start);
}

/* Post navigation */
.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 32px;
}

.post-nav-link {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px 22px;
    text-decoration: none;
    box-shadow: var(--card-shadow);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.post-nav-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.12);
    border-color: #c3b8f0;
}

.post-nav-link.next {
    text-align: right;
}

.post-nav-label {
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary-start);
}

.post-nav-title {
    font-size: 0.95em;
    font-weight: 600;
    color: var(--text-heading);
    line-height: 1.35;
}

/* Comments */
.comments-area {
    margin-top: 32px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 36px 44px;
    box-shadow: var(--card-shadow);
}

.comments-area h2 {
    font-size: 1.3em;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 24px;
}

.comment-list {
    list-style: none;
}

.comment {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.comment:last-child {
    border-bottom: none;
}

.comment-author-name {
    font-weight: 600;
    color: var(--text-heading);
    font-size: 0.95em;
}

.comment-date {
    font-size: 0.8em;
    color: var(--text-light);
    margin-bottom: 10px;
}

.comment-content {
    color: var(--text-body);
    font-size: 0.95em;
    line-height: 1.6;
}

/* Comment form */
.comment-respond {
    margin-top: 28px;
}

.comment-respond h3 {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 20px;
}

.comment-form p {
    margin-bottom: 16px;
}

.comment-form label {
    display: block;
    font-size: 0.85em;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 11px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95em;
    color: var(--text-heading);
    background: #faf9fd;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--primary-start);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.10);
}

.comment-form textarea {
    min-height: 130px;
    resize: vertical;
}

.comment-form input[type="submit"] {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
}

.comment-form input[type="submit"]:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* ─── Sidebar ──────────────────────────────────────────────── */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.widget {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px 26px;
    box-shadow: var(--card-shadow);
}

.widget-title {
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-start);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}

.widget ul {
    list-style: none;
}

.widget ul li {
    padding: 7px 0;
    border-bottom: 1px solid #f5f3fc;
    font-size: 0.92em;
}

.widget ul li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.widget ul li a {
    color: var(--text-muted);
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s;
}

.widget ul li a:hover {
    color: var(--primary-start);
}

.widget-search-form {
    display: flex;
    gap: 8px;
}

.widget-search-form input[type="search"] {
    flex: 1;
    padding: 9px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9em;
    outline: none;
    transition: border-color 0.2s;
    background: #faf9fd;
    color: var(--text-heading);
}

.widget-search-form input:focus {
    border-color: var(--primary-start);
}

.widget-search-form button {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 9px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9em;
    transition: opacity 0.2s;
}

.widget-search-form button:hover {
    opacity: 0.88;
}

/* ─── Pagination ───────────────────────────────────────────── */
.pagination-wrap {
    margin-top: 44px;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9em;
    transition: all 0.25s ease;
}

.pagination a.page-numbers {
    background: var(--card-bg);
    color: var(--primary-start);
    border: 1px solid var(--border);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.pagination a.page-numbers:hover {
    background: var(--primary-start);
    color: white;
    border-color: var(--primary-start);
    transform: translateY(-2px);
}

.pagination .current {
    background: var(--primary-gradient);
    color: white;
    border: 1px solid transparent;
}

.pagination .dots {
    color: var(--text-light);
    padding: 0 6px;
}

/* ─── Static Page ──────────────────────────────────────────── */
.page-article {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.page-header-inner {
    padding: 36px 44px 28px;
    border-bottom: 1px solid var(--border);
}

.page-title-main {
    font-size: 2em;
    font-weight: 600;
    color: var(--text-heading);
    line-height: 1.3;
}

.page-content {
    padding: 36px 44px 44px;
    color: #444;
    line-height: 1.8;
    font-size: 1.02em;
}

.page-content h2,
.page-content h3,
.page-content h4 {
    color: var(--text-heading);
    margin: 1.8em 0 0.7em;
    font-weight: 600;
}

.page-content h2 { font-size: 1.45em; }
.page-content h3 { font-size: 1.2em; }

.page-content p { margin-bottom: 1.25em; }

.page-content ul,
.page-content ol {
    margin: 0.5em 0 1.25em 1.4em;
}

.page-content li { margin-bottom: 0.5em; }

.page-content a {
    color: var(--primary-start);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.page-content blockquote {
    border-left: 4px solid var(--primary-start);
    margin: 1.5em 0;
    padding: 14px 22px;
    background: var(--primary-light);
    border-radius: 0 10px 10px 0;
    font-style: italic;
    color: var(--text-muted);
}

.page-content img { border-radius: 10px; margin: 1em 0; }

/* ─── Archive / Search Title ───────────────────────────────── */
.archive-header {
    margin-bottom: 32px;
}

.archive-title {
    font-size: 1.5em;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 6px;
}

.archive-description {
    color: var(--text-muted);
    font-size: 0.95em;
}

/* ─── 404 ──────────────────────────────────────────────────── */
.error-404-wrap {
    text-align: center;
    padding: 80px 24px;
    max-width: 560px;
    margin: 0 auto;
}

.error-404-code {
    font-size: 6em;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 16px;
}

.error-404-wrap h2 {
    font-size: 1.6em;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 12px;
}

.error-404-wrap p {
    color: var(--text-muted);
    font-size: 1.05em;
    margin-bottom: 30px;
    line-height: 1.6;
}

.btn-gradient {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.97em;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.15s;
}

.btn-gradient:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    color: white;
}

/* ─── No Posts ─────────────────────────────────────────────── */
.no-posts {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: var(--card-shadow);
}

.no-posts p {
    color: var(--text-muted);
    font-size: 1.05em;
}

/* ─── Footer ───────────────────────────────────────────────── */
.site-footer {
    background: var(--footer-bg);
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
    padding: 28px 24px;
    font-size: 0.88em;
    margin-top: auto;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer a:hover {
    color: white;
}

.site-footer .footer-sep {
    margin: 0 8px;
    opacity: 0.35;
}

.footer-nav {
    margin-top: 8px;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 6px 20px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9em;
}

.footer-nav a:hover {
    color: white;
}

/* ─── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
    .content-area {
        grid-template-columns: 1fr;
    }

    .sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .site-title {
        font-size: 1.35em;
    }

    .main-nav ul {
        gap: 6px;
    }

    .page-hero {
        padding: 48px 20px 36px;
    }

    .page-hero h1 {
        font-size: 1.9em;
    }

    .single-header,
    .single-content,
    .single-tags,
    .comments-area {
        padding-left: 24px;
        padding-right: 24px;
    }

    .single-title {
        font-size: 1.6em;
    }

    .page-header-inner,
    .page-content {
        padding-left: 24px;
        padding-right: 24px;
    }

    .post-card-body {
        padding: 22px 22px 24px;
    }

    .post-nav {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .content-area {
        padding: 28px 16px 60px;
    }

    .error-404-code {
        font-size: 4.5em;
    }
}
