/*
Theme Name: EasyPlate Theme
Theme URI: https://example.com/easyplate
Author: Antigravity
Description: A premium, dark-themed WordPress theme with a grid-based blog layout and customizable header/footer.
Version: 2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: easyplate
*/

/* Core Reset & Typography */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #ffffff;
    color: #334155;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    font-size: 16px;
    padding-top: 72px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #0f172a;
}

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

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header Styles */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #ffffff;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.scrolled {
    background: #ffffff;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.08);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    text-decoration: none;
}

.site-title {
    font-size: 24px;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.5px;
    line-height: 1;
}

.site-title a,
.site-title a:hover {
    background: linear-gradient(135deg, #ff6b35 0%, #ff9a5c 50%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.site-description {
    font-size: 12px;
    color: #64748b;
    margin: 0;
    font-weight: 400;
}

.custom-logo-link img {
    height: 40px;
    width: auto;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    color: #334155;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 6px;
    display: block;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.main-navigation a:hover,
.main-navigation .current-menu-item>a {
    color: #0f172a;
    background: rgba(0, 0, 0, 0.05);
}

.main-navigation .login-link a {
    background: linear-gradient(135deg, #ff6b35, #e55a2b);
    color: #fff !important;
    padding: 9px 22px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 14px rgba(255, 107, 53, 0.4);
    -webkit-text-fill-color: white;
}

.main-navigation .login-link a:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.45);
    background: linear-gradient(135deg, #ff7a4a, #e55a2b);
}

.main-navigation .logout-link a {
    color: rgba(0, 0, 0, 0.45);
}

.main-navigation .user-greeting a {
    color: rgba(0, 0, 0, 0.35);
    font-size: 13px;
    cursor: default;
    pointer-events: none;
}

/* Grid Layout */
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff6b35;
}

.container {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.post-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.post-card:hover {
    transform: translateY(-5px);
}

.post-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #e2e8f0;
}

.post-content {
    padding: 1.5rem;
}

.post-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #0f172a;
}

.post-excerpt {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 1.5rem;
}

.read-more {
    color: #ff6b35;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Footer Styles */
.site-footer {
    background-color: #0b0f19;
    padding: 4rem 5% 2rem;
    border-top: 1px solid #1e293b;
    margin-top: 5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand .logo {
    display: block;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: #94a3b8;
    font-size: 0.9rem;
    max-width: 300px;
}

.footer-column h4 {
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #94a3b8;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid #1e293b;
    color: #64748b;
    font-size: 0.85rem;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.15s ease;
    z-index: 1100;
}

.menu-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #334155;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

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

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

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

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(8, 10, 18, 0.97);
    z-index: 999;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 32px 40px;
    animation: slideDown 0.3s ease forwards;
}

.mobile-nav-overlay.is-open {
    display: flex;
}

.mobile-nav-overlay ul {
    width: 100%;
    max-width: 320px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-nav-overlay a {
    display: block;
    color: rgba(255, 255, 255, 0.85);
    font-size: 20px;
    font-weight: 600;
    padding: 14px 24px;
    border-radius: 12px;
    transition: all 0.15s ease;
}

.mobile-nav-overlay a:hover {
    background: rgba(255, 255, 255, 0.09);
    color: white;
}

.mobile-nav-overlay .login-link a {
    background: linear-gradient(135deg, #ff6b35, #e55a2b);
    color: white !important;
    margin-top: 16px;
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.45);
    -webkit-text-fill-color: white;
}

.mobile-nav-overlay .user-greeting a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
}

/* Admin Bar Compatibility */
body.admin-bar .site-header {
    top: 32px;
}

body.admin-bar {
    padding-top: calc(72px + 32px) !important;
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }

    body.admin-bar {
        padding-top: calc(72px + 46px) !important;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.75rem !important;
    }

    .menu-toggle {
        display: flex;
    }

    .main-navigation {
        display: none;
    }

    .container {
        margin: 2rem auto;
    }

    .post-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
    }
}

/* Single Post & Content */
.single-post-container {
    max-width: 800px !important;
}

.post-header {
    margin-bottom: 2rem;
}

.entry-title {
    font-size: 2.5rem;
    color: #0f172a;
    margin-bottom: 1rem;
}

.post-meta {
    color: #64748b;
    font-size: 0.9rem;
}

.post-featured-image {
    margin-bottom: 2.5rem;
}

.post-featured-image img {
    width: 100%;
    border-radius: 16px;
    height: auto;
}

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

.post-footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.tags {
    color: #ff6b35;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content blockquote {
    border-left: 4px solid #ff6b35;
    padding-left: 2rem;
    margin: 2rem 0;
    font-style: italic;
    color: #334155;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

.comments-area {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid #e2e8f0;
}

.comments-title,
.comment-reply-title {
    font-size: 1.5rem;
    color: #0f172a;
    margin-bottom: 2rem;
    display: block;
}

.comment-list {
    list-style: none;
    margin-bottom: 4rem;
}

.comment {
    margin-bottom: 2.5rem;
}

.comment-body {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.comment-meta {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #64748b;
}

.comment-author cite {
    font-weight: 600;
    color: #0f172a;
    font-style: normal;
    margin-right: 0.5rem;
}

.comment-content {
    color: #334155;
}

.reply {
    margin-top: 1rem;
}

.comment-reply-link {
    color: #ff6b35;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Comment Form */
#commentform {
    display: grid;
    gap: 1.5rem;
}

.comment-form-comment textarea {
    width: 100%;
    min-height: 150px;
}

#commentform input[type="text"],
#commentform input[type="email"],
#commentform input[type="url"],
#commentform textarea {
    width: 100%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

#commentform input:focus,
#commentform textarea:focus {
    outline: none;
    border-color: #ff6b35;
}

#commentform label {
    display: block;
    margin-bottom: 0.5rem;
    color: #64748b;
    font-size: 0.9rem;
}

.form-submit input[type="submit"] {
    background: #ff6b35;
    color: #ffffff;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

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

@media (max-width: 768px) {
    .entry-content {
        font-size: 1rem !important;
    }

    .comment-body {
        padding: 1rem;
    }
}