/*
Theme Name: GeneratePress Child - EUmonitor
Description: Custom styling inspired by RoPay.ro design
Template: generatepress
Version: 1.0
*/

/* ===================================
   ROOT VARIABLES & GLOBAL STYLES
   =================================== */
:root {
    --primary-color: #003399;
    --eu-blue: #003399;
    --eu-yellow: #FFCC00;
    --text-dark: #1a1a1a;
    --text-gray: #666666;
    --text-light: #999999;
    --bg-main: #f5f7fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --hover-color: #002266;
    --transition: all 0.3s ease;
}

/* ===================================
   Laci
   =================================== */
.byline { display:none !important; }

/* ===================================
   BODY & BACKGROUND
   =================================== */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-main);
    margin: 0;
    padding: 0;
}

/* ===================================
   TYPOGRAPHY
   =================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--hover-color);
}

/* ===================================
   CUSTOM HEADER - HIDE DEFAULT GENERATEPRESS HEADER
   =================================== */
.site-header {
    display: none !important;
}

/* ===================================
   CUSTOM EU HEADER STYLES
   =================================== */
.custom-eu-header {
    width: 100%;
    padding: 0.5rem 1rem;
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

@media (min-width: 1024px) {
    .header-container {
        flex-direction: row;
    }
}

/* Logo Styles */
.logo-section {
    flex-shrink: 0;
}

.logo-link {
    display: block;
    text-decoration: none;
}

.logo-image {
    height: 55px;
    width: auto;
    max-width: 300px;
    display: block;
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
}

/* Fallback text logo if image not uploaded */
.logo-text {
    font-size: clamp(1.5rem, 8vw, 3rem);
    line-height: 1;
    font-weight: 900;
    color: #152D53;
    margin: 0;
}

.logo-text a {
    color: inherit;
    text-decoration: none;
}

/* Responsive logo sizing */
@media (max-width: 640px) {
    .logo-image {
        height: 45px;
        max-width: 200px;
    }
}

/* Navigation Styles */
.main-navigation {
    flex: 1;
    padding: 0.5rem 1.5rem;
    background-color: #121831;
    border-radius: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    margin-left: 1rem;
}

@media (max-width: 1023px) {
    .main-navigation {
        width: 100%;
        margin-left: 0;
    }
}

/* Navigation wrapper to align items */
.nav-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 1.5rem;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .nav-wrapper {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Menu Items */
.nav-menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.875rem;
    font-weight: 600;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .nav-menu {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    position: relative;
    color: white;
    text-decoration: none;
    padding-bottom: 6px;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

/* Animated Yellow Underline */
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #FFCC00 0%, #FFD700 100%);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(255, 204, 0, 0.5);
}

.nav-menu a:hover,
.nav-menu a:focus {
    color: #FFCC00;
    transform: translateY(-2px);
    text-shadow: 0 0 10px rgba(255, 204, 0, 0.3);
}

.nav-menu a:hover::after,
.nav-menu a:focus::after {
    width: 100%;
}

/* Search Form Styles */
.header-search {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.header-search .search-form {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 0rem 0.25rem 0rem 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    margin: 0;
}

.header-search .search-form:focus-within {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: #FFCC00;
    box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.1);
}

.header-search .search-field {
    background: transparent;
    border: none;
    color: white;
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    width: 120px;
    outline: none;
    transition: width 0.3s ease;
}

.header-search .search-field::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.header-search .search-field:focus {
    width: 180px;
}

@media (max-width: 640px) {
    .header-search .search-field {
        width: 100px;
    }
    
    .header-search .search-field:focus {
        width: 140px;
    }
}

.header-search .search-button {
    background-color: #FFCC00;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    padding: 0;
}

.header-search .search-button:hover {
    background-color: #FFD700;
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.5);
}

.header-search .search-button svg {
    color: #121831;
    width: 18px;
    height: 18px;
    display: block;
}

/* Language Flag */
.lang-flag {
    font-size: 1.25rem;
    cursor: pointer;
    display: inline-block;
    transition: all 0.3s;
}

.lang-flag:hover {
    transform: scale(1.25) rotate(12deg);
}

/* ===================================
   CONTENT AREA - WHITE BACKGROUND
   =================================== */
.site-content {
    padding: 2rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.grid-container {
    padding: 0 20px;
}

.content-area {
    background-color: transparent;
}

/* ===================================
   ARTICLE/POST STYLES - WHITE CARDS
   =================================== */
article {
    background-color: var(--bg-white);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: var(--transition);
}

article:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

article:last-child {
    margin-bottom: 0;
}

.entry-header {
    margin-bottom: 1.5rem;
}

.entry-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.entry-title a {
    color: var(--text-dark);
    transition: var(--transition);
}

.entry-title a:hover {
    color: var(--eu-blue);
}

.entry-meta {
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.entry-meta a {
    color: var(--text-gray);
}

.entry-meta a:hover {
    color: var(--eu-blue);
}

.posted-on,
.cat-links,
.tags-links {
    margin-right: 1rem;
}

/* Featured Image */
.post-image {
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

article:hover .post-image img {
    transform: scale(1.03);
}

/* Entry Content */
.entry-content,
.entry-summary {
    line-height: 1.8;
    color: var(--text-dark);
}

.entry-content p {
    margin-bottom: 1.25rem;
}

/* Read More Button */
.read-more-link,
.more-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--eu-blue);
    color: var(--bg-white);
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition);
    margin-top: 1rem;
}

.read-more-link:hover,
.more-link:hover {
    background-color: var(--eu-yellow);
    color: var(--eu-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 204, 0, 0.3);
}

/* ===================================
   SIDEBAR STYLES - WHITE CARDS
   =================================== */
.sidebar .widget {
    background-color: var(--bg-white);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.sidebar .widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--eu-blue);
    color: var(--text-dark);
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: var(--text-dark);
    display: block;
    transition: var(--transition);
}

.widget ul li a:hover {
    color: var(--eu-blue);
    padding-left: 0.5rem;
}

/* Sidebar Search Widget */
.sidebar .search-form {
    display: flex;
    margin-bottom: 0;
}

.sidebar .search-form input[type="search"] {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 25px 0 0 25px;
    font-size: 14px;
}

.sidebar .search-form button {
    padding: 0.75rem 1.5rem;
    background-color: var(--eu-blue);
    color: var(--bg-white);
    border: none;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.sidebar .search-form button:hover {
    background-color: var(--eu-yellow);
    color: var(--eu-blue);
}

/* ===================================
   PAGINATION
   =================================== */
.pagination,
.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination .page-numbers,
.nav-links a,
.nav-links span {
    padding: 0.5rem 1rem !important;
    background-color: var(--bg-white);
    border: 2px solid var(--eu-blue);
    border-radius: 25px;
    color: var(--eu-blue);
    transition: var(--transition);
    font-weight: 600;
}

.pagination .page-numbers:hover,
.nav-links a:hover {
    background-color: var(--eu-yellow);
    color: var(--eu-blue);
    border-color: var(--eu-yellow);
}

.pagination .current,
.nav-links .current {
    background-color: var(--eu-blue);
    color: var(--bg-white);
    border-color: var(--eu-blue);
}

/* ===================================
   FOOTER STYLES
   =================================== */
.site-footer.grid-container {
    padding:0 !important;    
}
#footer-widgets {
    padding: 20px;
    border-radius: 24px;
background:
  linear-gradient(
    to bottom,
    #0c1220,
    #164372,
    #15416f
  );


}
.site-info { padding:20px; }
#footer-widgets { color:#FFF;
}
#footer-widgets h2,#footer-widgets h3,#footer-widgets h4,#footer-widgets h5,#footer-widgets h6 { color:#FFF !important; }
#footer-widgets a {color:#FFF !important;}
#nav_menu-3 ul>li,#nav_menu-4 ul>li {border-bottom:0 !important;}

/* ===================================
   BUTTONS & FORMS
   =================================== */
button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.button,
.wp-block-button__link {
    padding: 0.75rem 1.5rem;
    background-color: var(--eu-blue);
    color: var(--bg-white);
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover,
.button:hover,
.wp-block-button__link:hover {
    background-color: var(--eu-yellow);
    color: var(--eu-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 204, 0, 0.3);
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: var(--transition);
    background-color: var(--bg-white);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--eu-blue);
    box-shadow: 0 0 0 3px rgba(0, 51, 153, 0.1);
}

/* ===================================
   BREADCRUMBS
   =================================== */
.breadcrumbs {
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    padding: 1rem 1.5rem;
    background-color: var(--bg-white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.breadcrumbs a {
    color: var(--text-gray);
}

.breadcrumbs a:hover {
    color: var(--eu-blue);
}

/* ===================================
   SINGLE POST STYLES
   =================================== */
.single article,
.page article {
    background-color: var(--bg-white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* ===================================
   COMMENTS SECTION
   =================================== */
.comments-area {
    background-color: var(--bg-white);
    padding: 2rem;
    margin-top: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* ===================================
   RESPONSIVE STYLES
   =================================== */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    .grid-container {
        padding: 0 10px;
    }
    
    article,
    .single article,
    .page article {
        padding: 1.5rem;
    }
    
    .entry-title {
        font-size: 1.5rem;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
    }
    
    .footer-widgets-container {
        padding: 0 20px;
    }

}

/* ===================================
   UTILITY CLASSES
   =================================== */
.text-center {
    text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }