/* ==========================================================================
   NOVAWRIGHT STUDIOS THEME
   Cleaned and organized stylesheet
   ========================================================================== */

/* ==========================================================================
   1. BASE / GLOBAL
   ========================================================================== */

body {
    background-color: #1e1e1e;
    color: #e0e0e0;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

a {
    color: #00bfff;
    text-decoration: none;
}

a:hover {
    color: #e0e0e0;
    text-decoration: underline;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ==========================================================================
   2. HEADER / TOP NAVIGATION
   ========================================================================== */

.site-header {
    position: relative;
    padding: 20px 0;
    border-bottom: 1px solid #333;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-logo {
    height: 52px;
    width: auto;
    display: block;
}

.site-title {
    color: #00bfff;
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
    flex-wrap: wrap;
}

.site-nav a {
    color: #00bfff;
    text-decoration: none;
    font-size: 1rem;
}

.site-nav a:hover {
    color: #e0e0e0;
    text-decoration: underline;
}

/* Old slide-in menu disabled */
.menu-icon,
.menu-overlay {
    display: none !important;
}

/* ==========================================================================
   3. HERO SECTION
   ========================================================================== */

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    column-gap: 60px;
}

.hero-left {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.hero-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-text-block {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    width: fit-content;
    max-width: 100%;
}

.hero-logo {
    width: 220px;
    height: auto;
    display: block;
}

.hero-right h1 {
    font-size: 2.4rem;
    margin: 0 0 20px;
    white-space: nowrap;
}

.hero .cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #00bfff;
    color: #1e1e1e;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.hero .cta-button:hover {
    background-color: #008080;
    color: #1e1e1e;
    text-decoration: none;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}


/* ==========================================================================
   4. HOMEPAGE SECTIONS
   ========================================================================== */

.home-feature,
.home-blog-roll,
.home-featured-post {
    padding: 20px 0 30px;
    margin: 0 auto;
}

.home-feature {
    padding-top: 20px;
    margin-top: 0;
}

.home-feature h1,
.home-blog-roll h1,
.home-featured-post h1 {
    font-size: 2rem;
    margin: 20px 0 10px;
}

.home-feature h2 {
    font-size: 1.5rem;
    margin-top: 0;
    color: #00bfff;
}

.home-feature p,
.home-feature blockquote {
    line-height: 1.7;
    max-width: 900px;
}

.home-feature blockquote {
    border-left: 4px solid #00bfff;
    margin: 24px 0;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.03);
}

/* Default / mobile-first spacing */
.home-feature .container {
    box-sizing: border-box;
    padding-left: 20px;
    padding-right: 20px;
}

/* Tablet / iPad spacing */
@media (min-width: 769px) and (max-width: 1024px) {
    .home-feature .container {
        padding-left: 0;
        padding-right: 20px;
    }
}

/* Desktop spacing */
@media (min-width: 1025px) {
    .home-feature .container {
        padding-left: 150px;
        padding-right: 20px;
    }
}

/* ==========================================================================
   5. NEWS / LATEST POST CARD
   ========================================================================== */

.NewsSummary {
    padding: 20px;
    background-color: #2a2a2a;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.NewsSummaryPostname {
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.NewsSummaryPostname a {
    color: #00bfff;
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
}

.NewsSummaryPostdate {
    color: #808080;
    font-style: italic;
    font-size: 14px;
    margin-bottom: 12px;
}

.NewsSummaryContent {
    color: #e0e0e0;
    line-height: 1.6;
}

.NewsSummaryMorelink a {
    color: #00bfff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.NewsSummaryMorelink a:hover {
    color: #008080;
}

/* ==========================================================================
   6. GENERIC FLEX CONTENT BLOCKS
   ========================================================================== */

.flex-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.flex-item {
    flex-basis: 100%;
    background-color: #2a2a2a;
    padding: 20px;
    border-radius: 5px;
}

.flex-item img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 15px;
}

.flex-item h2 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #00bfff;
}

.flex-item p {
    line-height: 1.6;
}

/* ==========================================================================
   7. PAGE CONTENT
   ========================================================================== */

.page-content {
    padding: 40px 0 60px;
}

.page-content h1 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.page-content p {
    line-height: 1.7;
    max-width: 800px;
}

/* ==========================================================================
   8. CONTACT PAGE / FORM
   ========================================================================== */

.contact-form {
    width: 50%;
    margin: 0 auto 50px;
}

.contact-form label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: bold;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #444;
    background-color: #333;
    color: #e0e0e0;
    border-radius: 5px;
    box-sizing: border-box;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.contact-form input[type="submit"] {
    background-color: #00bfff;
    color: #1e1e1e;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
    font-weight: bold;
    transition: background-color 0.3s;
}

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

.visit-block {
    max-width: 800px;
    margin: 0 auto;
}

.visit-block h2 {
    margin-bottom: 15px;
    color: #00bfff;
}

.hidden-botcheck {
    display: none !important;
}

/* ==========================================================================
   9. POPUP / MODAL
   ========================================================================== */

.popup-container {
    display: none;
    position: fixed;
    z-index: 101;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: #2a2a2a;
    padding: 30px;
    border-radius: 10px;
    width: 80%;
    max-width: 400px;
    text-align: center;
    position: relative;
    border: 2px solid #00bfff;
}

.close-button {
    color: #00bfff;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: #e0e0e0;
    text-decoration: none;
    cursor: pointer;
}

/* ==========================================================================
   10. BLOG PAGE SHELL
   ========================================================================== */

.section {
    padding: 48px 0;
}

.page-intro {
    padding-top: 40px;
    padding-bottom: 60px;
}

.section-header {
    margin-bottom: 32px;
}

.section-header.centered {
    text-align: center;
}

.section-label {
    display: inline-block;
    margin-bottom: 12px;
    color: #00bfff;
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-title {
    font-size: 2.25rem;
    margin: 0 0 12px;
    border: none;
    display: block;
    padding-bottom: 0;
    text-align: center;
}

.section-desc {
    max-width: 760px;
    margin: 0 auto;
    line-height: 1.7;
    color: #cfcfcf;
}

/* ==========================================================================
   11. BLOG CATEGORIES / BLOG LIST
   ========================================================================== */

.blog-categories-wrap {
    margin: 30px 0 40px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 0 auto 40px;
    max-width: 1100px;
}

.category-card {
    display: block;
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 10px;
    padding: 20px;
    color: inherit;
    text-decoration: none;
    transition: all 0.25s ease;
}

.category-card:hover {
    border-color: #00bfff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    text-decoration: none;
}

.category-card h3 {
    margin: 0 0 10px;
    color: #00bfff;
    font-size: 1.2rem;
}

.category-card p {
    margin: 0;
    color: #cfcfcf;
    line-height: 1.5;
}

.blog-post-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}

.post-card {
    background-color: #2a2a2a;
    border-radius: 10px;
    padding: 22px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.post-meta-top {
    margin-bottom: 10px;
}

.post-date {
    color: #808080;
    font-style: italic;
    font-size: 14px;
}

.post-title {
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #444;
    font-size: 1.6rem;
}

.post-title a {
    color: #00bfff;
    text-decoration: none;
}

.post-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 24px auto;
    border-radius: 6px;
    cursor: zoom-in;
}

.post-title a:hover {
    color: #e0e0e0;
    text-decoration: underline;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 14px;
    color: #b8b8b8;
    font-size: 0.95rem;
}

.post-excerpt {
    line-height: 1.7;
    color: #e0e0e0;
}

.post-more {
    margin-top: 14px;
}

.post-more a {
    color: #00bfff;
    font-weight: bold;
    text-decoration: none;
}

.post-more a:hover {
    color: #008080;
}

.compact-categories {
    margin: 28px auto 38px;
}

.category-link-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px 14px;
    max-width: 1100px;
    margin: 0 auto;
}

.category-link-pill {
    display: block;
    padding: 10px 14px;
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    color: #00bfff;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    font-size: 0.8rem;
}

.category-link-pill:hover {
    border-color: #00bfff;
    background: #303030;
    color: #e0e0e0;
    text-decoration: none;
}

@media (max-width: 900px) {
    .category-link-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .category-link-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   12. SINGLE BLOG POST
   ========================================================================== */

.blog-post-page {
    padding-top: 40px;
    padding-bottom: 60px;
}

.post-single {
    max-width: 900px;
    margin: 0 auto;
}

.single-post-meta {
    justify-content: center;
    margin-top: 12px;
    margin-bottom: 0;
}

.post-content {
    margin-top: 32px;
    line-height: 1.8;
    color: #e0e0e0;
}

.post-content p {
    margin: 0 0 1.2em;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    margin-top: 1.8em;
    margin-bottom: 0.8em;
    color: #00bfff;
}

.post-content ul,
.post-content ol {
    margin: 0 0 1.2em 1.5em;
}

.post-content li {
    margin-bottom: 0.5em;
}

.post-content blockquote {
    border-left: 4px solid #00bfff;
    margin: 24px 0;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.03);
}

.post-content a {
    color: #00bfff;
}

.post-actions {
    display: flex;
    gap: 25px;
}

.post-actions a {
    margin: 0;
}

/* .post-actions a {
    margin: 0 10px;
}

.post-actions .btn:first-child {
    margin-right: 20px;
} */

/* ==========================================================================
   13. NEWSLETTER
   ========================================================================== */

.newsletter-optin {
    margin-top: 18px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.6;
    cursor: pointer;
    color: #e0e0e0;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
}

.newsletter-divider {
    margin: 40px 0 24px;
    border-top: 1px solid #333;
}

.newsletter-signup-block {
    padding-top: 8px;
}

.newsletter-form {
    margin-top: 20px;
}

.newsletter-signup-panel {
    display: none;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.newsletter-inline-copy {
    margin-bottom: 14px;
    color: #b8b8b8;
    font-size: 0.95rem;
    text-align: center;
}

.newsletter-followup {
    margin-top: 32px;
}

.embeddable-buttondown-form {
    max-width: 520px;
    margin: 0 auto;
}

.embeddable-buttondown-form .form-label {
    display: block;
    margin-bottom: 10px;
    text-align: left;
}

.embeddable-buttondown-form p a {
    color: #b8b8b8;
    text-decoration: underline;
}

.embeddable-buttondown-form p a:hover {
    color: #e0e0e0;
}

/* ==========================================================================
   14. FOOTER
   ========================================================================== */

.site-footer {
    border-top: 1px solid #333;
    margin-top: 40px;
    padding: 20px 0 40px;
    color: #808080;
}

/* ==========================================================================
   15. RESPONSIVE
   ========================================================================== */

/* ==========================================================================
   16. BUTTONS (generic .btn used throughout product/app pages)
   ========================================================================== */

.btn {
    display: inline-block;
    padding: 10px 22px;
    background-color: #00bfff;
    color: #1e1e1e;
    font-weight: bold;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn:hover {
    background-color: #008080;
    color: #1e1e1e;
    text-decoration: none;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid #00bfff;
    color: #00bfff;
    padding: 8px 20px;
}

.btn-outline:hover {
    background-color: #00bfff;
    color: #1e1e1e;
}

.btn-muted {
    background-color: #3a3a3a;
    color: #aaa;
}

.btn-muted:hover {
    background-color: #4a4a4a;
    color: #e0e0e0;
}

/* ==========================================================================
   17. PRODUCTS / STORE
   ========================================================================== */

/* Status badges */
.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    vertical-align: middle;
}

.status-for-sale {
    background-color: #00bfff;
    color: #1e1e1e;
}

.status-in-development {
    background-color: #3a3a3a;
    color: #999;
    border: 1px solid #555;
}

.status-coming-soon {
    background-color: #3a3020;
    color: #c8a060;
    border: 1px solid #806030;
}

.status-available {
    background-color: #1a3a1a;
    color: #60c860;
    border: 1px solid #306830;
}

/* Products grid (listing page) */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
    margin-top: 32px;
}

.product-card {
    background-color: #2a2a2a;
    border-radius: 10px;
    border: 1px solid #333;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.25s, transform 0.25s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.product-card:hover {
    border-color: #00bfff;
    transform: translateY(-3px);
}

.product-card-image {
    width: 100%;
    height: 180px;
    background-color: #1a1a1a;
    border-bottom: 1px solid #2e2e2e;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3d3d3d;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    font-style: italic;
    overflow: hidden;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.product-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card-title {
    margin: 0 0 8px;
    font-size: 1.2rem;
    color: #00bfff;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.product-card-desc {
    color: #cfcfcf;
    line-height: 1.6;
    flex: 1;
    margin: 8px 0 20px;
    font-size: 0.95rem;
}

.product-card-footer {
    padding: 0 20px 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}

/* Product hero placeholder (individual product pages) */
.product-hero-placeholder {
    width: 100%;
    max-width: 860px;
    height: 360px;
    background-color: #1a1a1a;
    border: 2px dashed #333;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3d3d3d;
    font-size: 1rem;
    font-style: italic;
    letter-spacing: 0.04em;
    margin: 0 0 36px;
}

/* Product CTA block */
.product-cta-block {
    margin: 32px 0;
    padding: 24px 28px;
    background-color: #242424;
    border-left: 4px solid #00bfff;
    border-radius: 0 8px 8px 0;
}

.product-cta-block p {
    margin: 0 0 16px;
    color: #cfcfcf;
    max-width: none;
}

.product-cta-block p:last-child {
    margin-bottom: 0;
}

/* Product detail layout */
.product-detail-title {
    font-size: 2rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.product-platform-note {
    font-size: 0.85rem;
    color: #808080;
    margin-bottom: 28px;
    font-style: italic;
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-hero-placeholder {
        height: 200px;
    }

    .product-detail-title {
        font-size: 1.6rem;
    }
}

/* ==========================================================================
   15. RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }

    .site-branding {
        justify-content: center;
        width: 100%;
    }

    .site-nav {
        justify-content: center;
        gap: 18px;
        width: 100%;
    }

    .site-nav a {
        font-size: 0.95rem;
        padding: 5px 0;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        row-gap: 24px;
    }

    .hero-left,
    .hero-right {
        width: 100%;
        justify-content: center;
    }

    .hero-right {
        text-align: center;
    }

    .hero-text-block {
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .hero-right h1 {
        white-space: normal;
        font-size: 1.8rem;
    }

    .hero-text-block .cta-button {
        align-self: center;
    }

    .hero-logo {
        width: 180px;
    }

    .home-feature h1,
    .home-blog-roll h1,
    .home-featured-post h1,
    .page-content h1,
    .section-title {
        font-size: 1.8rem;
    }

    .home-feature h2 {
        font-size: 1.25rem;
    }

    .home-feature .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .post-title {
        font-size: 1.35rem;
    }

    .post-meta {
        flex-direction: column;
        gap: 6px;
    }

    .post-content {
        font-size: 1rem;
    }

    .contact-form {
        width: 100%;
    }
}