/*
Theme Name: Pillcare
Theme URI: https://pillcare.com
Author: Pillcare Team
Author URI: https://pillcare.com
Description: A custom WordPress theme for Pillcare with reusable templates and starter page support.
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pillcare
Tags: custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root {
    --pillcare-bg: #f5f7fb;
    --pillcare-surface: #ffffff;
    --pillcare-border: #d9e1ec;
    --pillcare-text: #18324a;
    --pillcare-muted: #5d7388;
    --pillcare-accent: #198f78;
    --pillcare-accent-dark: #126b59;
    --pillcare-shadow: 0 18px 40px rgba(24, 50, 74, 0.08);
    --pillcare-radius: 20px;
    --pillcare-max: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--pillcare-text);
    background:
        radial-gradient(circle at top left, rgba(25, 143, 120, 0.12), transparent 30%),
        linear-gradient(180deg, #f9fcff 0%, var(--pillcare-bg) 100%);
}

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

a:hover,
a:focus {
    color: var(--pillcare-accent-dark);
}

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

input,
button,
textarea,
select {
    font: inherit;
}

button,
.search-submit,
input[type="submit"] {
    border: 0;
    border-radius: 999px;
    background: var(--pillcare-accent);
    color: #fff;
    cursor: pointer;
    padding: 0.8rem 1.2rem;
}

input[type="search"],
input[type="text"],
input[type="email"],
input[type="url"],
textarea {
    width: 100%;
    border: 1px solid var(--pillcare-border);
    border-radius: 16px;
    padding: 0.85rem 1rem;
    background: #fff;
}

.container {
    width: min(100% - 2rem, var(--pillcare-max));
    margin: 0 auto;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus {
    clip: auto;
    width: auto;
    height: auto;
    margin: 1rem;
    padding: 1rem;
    background: #fff;
    z-index: 1000;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(14px);
    background: rgba(249, 252, 255, 0.92);
    border-bottom: 1px solid rgba(217, 225, 236, 0.9);
}

.header-shell {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 1.25rem;
    align-items: center;
    padding: 1rem 0;
}

.site-branding {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.custom-logo {
    max-height: 64px;
    width: auto;
}

.site-title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
}

.site-title a {
    color: var(--pillcare-text);
}

.site-description {
    margin: 0.2rem 0 0;
    color: var(--pillcare-muted);
    font-size: 0.95rem;
}

.main-navigation ul,
.footer-navigation ul {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 0;
    margin: 0;
    list-style: none;
}

.main-navigation a,
.footer-navigation a {
    color: var(--pillcare-text);
    font-weight: 600;
}

.menu-toggle {
    display: none;
}

.header-tools {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.header-search .search-form {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.header-search .search-field {
    min-width: 220px;
}

.social-links {
    display: flex;
    gap: 0.5rem;
}

.social-link {
    width: 2.2rem;
    height: 2.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--pillcare-border);
    border-radius: 50%;
    background: #fff;
    color: var(--pillcare-text);
}

.breadcrumbs-wrap {
    padding: 1rem 0 0;
}

.breadcrumb {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    color: var(--pillcare-muted);
    font-size: 0.95rem;
}

.breadcrumb span::before {
    content: "/";
    margin-right: 0.75rem;
}

.site-content {
    padding: 2rem 0 4rem;
}

.site-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 2rem;
    align-items: start;
}

.site-main {
    min-width: 0;
}

.content-list {
    display: grid;
    gap: 1.5rem;
}

.content-card,
.widget,
.no-results,
.comments-area,
.error-404 {
    padding: 2.5rem 1.5rem;
}

.entry-title,
.archive-title,
.page-title {
    margin: 0 0 1rem;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    line-height: 1.15;
}

.entry-meta,
.archive-description,
.footer-copyright {
    color: var(--pillcare-muted);
}

.entry-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.post-thumbnail {
    overflow: hidden;
    border-radius: 18px;
    margin-bottom: 1rem;
}

.post-thumbnail img {
    width: 100%;
}

.widget-area {
    display: grid;
    gap: 1.5rem;
}

.widget-title,
.footer-widget-title {
    margin-top: 0;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.footer-widget {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid var(--pillcare-border);
    border-radius: 18px;
    padding: 1.25rem;
}

.site-footer {
    border-top: 1px solid var(--pillcare-border);
    padding: 2rem 0 3rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.search-form {
    display: flex;
    gap: 0.75rem;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.comment-item + .comment-item {
    margin-top: 1rem;
}

.comment-body {
    border: 1px solid var(--pillcare-border);
    border-radius: 16px;
    padding: 1rem;
}

.comment-author {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.blank-main {
    width: min(100% - 2rem, 1100px);
    margin: 2rem auto;
}

@media (max-width: 991px) {
    .header-shell,
    .site-content-grid,
    .footer-widgets,
    .footer-bottom {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        display: grid;
    }

    .main-navigation {
        display: none;
    }

    .main-navigation.is-open {
        display: block;
    }

    .main-navigation ul {
        flex-direction: column;
        align-items: flex-start;
    }

    .menu-toggle {
        display: inline-flex;
        justify-content: center;
        width: fit-content;
    }

    .header-tools {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .header-search .search-form,
    .search-form {
        flex-direction: column;
    }

    .header-search .search-field {
        min-width: 0;
    }
}
