/*
Theme Name: Kreatív oldal építőipar sablon
Theme URI: https://kreativoldal.hu
Author: Kreatívoldal
Author URI: https://kreativoldal.hu
Description: Egyedi WordPress téma építőipari szakemberek számára
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: epitoipar-theme
Domain Path: /languages
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, dark-mode, construction, builder
*/

/* Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: #111827;
    transition: background-color 0.3s, color 0.3s;
}

body.dark {
    color: #f3f4f6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Outfit", sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

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

/* WordPress Core Styles */
.wp-block-image {
    margin-bottom: 1.5rem;
}

.wp-caption {
    margin-bottom: 1.5rem;
}

.wp-smiley {
    margin: 0;
    max-height: 1em;
}

img.wp-smiley,
img.emoji {
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline !important;
    vertical-align: middle !important;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #ddd;
    clip: auto !important;
    clip-path: none;
    color: #000;
    display: block;
    font-size: 14px;
    font-size: 0.875rem;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Gallery */
.gallery {
    margin-bottom: 1.5rem;
    display: grid;
    grid-gap: 1.5rem;
}

.gallery-item {
    display: inline-block;
    text-align: center;
    vertical-align: top;
    width: 100%;
}

.gallery-caption {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

/* Blockquote */
blockquote {
    margin: 0 0 1.5rem 0;
    padding: 0 1.5rem;
    border-left: 4px solid #ffd541;
}

/* Code */
pre,
code {
    background-color: #f3f4f6;
    border-radius: 0.375rem;
    font-family: Menlo, Consolas, Monaco, Liberation Mono, Courier New, monospace;
    font-size: 0.875rem;
    overflow-x: auto;
}

pre {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

code {
    padding: 0.125rem 0.25rem;
}

/* Tables */
table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 1.5rem;
}

th,
td {
    border: 1px solid #e5e7eb;
    padding: 0.75rem;
    text-align: left;
}

th {
    background-color: #f9fafb;
    font-weight: 600;
}

/* Forms */
textarea,
select,
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="date"],
input[type="time"] {
    background-color: #fff;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    padding: 0.75rem;
    font-family: inherit;
    font-size: 1rem;
}

textarea:focus,
select:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
input[type="time"]:focus {
    outline: none;
    border-color: #ffd541;
    box-shadow: 0 0 0 3px rgba(255, 213, 65, 0.1);
}

button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
    cursor: pointer;
    background-color: #ffd541;
    border: none;
    border-radius: 0.375rem;
    color: #000;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: background-color 0.3s;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
    background-color: #ffc927;
}

/* Comments */
.comment-form-comment label {
    display: block;
    margin-bottom: 0.5rem;
}

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

.comment-list .children {
    list-style: none;
    margin-left: 2rem;
}

.comment {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #f9fafb;
    border-radius: 0.375rem;
}

.comment-meta {
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.comment-author {
    font-weight: 600;
}

/* Pagination */
.pagination,
.wp-pagenavi {
    display: flex;
    gap: 0.5rem;
    margin: 2rem 0;
    justify-content: center;
}

.pagination a,
.pagination span,
.wp-pagenavi a,
.wp-pagenavi span {
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    background-color: #f3f4f6;
    color: #111827;
}

.pagination a:hover,
.wp-pagenavi a:hover {
    background-color: #ffd541;
    color: #000;
}

.pagination .current,
.wp-pagenavi .current {
    background-color: #ffd541;
    color: #000;
    font-weight: 600;
}

/* Embeds */
.wp-video,
.wp-audio-shortcode {
    margin-bottom: 1.5rem;
}

/* Utility Classes */
.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

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

.clear {
    clear: both;
}

/* Print Styles */
@media print {
    body {
        background-color: #fff;
        color: #000;
    }

    a {
        color: #0000ff;
        text-decoration: underline;
    }

    a:visited {
        color: #800080;
    }

    a[href]::after {
        content: " (" attr(href) ")";
    }

    img {
        max-width: 100%;
    }
}

/* Dark Mode Specific Styles */
@media (prefers-color-scheme: dark) {
    body.dark {
        background-color: #111111;
        color: #f3f4f6;
    }

    body.dark pre,
    body.dark code {
        background-color: #1a1a1a;
        color: #f3f4f6;
    }

    body.dark input,
    body.dark textarea,
    body.dark select {
        background-color: #1a1a1a;
        color: #f3f4f6;
        border-color: #374151;
    }

    body.dark button,
    body.dark input[type="button"],
    body.dark input[type="reset"],
    body.dark input[type="submit"] {
        background-color: #ffd541;
        color: #000;
    }

    body.dark .comment {
        background-color: #1a1a1a;
        color: #f3f4f6;
    }
}

/* Template Info Panel */
.template-info-wrapper {
    position: fixed;
    bottom: 100px;
    right: 2rem;
    z-index: 999;
}

.template-info-toggle {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, #FFD541 0%, #FFC107 100%);
    color: #000;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(255, 213, 65, 0.4);
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.template-info-toggle:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(255, 213, 65, 0.6);
}

.template-info-toggle svg {
    animation: bounce 1s infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 8px 20px rgba(255, 213, 65, 0.4);
    }

    50% {
        box-shadow: 0 8px 30px rgba(255, 213, 65, 0.7), 0 0 0 10px rgba(255, 213, 65, 0.1);
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

.template-info-panel {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 320px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.template-info-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.template-info-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #64748b;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.template-info-close:hover {
    background: #f1f5f9;
    color: #000;
    transform: rotate(90deg);
}

.template-info-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #FFD541 0%, #FFC107 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.template-info-content h3 {
    font-size: 1.25rem;
    color: #000;
    margin-bottom: 0.5rem;
    text-align: center;
}

.template-info-content p {
    color: #000;
    margin-bottom: 1rem;
    text-align: center;
    line-height: 1.6;
    font-size: 0.9rem;
}

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

.template-features li {
    padding: 0.5rem 0;
    color: #000;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.85rem;
}

.template-features li:last-child {
    border-bottom: none;
}

.template-info-cta {
    display: block;
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, #FFD541 0%, #FFC107 100%);
    color: #000;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 213, 65, 0.3);
}

.template-info-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 213, 65, 0.5);
}

@media (max-width: 768px) {
    .template-info-wrapper {
        right: 0.75rem;
        bottom: 90px;
    }

    .template-info-toggle {
        padding: 0.6rem 0.9rem;
        font-size: 0.75rem;
        gap: 0.25rem;
    }

    .template-info-toggle svg {
        width: 16px;
        height: 16px;
    }

    .template-info-panel {
        width: calc(100vw - 1.5rem);
        right: 0;
        max-width: 280px;
        padding: 1rem;
        bottom: 60px;
    }

    .template-info-icon {
        width: 45px;
        height: 45px;
        margin-bottom: 0.75rem;
    }

    .template-info-icon svg {
        width: 28px;
        height: 28px;
    }

    .template-info-content h3 {
        font-size: 1.1rem;
        margin-bottom: 0.4rem;
    }

    .template-info-content p {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
    }

    .template-features li {
        padding: 0.4rem 0;
        font-size: 0.8rem;
    }

    .template-info-cta {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}

/* Mobile Responsive Fixes */
@media (max-width: 768px) {

    /* Hero section title size reduction on mobile */
    h1 {
        font-size: 1.5rem !important;
        line-height: 1.2 !important;
    }

    /* Header logo fix - prevent squishing */
    header img,
    nav img {
        height: auto !important;
        max-height: 48px !important;
        width: auto !important;
        object-fit: contain !important;
    }

    /* Footer logo size increase on mobile */
    footer img {
        height: auto !important;
        max-height: 60px !important;
        width: auto !important;
    }

    /* Template info button visibility fix */
    .template-info-wrapper {
        bottom: 80px !important;
        right: 1rem !important;
        z-index: 998 !important;
    }

    .template-info-toggle {
        padding: 0.65rem 1rem !important;
        font-size: 0.8rem !important;
        box-shadow: 0 6px 20px rgba(255, 213, 65, 0.5) !important;
    }

    .template-info-toggle svg {
        width: 18px !important;
        height: 18px !important;
    }

    /* Make sure panel doesn't overflow */
    .template-info-panel {
        width: calc(100vw - 2rem) !important;
        max-width: 300px !important;
        right: 0 !important;
        bottom: 65px !important;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem !important;
    }

    .template-info-toggle {
        padding: 0.5rem 0.85rem !important;
        font-size: 0.75rem !important;
    }

    .template-info-toggle svg {
        width: 16px !important;
        height: 16px !important;
    }
}


/* Front page hero title - extra small on mobile */
@media (max-width: 768px) {

    .hero-title,
    section h1:first-of-type {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
    }
}

@media (max-width: 480px) {

    .hero-title,
    section h1:first-of-type {
        font-size: 1.35rem !important;
        line-height: 1.3 !important;
    }
}

/* Front page hero - larger text on mobile */
@media (max-width: 768px) {
    main section:first-of-type h1 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }

    main section:first-of-type p {
        font-size: 1rem !important;
    }
}

@media (max-width: 480px) {
    main section:first-of-type h1 {
        font-size: 1.75rem !important;
        line-height: 1.25 !important;
    }
}

/* Dark mode logo visibility fix */
.dark .theme-logo {
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}