/*
Theme Name: simple-portfolio7z
Author: Andrzej K
Author URI: 
Description: Elegant template with a glassmorphism effect, a static top menu, full-screen background, and tabbed panels. No sidebar widgets. Responsive and compatible with PHP 8.4.
Version: 1.0.3
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: simple-portfolio7z
Tags: portfolio, blog, one-column, custom-background, custom-logo, custom-menu, editor-style, featured-images, footer-widgets, threaded-comments, translation-ready

*/

/* =========================================================
   RESET & BOX-SIZING
   ========================================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* =========================================================
   CSS VARIABLES
   ========================================================= */
:root {
    --glass-bg: rgba(10, 30, 60, 0.82);
    --glass-border: rgba(255, 255, 255, 0.35);
    --text-main: #f0f6ff;
    --text-muted: #dcecff;
    --accent: #7ecfff;
    --overlay-top: rgba(10, 30, 60, 0.18);
    --overlay-mid: rgba(10, 30, 60, 0.05);
    --overlay-bot: rgba(10, 30, 60, 0.12);
}

/* =========================================================
   BASE
   ========================================================= */
html, body {
    height: 100%;
    font-family: 'Jost', sans-serif;
    color: var(--text-main);
    overflow-x: hidden;
}

body {
    background-color: #0a1e3c;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* =========================================================
   BACKGROUND
   ========================================================= */
.site-background {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-image: url("bg.png");
}

.site-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        var(--overlay-top) 0%,
        var(--overlay-mid) 45%,
        var(--overlay-bot) 100%
    );
}

/* =========================================================
   SITE WRAPPER
   ========================================================= */
#page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* =========================================================
   HEADER / SITE TITLE
   ========================================================= */
.site-header {
    position: relative;
    z-index: 100;
    width: 100%;
    text-align: center;
    padding: 48px 24px 0;
    animation: fadeDown 0.9s 0.1s ease forwards;
    opacity: 0;
}

.site-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    letter-spacing: 0.22em;
    color: var(--text-main);
    text-transform: uppercase;
    text-shadow: 0 2px 24px rgba(30, 80, 180, 0.45);
    margin-bottom: 8px;
}

.site-title a {
    color: inherit;
    text-decoration: none;
}

.site-description {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 32px;
}

/* =========================================================
   NAVIGATION (Static horizontal tab-style nav)
   ========================================================= */
.main-navigation {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    animation: fadeDown 0.9s 0.25s ease forwards;
    opacity: 0;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 0;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 5px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(30, 80, 140, 0.18);
    flex-wrap: wrap;
    justify-content: center;
}

.main-navigation ul li {
    list-style: none;
}

.main-navigation ul li a {
    display: block;
    padding: 10px 36px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: 'Jost', sans-serif;
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border-radius: 50px;
    cursor: pointer;
    transition: color 0.3s, background 0.3s;
    white-space: nowrap;
    text-decoration: none;
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a,
.main-navigation ul li.current-page-ancestor > a,
.main-navigation ul li.current-menu-ancestor > a {
    background: rgba(255, 255, 255, 0.26);
    color: #fff;
    font-weight: 500;
    box-shadow: 0 2px 12px rgba(100, 180, 255, 0.18);
}

/* Sub-menu (dropdown) */
.main-navigation ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(10, 30, 60, 0.9);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    min-width: 160px;
    padding: 8px;
    display: none;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    z-index: 1000;
}

.main-navigation ul li:hover > ul {
    display: flex;
}

.main-navigation ul li {
    position: relative;
}

/* =========================================================
   MAIN CONTENT AREA
   ========================================================= */
.site-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 820px;
    padding: 0 24px 60px;
    flex: 1;
}

/* =========================================================
   GLASS PANEL
   ========================================================= */
.glass-panel {
    width: 100%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    backdrop-filter: blur(28px) saturate(1.3);
    -webkit-backdrop-filter: blur(28px) saturate(1.3);
    box-shadow: 0 24px 60px rgba(30, 80, 140, 0.18),
                inset 0 1px 0 rgba(255, 255, 255, 0.25);
    padding: 52px 56px;
    animation: fadeUp 0.9s 0.4s ease forwards;
    opacity: 0;
}

/* =========================================================
   PAGE / POST CONTENT STYLES
   ========================================================= */
.entry-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.6rem, 2.8vw, 2.4rem);
    font-weight: 300;
    color: var(--text-main);
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

.entry-title,
.entry-title a,
.site-title,
.site-title a {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.entry-title em {
    font-style: italic;
    color: var(--accent);
}

.entry-divider {
    width: 48px;
    height: 1px;
    background: linear-gradient(to right, var(--accent), transparent);
    margin: 18px 0 28px;
}

.entry-content p,
.page-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.85;
    margin-bottom: 18px;
}

.entry-content p strong,
.page-content p strong {
    color: var(--text-main);
    font-weight: 500;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    font-family: 'Cormorant Garamond', serif;
    color: var(--text-main);
    margin: 24px 0 12px;
}

.entry-content ul,
.entry-content ol {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.8;
    margin: 12px 0 18px 24px;
}

.entry-content img {
    max-width: 100%;
    border-radius: 12px;
    margin: 16px 0;
}

/* =========================================================
   POST LIST (index / front-page latest-posts loop)
   ========================================================= */
.entry-list-item {
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.entry-list-item:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
}

/* =========================================================
   SERVICES GRID (for use on services page)
   ========================================================= */
.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 8px;
}

.service-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    padding: 24px 22px;
    transition: background 0.3s, transform 0.25s;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-3px);
}

.service-card .icon {
    font-size: 1.5rem;
    margin-bottom: 10px;
    display: block;
}

.service-card h3 {
    font-family: 'Jost', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
}

.service-card p {
    font-size: 0.86rem;
    margin-bottom: 0;
    line-height: 1.65;
    color: var(--text-muted);
}

/* =========================================================
   CONTACT LIST
   ========================================================= */
.contact-list {
    list-style: none;
    margin-top: 8px;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.contact-list li:last-child {
    border-bottom: none;
}

.contact-list .label {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    min-width: 80px;
}

/* =========================================================
   CONTACT FORM (WordPress CF7 / default form)
   ========================================================= */
.contact-form,
.wpcf7-form {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-form input,
.contact-form textarea,
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 10px;
    padding: 13px 18px;
    color: var(--text-main);
    font-family: 'Jost', sans-serif;
    font-size: 0.88rem;
    font-weight: 300;
    outline: none;
    transition: border-color 0.25s, background 0.25s;
    resize: none;
    width: 100%;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder,
.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder {
    color: rgba(200, 220, 255, 0.4);
}

.contact-form input:focus,
.contact-form textarea:focus,
.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.13);
}

.contact-form textarea,
.wpcf7-form textarea {
    min-height: 90px;
}

.btn-send,
.wpcf7-form input[type="submit"],
.wpcf7-submit {
    align-self: flex-start;
    padding: 12px 36px;
    background: rgba(126, 207, 255, 0.18);
    border: 1px solid var(--accent);
    border-radius: 50px;
    color: var(--accent);
    font-family: 'Jost', sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

.btn-send:hover,
.wpcf7-form input[type="submit"]:hover,
.wpcf7-submit:hover {
    background: var(--accent);
    color: #0a1e3c;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
    width: 100%;
    text-align: center;
    padding: 20px 24px 36px;
    color: var(--text-muted);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    position: relative;
    z-index: 1;
}

.site-footer a {
    color: var(--accent);
}

/* =========================================================
   PAGINATION
   ========================================================= */
.pagination,
.nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.page-numbers,
.nav-previous a,
.nav-next a {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: background 0.3s;
}

.page-numbers.current,
.page-numbers:hover,
.nav-previous a:hover,
.nav-next a:hover {
    background: rgba(126, 207, 255, 0.2);
    color: var(--accent);
    text-decoration: none;
}

/* =========================================================
   ANIMATIONS
   ========================================================= */
@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-18px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 768px) {
    .glass-panel {
        padding: 34px 24px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .main-navigation ul li a {
        padding: 10px 20px;
        font-size: 0.74rem;
    }

    .site-content {
        padding: 0 16px 40px;
    }

    .site-header {
        padding: 32px 16px 0;
    }
}

@media (max-width: 480px) {
    .main-navigation ul {
        padding: 4px;
    }

    .main-navigation ul li a {
        padding: 8px 14px;
        font-size: 0.70rem;
    }
}

/* =========================================================
   WORDPRESS CORE CLASSES
   ========================================================= */
.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;
    width: 1px;
    word-wrap: normal !important;
}

.alignleft  { float: left; margin: 0 20px 10px 0; }
.alignright { float: right; margin: 0 0 10px 20px; }
.aligncenter {
    display: block;
    margin: 0 auto 10px;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 6px;
}
/* Accessibility fixes */

.skip-link.screen-reader-text {
    position: absolute;
    left: -9999px;
    top: 0;
}
.skip-link.screen-reader-text:focus {
    clip: auto !important;
    clip-path: none;
    height: auto;
    width: auto;
    overflow: visible;
    left: 6px;
    top: 6px;
    display: block;
    background: #fff;
    color: #0a1e3c;
    padding: 12px 20px;
    border-radius: 6px;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.6);
    text-decoration: none;
    font-weight: 600;
    z-index: 100000;
}
.main-navigation li:focus-within > ul {
    display:block;
}
.entry-content a,
.comment-content a,
.widget a {
    text-decoration: underline;
}
body {
    font-size: 16px;
    line-height: 1.6;
}

/* Template utility styles */
.return-home-link {
    display: inline-block;
    margin-top: 12px;
}

.archive-entry,
.search-entry {
    margin-bottom: 28px;
}

.archive-entry-title {
    font-size: 1.25rem;
    margin-bottom: 6px;
}

.search-entry-title {
    font-size: 1.2rem;
}

.archive-entry-meta,
.entry-meta,
.entry-tags,
.no-comments {
    color: var(--text-muted);
}

.archive-entry-meta {
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.archive-entry-separator {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    margin-top: 20px;
}

.single-entry-meta {
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.post-thumbnail img {
    border-radius: 12px;
    width: 100%;
    height: auto;
    margin-bottom: 24px;
}

.single-entry-footer {
    margin-top: 24px;
}

.entry-tags {
    font-size: 0.8rem;
}

.post-navigation {
    margin-top: 28px;
}

.comments-area {
    margin-top: 32px;
}

.comments-title,
.comment-reply-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    color: var(--text-main);
    margin-bottom: 16px;
}

.comments-title {
    font-size: 1.4rem;
}

.comment-reply-title {
    font-size: 1.3rem;
}

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

.search-form-row {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.search-field {
    flex: 1;
    min-width: 0;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 10px;
    padding: 12px 18px;
    color: var(--text-main);
    font-family: 'Jost', sans-serif;
    font-size: 0.88rem;
    outline: none;
}

.search-field:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.13);
}

.search-submit {
    white-space: nowrap;
}
