/*
Theme Name: NovaBlend
Theme URI: https://example.com/
Author: NovaBlend
Author URI: https://example.com/
Description: NovaBlend is a modern, colorful, responsive and professional WordPress theme.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: novablend
*/

/* =========================================================
   1. ROOT VARIABLES
========================================================= */

:root {
    --primary: #e63946;
    --secondary: #2563eb;
    --success: #16a34a;
    --orange: #f97316;

    --dark: #111827;
    --dark-light: #1f2937;
    --text: #374151;
    --muted: #6b7280;

    --white: #ffffff;
    --light: #f8fafc;
    --border: #e5e7eb;

    --gradient: linear-gradient(
        135deg,
        #e63946 0%,
        #f97316 35%,
        #2563eb 70%,
        #16a34a 100%
    );

    --gradient-blue: linear-gradient(
        135deg,
        #2563eb,
        #06b6d4
    );

    --gradient-orange: linear-gradient(
        135deg,
        #f97316,
        #e63946
    );

    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.14);

    --radius: 12px;
    --transition: all 0.3s ease;
}

/* =========================================================
   2. RESET
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 16px;
    line-height: 1.7;

    color: var(--text);
    background: var(--white);

    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--secondary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary);
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

ul,
ol {
    margin: 0;
    padding: 0;
}

p {
    margin: 0 0 15px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 15px;
    color: var(--dark);
    line-height: 1.3;
    font-weight: 700;
}

/* =========================================================
   3. CONTAINER
========================================================= */

.container {
    width: min(1200px, 92%);
    margin: 0 auto;
}

/* =========================================================
   4. WORDPRESS DEFAULT CLASSES
========================================================= */

.alignleft {
    float: left;
    margin: 0 20px 20px 0;
}

.alignright {
    float: right;
    margin: 0 0 20px 20px;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* =========================================================
   5. HEADER
========================================================= */

.site-header {
    position: relative;
    z-index: 999;

    width: 100%;
    background: var(--white);

    border-bottom: 1px solid var(--border);

    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header-container {
    width: min(1200px, 92%);
    min-height: 78px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

/* Logo */

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 26px;
    font-weight: 800;

    color: var(--dark);
    white-space: nowrap;
}

.site-logo:hover {
    color: var(--primary);
}

.site-logo img {
    max-height: 55px;
    width: auto;
}

/* Site branding */

.site-title {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
}

.site-description {
    margin: 0;
    font-size: 12px;
    color: var(--muted);
}

/* =========================================================
   6. NAVIGATION
========================================================= */

.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    list-style: none;

    display: flex;
    align-items: center;
    gap: 5px;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;

    padding: 10px 15px;

    color: var(--dark);
    font-weight: 600;

    border-radius: 8px;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
    color: var(--white);
    background: var(--gradient);
}

/* Dropdown */

.main-navigation ul ul {
    position: absolute;

    top: 100%;
    left: 0;

    min-width: 210px;

    padding: 10px;

    display: block;

    background: var(--white);

    border-radius: var(--radius);
    box-shadow: var(--shadow);

    opacity: 0;
    visibility: hidden;

    transform: translateY(10px);

    transition: var(--transition);
}

.main-navigation li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation ul ul li {
    width: 100%;
}

.main-navigation ul ul a {
    color: var(--dark);
}

/* =========================================================
   7. MOBILE MENU TOGGLE
========================================================= */

.menu-toggle {
    display: none;

    width: 44px;
    height: 44px;

    padding: 0;

    border: 0;
    border-radius: 8px;

    background: var(--gradient);

    color: var(--white);

    align-items: center;
    justify-content: center;

    font-size: 24px;
}

.menu-toggle:hover {
    opacity: 0.9;
}

/* =========================================================
   8. HERO SECTION
========================================================= */

.hero-section {
    position: relative;

    padding: 100px 0;

    background:
        radial-gradient(
            circle at top left,
            rgba(230, 57, 70, 0.15),
            transparent 35%
        ),
        radial-gradient(
            circle at bottom right,
            rgba(37, 99, 235, 0.15),
            transparent 35%
        ),
        var(--light);

    overflow: hidden;
}

.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 800;

    background: var(--gradient);

    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;
}

.hero-content p {
    max-width: 700px;

    font-size: 18px;
    color: var(--muted);
}

/* =========================================================
   9. BUTTONS
========================================================= */

.btn,
.wp-block-button__link {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 12px 24px;

    border: 0;
    border-radius: 8px;

    color: var(--white);

    background: var(--gradient);

    font-weight: 700;

    cursor: pointer;

    transition: var(--transition);
}

.btn:hover,
.wp-block-button__link:hover {
    color: var(--white);

    transform: translateY(-3px);

    box-shadow: var(--shadow-hover);
}

.btn-blue {
    background: var(--gradient-blue);
}

.btn-orange {
    background: var(--gradient-orange);
}

.btn-outline {
    color: var(--primary);
    background: transparent;
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    color: var(--white);
    background: var(--primary);
}

/* =========================================================
   10. SECTION
========================================================= */

.section {
    padding: 80px 0;
}

.section-light {
    background: var(--light);
}

.section-title {
    max-width: 750px;

    margin: 0 auto 50px;

    text-align: center;
}

.section-title h2 {
    font-size: clamp(30px, 4vw, 46px);
}

.section-title p {
    color: var(--muted);
}

/* =========================================================
   11. CARDS
========================================================= */

.cards-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 25px;
}

.card {
    padding: 30px;

    background: var(--white);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    box-shadow: var(--shadow);

    transition: var(--transition);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.card-icon {
    width: 60px;
    height: 60px;

    margin-bottom: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: var(--white);

    background: var(--gradient);

    font-size: 24px;
}

.card:nth-child(2) .card-icon {
    background: var(--gradient-blue);
}

.card:nth-child(3) .card-icon {
    background: var(--gradient-orange);
}

/* =========================================================
   12. BLOG / POSTS
========================================================= */

.posts-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 25px;
}

.post-card {
    overflow: hidden;

    background: var(--white);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    box-shadow: var(--shadow);

    transition: var(--transition);
}

.post-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.post-thumbnail img {
    width: 100%;
    height: 230px;

    object-fit: cover;
}

.post-content {
    padding: 25px;
}

.post-title {
    font-size: 22px;
}

.post-title a {
    color: var(--dark);
}

.post-title a:hover {
    color: var(--primary);
}

.post-meta {
    margin-bottom: 12px;

    color: var(--muted);

    font-size: 14px;
}

/* =========================================================
   13. SINGLE POST
========================================================= */

.single-post {
    max-width: 850px;
    margin: 60px auto;
}

.single-post .entry-title {
    font-size: clamp(32px, 5vw, 52px);
}

.entry-content {
    font-size: 17px;
}

.entry-content img {
    margin: 25px auto;
    border-radius: var(--radius);
}

.entry-content a {
    text-decoration: underline;
}

/* =========================================================
   14. PAGE CONTENT
========================================================= */

.page-content {
    padding: 70px 0;
}

.page-content .entry-title {
    font-size: clamp(32px, 5vw, 50px);
}

/* =========================================================
   15. SIDEBAR
========================================================= */

.content-area {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr) 320px;

    gap: 40px;
}

.widget {
    margin-bottom: 30px;

    padding: 25px;

    background: var(--light);

    border: 1px solid var(--border);

    border-radius: var(--radius);
}

.widget-title {
    padding-bottom: 10px;

    border-bottom: 3px solid var(--primary);

    font-size: 20px;
}

/* =========================================================
   16. FORMS
========================================================= */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="number"],
input[type="tel"],
textarea,
select {
    width: 100%;

    padding: 13px 15px;

    color: var(--dark);

    background: var(--white);

    border: 1px solid var(--border);

    border-radius: 8px;

    outline: none;

    transition: var(--transition);
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--secondary);

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.12);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

input[type="submit"],
button[type="submit"] {
    padding: 12px 25px;

    border: 0;
    border-radius: 8px;

    color: var(--white);

    background: var(--gradient);

    font-weight: 700;

    cursor: pointer;

    transition: var(--transition);
}

input[type="submit"]:hover,
button[type="submit"]:hover {
    transform: translateY(-2px);
}

/* =========================================================
   17. FOOTER
========================================================= */

.site-footer {
    margin-top: 0;

    color: #dbeafe;

    background: var(--dark);
}

.footer-widgets {
    padding: 70px 0 40px;

    display: grid;

    grid-template-columns:
        1.3fr 1fr 1fr;

    gap: 40px;
}

.footer-widget h2,
.footer-widget h3,
.footer-widget .widget-title {
    margin-bottom: 20px;

    color: var(--white);

    border: 0;
}

.footer-widget p {
    color: #cbd5e1;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget li {
    margin-bottom: 8px;
}

.footer-widget a {
    color: #cbd5e1;
}

.footer-widget a:hover {
    color: var(--orange);
    padding-left: 5px;
}

.footer-logo img {
    max-height: 60px;
    margin-bottom: 15px;
}

.footer-bottom {
    padding: 20px 0;

    border-top: 1px solid rgba(255, 255, 255, 0.1);

    text-align: center;

    color: #94a3b8;
}

/* =========================================================
   18. SOCIAL LINKS
========================================================= */

.social-links {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: var(--white);

    background: var(--dark-light);
}

.social-links a:hover {
    color: var(--white);
    background: var(--primary);

    transform: translateY(-3px);
}

/* =========================================================
   19. SEARCH
========================================================= */

.search-form {
    display: flex;
    gap: 10px;
}

.search-form label {
    flex: 1;
}

.search-form input[type="search"] {
    width: 100%;

    padding: 12px;

    border: 1px solid var(--border);
    border-radius: 8px;
}

/* =========================================================
   20. PAGINATION
========================================================= */

.pagination,
.nav-links {
    margin-top: 40px;

    display: flex;

    justify-content: center;

    gap: 8px;

    flex-wrap: wrap;
}

.page-numbers {
    min-width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 5px 10px;

    color: var(--dark);

    border: 1px solid var(--border);

    border-radius: 7px;

    background: var(--white);
}

.page-numbers:hover,
.page-numbers.current {
    color: var(--white);

    background: var(--primary);

    border-color: var(--primary);
}

/* =========================================================
   21. COMMENTS
========================================================= */

.comments-area {
    max-width: 850px;

    margin: 50px auto;
}

.comment-list {
    list-style: none;
}

.comment {
    margin-bottom: 25px;
    padding: 20px;

    border: 1px solid var(--border);

    border-radius: var(--radius);
}

/* =========================================================
   22. 404 PAGE
========================================================= */

.error-404 {
    min-height: 60vh;

    display: flex;

    align-items: center;
    justify-content: center;

    text-align: center;
}

.error-404 h1 {
    font-size: clamp(70px, 15vw, 150px);

    background: var(--gradient);

    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;
}

/* =========================================================
   23. BACK TO TOP
========================================================= */

.back-to-top {
    position: fixed;

    right: 20px;
    bottom: 20px;

    width: 45px;
    height: 45px;

    display: flex;

    align-items: center;
    justify-content: center;

    color: var(--white);

    background: var(--gradient);

    border-radius: 50%;

    opacity: 0;
    visibility: hidden;

    transform: translateY(15px);

    transition: var(--transition);

    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    color: var(--white);

    transform: translateY(-4px);
}

/* =========================================================
   24. ACCESSIBILITY
========================================================= */

.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 {
    position: absolute;

    top: -100px;
    left: 20px;

    padding: 10px 15px;

    color: var(--white);

    background: var(--dark);

    z-index: 99999;
}

.skip-link:focus {
    top: 20px;
}

/* =========================================================
   25. TABLE
========================================================= */

table {
    width: 100%;

    margin-bottom: 25px;

    border-collapse: collapse;
}

th,
td {
    padding: 12px;

    border: 1px solid var(--border);

    text-align: left;
}

th {
    color: var(--white);
    background: var(--secondary);
}

/* =========================================================
   26. BLOCKQUOTE
========================================================= */

blockquote {
    margin: 25px 0;

    padding: 20px 25px;

    border-left: 5px solid var(--primary);

    background: var(--light);

    font-size: 18px;

    font-style: italic;
}

/* =========================================================
   27. RESPONSIVE TABLET
========================================================= */

@media (max-width: 992px) {

    .cards-grid,
    .posts-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .content-area {
        grid-template-columns: 1fr;
    }

    .footer-widgets {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .hero-section {
        padding: 80px 0;
    }
}

/* =========================================================
   28. RESPONSIVE MOBILE
========================================================= */

@media (max-width: 768px) {

    .header-container {
        min-height: 70px;
    }

    /* Mobile toggle visible */

    .menu-toggle {
        display: flex;
    }

    /* Mobile navigation */

    .main-navigation {
        position: absolute;

        top: 70px;
        left: 0;

        width: 100%;

        padding: 15px;

        background: var(--white);

        border-top: 1px solid var(--border);

        box-shadow: var(--shadow);

        display: none;
    }

    .main-navigation.active {
        display: block;
    }

    .main-navigation ul {
        width: 100%;

        display: block;
    }

    .main-navigation li {
        width: 100%;
    }

    .main-navigation a {
        width: 100%;
        padding: 12px 15px;
    }

    /* Mobile dropdown */

    .main-navigation ul ul {
        position: static;

        display: none;

        width: 100%;

        padding: 5px 15px;

        opacity: 1;
        visibility: visible;

        transform: none;

        box-shadow: none;

        border-radius: 0;

        background: var(--light);
    }

    .main-navigation li:hover > ul {
        display: block;
    }

    .cards-grid,
    .posts-grid {
        grid-template-columns: 1fr;
    }

    .footer-widgets {
        grid-template-columns: 1fr;

        gap: 30px;
    }

    .section {
        padding: 60px 0;
    }

    .hero-section {
        padding: 65px 0;
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .search-form {
        flex-direction: column;
    }
}

/* =========================================================
   29. SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    body {
        font-size: 15px;
    }

    .container,
    .header-container {
        width: 94%;
    }

    .site-logo {
        font-size: 21px;
    }

    .site-logo img {
        max-height: 45px;
    }

    .hero-content h1 {
        font-size: 34px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .btn {
        width: 100%;
    }

    .card,
    .post-content {
        padding: 20px;
    }

    .footer-widgets {
        padding-top: 50px;
    }
}

/* =========================================================
   30. PRINT
========================================================= */

@media print {

    .site-header,
    .site-footer,
    .menu-toggle,
    .back-to-top,
    .sidebar {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    a {
        color: #000;
        text-decoration: underline;
    }
}
