/*
Theme Name: Flavor
Theme URI: https://wordpress-analytics.com
Author: Ellie Vanderstaat
Description: A modern, lightweight theme for WordPress Analytics - clean design with Tailwind CSS
Version: 1.0.0
Text Domain: flavor
*/

/* ==========================================================================
   Base / Reset Overrides
   ========================================================================== */

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.75;
    color: #1e293b;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ==========================================================================
   Entry Content — Prose-like Typography
   ========================================================================== */

.entry-content {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #334155;
}

.entry-content > * + * {
    margin-top: 1.5em;
}

.entry-content h2 {
    font-size: 1.625rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    margin-top: 2.5em;
    margin-bottom: 0.75em;
    letter-spacing: -0.01em;
}

.entry-content h3 {
    font-size: 1.3125rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.4;
    margin-top: 2em;
    margin-bottom: 0.5em;
}

.entry-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
    margin-top: 1.75em;
    margin-bottom: 0.5em;
}

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

.entry-content a {
    color: #0f766e;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.15s ease;
}

.entry-content a:hover {
    color: #14b8a6;
}

.entry-content strong {
    font-weight: 600;
    color: #0f172a;
}

.entry-content ul,
.entry-content ol {
    padding-left: 1.75em;
    margin-top: 1.25em;
    margin-bottom: 1.25em;
}

.entry-content ul {
    list-style-type: disc;
}

.entry-content ol {
    list-style-type: decimal;
}

.entry-content li {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    padding-left: 0.375em;
}

.entry-content li::marker {
    color: #0f766e;
}

.entry-content hr {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 2.5em 0;
}

.entry-content code {
    font-size: 0.875em;
    background: #f1f5f9;
    color: #0f766e;
    padding: 0.2em 0.4em;
    border-radius: 0.25rem;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.entry-content pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 1.25rem 1.5rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    font-size: 0.875rem;
    line-height: 1.7;
    margin: 1.75em 0;
}

.entry-content pre code {
    background: none;
    color: inherit;
    padding: 0;
    border-radius: 0;
    font-size: inherit;
}

/* ==========================================================================
   WordPress Block Styles
   ========================================================================== */

/* Block Image */
.wp-block-image {
    margin: 2em 0;
}

.wp-block-image img {
    border-radius: 0.5rem;
}

.wp-block-image figcaption {
    font-size: 0.8125rem;
    color: #64748b;
    text-align: center;
    margin-top: 0.625rem;
    font-style: italic;
}

/* Block Quote */
.wp-block-quote,
.entry-content blockquote {
    border-left: 4px solid #0f766e;
    padding: 1rem 1.5rem;
    margin: 1.75em 0;
    background: #f0fdfa;
    border-radius: 0 0.5rem 0.5rem 0;
    color: #334155;
    font-style: italic;
}

.wp-block-quote p:first-child {
    margin-top: 0;
}

.wp-block-quote p:last-child {
    margin-bottom: 0;
}

.wp-block-quote cite,
.entry-content blockquote cite {
    display: block;
    font-size: 0.8125rem;
    color: #64748b;
    margin-top: 0.75rem;
    font-style: normal;
    font-weight: 500;
}

/* Block Table */
.wp-block-table {
    margin: 1.75em 0;
    overflow-x: auto;
}

.wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.wp-block-table th {
    background: #f1f5f9;
    font-weight: 600;
    color: #0f172a;
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.wp-block-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
}

.wp-block-table tbody tr:hover {
    background: #f8fafc;
}

/* Block Separator */
.wp-block-separator {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 2.5em auto;
}

.wp-block-separator.is-style-wide {
    max-width: 100%;
}

.wp-block-separator.is-style-dots {
    border: none;
    text-align: center;
    line-height: 1;
}

/* Block Columns */
.wp-block-columns {
    gap: 1.5rem;
    margin: 1.75em 0;
}

/* Block Cover */
.wp-block-cover {
    border-radius: 0.5rem;
    overflow: hidden;
    margin: 1.75em 0;
}

/* Block Gallery */
.wp-block-gallery {
    margin: 1.75em 0;
}

.wp-block-gallery .wp-block-image {
    margin: 0;
}

.wp-block-gallery .wp-block-image img {
    border-radius: 0.375rem;
}

/* Block Buttons */
.wp-block-button__link {
    background: #0f766e;
    color: #ffffff;
    padding: 0.625rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: background 0.15s ease;
    display: inline-block;
}

.wp-block-button__link:hover {
    background: #14b8a6;
    color: #ffffff;
}

/* Block List */
.wp-block-list {
    padding-left: 1.75em;
}

/* Block Group */
.wp-block-group {
    margin: 1.75em 0;
}

/* Block Embed */
.wp-block-embed {
    margin: 1.75em 0;
}

.wp-block-embed__wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.wp-block-embed__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Block Code */
.wp-block-code {
    background: #0f172a;
    color: #e2e8f0;
    padding: 1.25rem 1.5rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    font-size: 0.875rem;
    line-height: 1.7;
    margin: 1.75em 0;
}

/* Block Preformatted */
.wp-block-preformatted {
    background: #f1f5f9;
    padding: 1.25rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    overflow-x: auto;
}

/* ==========================================================================
   Contact Form 7 Styles
   ========================================================================== */

.wpcf7 {
    max-width: 36rem;
}

.wpcf7-form p {
    margin-bottom: 1.25rem;
}

.wpcf7-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1e293b;
    margin-bottom: 0.375rem;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    font-family: 'Inter', system-ui, sans-serif;
    color: #1e293b;
    background: #ffffff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    outline: none;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="url"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form textarea:focus {
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.wpcf7-form textarea {
    min-height: 8rem;
    resize: vertical;
}

.wpcf7-form input[type="submit"] {
    background: #0f766e;
    color: #ffffff;
    padding: 0.625rem 1.75rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    font-family: 'Inter', system-ui, sans-serif;
    cursor: pointer;
    transition: background 0.15s ease;
}

.wpcf7-form input[type="submit"]:hover {
    background: #14b8a6;
}

.wpcf7-response-output {
    border: none !important;
    padding: 0.75rem 1rem !important;
    border-radius: 0.5rem !important;
    font-size: 0.875rem !important;
    margin: 1.25rem 0 0 !important;
}

.wpcf7-mail-sent-ok {
    background: #f0fdfa;
    color: #0f766e;
}

.wpcf7-validation-errors,
.wpcf7-not-valid-tip {
    color: #dc2626;
    font-size: 0.8125rem;
}

.wpcf7-not-valid {
    border-color: #fca5a5 !important;
}

/* ==========================================================================
   WordPress Navigation & Pagination
   ========================================================================== */

.navigation.pagination {
    margin: 3rem 0;
    text-align: center;
}

.navigation.pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.375rem;
    flex-wrap: wrap;
}

.navigation.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    text-decoration: none;
    transition: all 0.15s ease;
    border: 1px solid #e2e8f0;
    background: #ffffff;
}

.navigation.pagination .page-numbers:hover {
    background: #f1f5f9;
    color: #0f766e;
    border-color: #0f766e;
}

.navigation.pagination .page-numbers.current {
    background: #0f766e;
    color: #ffffff;
    border-color: #0f766e;
}

.navigation.pagination .page-numbers.dots {
    border: none;
    background: none;
}

.post-navigation {
    margin: 3rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid #e2e8f0;
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
}

.post-navigation .nav-previous a,
.post-navigation .nav-next a {
    color: #0f766e;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.15s ease;
}

.post-navigation .nav-previous a:hover,
.post-navigation .nav-next a:hover {
    color: #14b8a6;
}

/* ==========================================================================
   WordPress Alignments
   ========================================================================== */

.alignwide {
    max-width: 100%;
    margin-left: -1rem;
    margin-right: -1rem;
}

.alignfull {
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

/* ==========================================================================
   Screen Reader Text (accessibility)
   ========================================================================== */

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ==========================================================================
   Utility
   ========================================================================== */

.sticky-header-active {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Entry Content — Additional Prose Styles (for single.php / page.php)
   ========================================================================== */

.entry-content h2 {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

.entry-content blockquote {
    border-left: 4px solid #14b8a6;
    padding-left: 1.5rem;
    font-style: italic;
    color: #475569;
    background: #f8fafc;
    padding: 1rem 1.5rem;
    border-radius: 0 0.5rem 0.5rem 0;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
}

.entry-content th {
    background: #f8fafc;
    font-weight: 600;
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.entry-content td {
    border-bottom: 1px solid #e2e8f0;
    padding: 0.75rem 1rem;
}

.entry-content img {
    border-radius: 0.5rem;
    margin: 2rem auto;
    max-width: 100%;
    display: block;
}

/* ==========================================================================
   Comment Form Styles
   ========================================================================== */

.comment-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1e293b;
    margin-bottom: 0.375rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    font-family: 'Inter', system-ui, sans-serif;
    color: #1e293b;
    background: #ffffff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    outline: none;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.comment-form textarea {
    min-height: 8rem;
    resize: vertical;
}

.comment-form .comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comment-form .comment-form-cookies-consent input[type="checkbox"] {
    accent-color: #0f766e;
}

.comment-form .comment-form-cookies-consent label {
    display: inline;
    font-size: 0.8125rem;
    color: #64748b;
    margin-bottom: 0;
}

/* Comment list nested replies */
.comment-list .children {
    list-style: none;
    padding-left: 1.5rem;
    margin-top: 1rem;
}

.comment-list .children li {
    margin-top: 0.75rem;
}
