/* Enhanced Blog Design for Akkucsere - Matching the main site style */

/* Sticky Top Bar - Glass Effect */
.sticky-top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.3); /* Semi-transparent */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    background-image: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.05)
    );
    border-bottom: 1px solid rgba(255, 210, 1, 0.1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    padding: 15px 0;
    transition: all 0.3s ease;
    animation: slideDown 0.5s ease-out;
}

/* Add subtle gradient overlay for better glass effect */
.sticky-top-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 210, 1, 0.03) 0%,
        transparent 50%,
        rgba(255, 210, 1, 0.03) 100%
    );
    pointer-events: none;
    z-index: -1;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Top Bar Container */
.sticky-top-bar .container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Bar Content */
.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* Logo Styling - Enhanced for glass effect */
.sticky-top-bar .logo {
    color: #ffd201;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 700;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
}

.sticky-top-bar .logo:hover {
    color: #fff;
    text-shadow: 
        0 0 20px rgba(255, 210, 1, 0.8),
        0 2px 4px rgba(0, 0, 0, 0.4);
    transform: translateY(-1px);
}

/* Responsive Styles for Top Bar */
@media (max-width: 768px) {
    .sticky-top-bar {
        padding: 10px 0;
    }
    
    .sticky-top-bar .container {
        padding: 0 15px;
    }
    
    .top-bar-content {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .sticky-top-bar .logo {
        font-size: 1.5rem;
        flex: 1;
    }
}

@media (max-width: 480px) {
    .top-bar-content {
        flex-direction: column;
        text-align: center;
    }
    
    .sticky-top-bar .logo {
        font-size: 1.4rem;
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
}

/* Override wrapper margin - Account for sticky top bar */
.wrapper {
    margin: 0;
    padding-top: 80px; /* Account for sticky top bar */
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.9) 100%);
    min-height: 100vh;
}

/* Adjust padding for different screen sizes */
@media (max-width: 768px) {
    .wrapper {
        padding-top: 70px; /* Smaller top bar on tablet */
    }
}

@media (max-width: 480px) {
    .wrapper {
        padding-top: 120px; /* Account for stacked layout on mobile */
    }
}

/* Removed blog-cta-header styles as the section has been removed from HTML */

/* Blog Main Container */
.blogMainContainer {
    padding: 20px 20px 40px;
    margin-top: 0;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
}

/* Adjust container padding for mobile with sticky header */
@media (max-width: 768px) {
    .blogMainContainer {
        padding-top: 10px; /* Less padding since wrapper already has padding */
    }
}

/* Enhanced Breadcrumb - Square Style with Vissza Button */
.blogBreadcrumb {
    font-size: 14px;
    margin: 0 0 30px 0;
    padding: 15px 20px;
    background: rgba(255, 210, 1, 0.1);
    border-left: 4px solid #ffd201;
    border-radius: 0; /* Square style */
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.blogBreadcrumb .breadcrumb-path {
    flex: 1;
    order: 2;
}

/* Inline Category Selector - First in order */
.categorySelector-inline {
    flex: 0 0 auto;
    order: 1;
    margin-right: 10px;
}

.categorySelector-inline select {
    background: rgba(0, 0, 0, 0.5) !important;
    color: #ffd201 !important;
    border: 1px solid rgba(255, 210, 1, 0.3) !important;
    padding: 6px 35px 6px 12px !important;
    font-size: 13px !important;
    font-weight: 600;
    border-radius: 5px !important;
    cursor: pointer;
    transition: all 0.3s ease;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23ffd201" height="20" viewBox="0 0 24 24" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') !important;
    background-repeat: no-repeat !important;
    background-position: right 8px center !important;
    background-size: 20px !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    outline: none !important;
    height: auto !important;
    line-height: 1.5 !important;
    min-width: 160px;
}

.categorySelector-inline select:hover,
.categorySelector-inline select:focus {
    background: rgba(255, 210, 1, 0.15) !important;
    border-color: #ffd201 !important;
    outline: none !important;
    color: #fff !important;
}

.categorySelector-inline select option {
    background: #000 !important;
    color: #ffd201 !important;
    padding: 8px !important;
    font-weight: 500 !important;
}

.categorySelector-inline select option:hover,
.categorySelector-inline select option:focus,
.categorySelector-inline select option:checked {
    background: #ffd201 !important;
    color: #000 !important;
}

.blogBreadcrumb .btn-vissza {
    background: transparent;
    color: #ffd201;
    padding: 8px 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border: 2px solid #ffd201;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    order: 3;
}

.blogBreadcrumb .btn-vissza:hover {
    background: rgba(255, 210, 1, 0.1);
    color: #fff;
    border-color: #fff;
    transform: translateX(-3px);
}

.blogBreadcrumb a {
    color: #ffd201;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.blogBreadcrumb a:hover {
    color: #fff;
}

.blogBreadcrumb a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffd201;
    transition: width 0.3s ease;
}

.blogBreadcrumb a:hover::after {
    width: 100%;
}

/* Old Category Selector - Hidden (now inline in breadcrumb) */
.categorySelector {
    display: none;
}

.categorySelector select {
    width: 100%;
    max-width: 400px;
    background: rgba(0, 0, 0, 0.8) !important;
    color: #ffd201 !important;
    border: 2px solid #ffd201 !important;
    padding: 12px 40px 12px 15px !important;
    font-size: 16px !important;
    font-weight: 600;
    border-radius: 0 !important; /* Square dropdown */
    cursor: pointer;
    transition: all 0.3s ease;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23ffd201" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 24px !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    outline: none !important;
    height: auto !important;
    line-height: 1.5 !important;
}

.categorySelector select:hover,
.categorySelector select:focus {
    background: rgba(255, 210, 1, 0.2) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(255, 210, 1, 0.3) !important;
    color: #fff !important;
}

.categorySelector select option {
    background: #000 !important;
    color: #ffd201 !important;
    padding: 10px !important;
    font-weight: 500 !important;
}

.categorySelector select option:hover,
.categorySelector select option:focus,
.categorySelector select option:checked {
    background: #ffd201 !important;
    color: #000 !important;
}

/* Blog Listing Grid */
.blogs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

@media (max-width: 991px) {
    .blogs {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Individual Blog Card - Square Style */
.blog {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 0; /* Square cards */
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 210, 1, 0.2);
    display: flex;
    flex-direction: column;
}

.blog:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 210, 1, 0.2);
    border-color: rgba(255, 210, 1, 0.5);
}

/* Blog Title */
.blog .title {
    padding: 20px 20px 15px;
    margin: 0;
}

.blog .title a {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    line-height: 1.3;
}

.blog .title a:hover {
    color: #ffd201;
}

/* Blog Image Container */
.blog .imageContainer {
    width: 100%;
    padding-bottom: 52.3%; /* Aspect ratio for 1066x558 images */
    position: relative;
    overflow: hidden;
    margin: 0;
}

.blog .imageContainer .image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transition: transform 0.5s ease;
    will-change: transform; /* Optimize for smooth animation */
}

.blog:hover .imageContainer .image {
    transform: scale(1.1);
}

/* Blog Lead Text - Bevezető */
.blog .lead {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.125rem; /* Larger, more readable font */
    line-height: 1.7;
    padding: 15px 20px 20px;
    flex-grow: 1;
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* Blog Button - Részletek - Square Style */
.blog .btn {
    background: #ffd201;
    color: #000;
    border: none;
    padding: 10px 25px; /* Smaller padding */
    margin: 0 20px 20px;
    border-radius: 0; /* Square button */
    font-weight: 600;
    font-size: 13px; /* Smaller font */
    text-transform: uppercase;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    align-self: flex-end;
    min-width: auto;
    background-image: url('/media/btn_arrow.png');
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 14px; /* Smaller arrow */
}

.blog .btn:hover {
    background-color: #fff;
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(255, 210, 1, 0.4);
}

/* Article Container - Full Width Like Blog Listing */
.blogContainer {
    max-width: 100%; /* Full width like blog listing */
    margin: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    backdrop-filter: none;
}

/* Article Title */
.blogContainer h1 {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 auto 25px;
    padding: 0 20px 20px;
    border-bottom: 3px solid #ffd201;
    max-width: 1100px; /* Match container width */
}

@media (max-width: 768px) {
    .blogContainer h1 {
        font-size: 1.875rem;
    }
}

/* Article Lead */
.blogContainer .lead {
    font-size: 1.25rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    margin: 25px auto;
    padding: 20px;
    background: rgba(255, 210, 1, 0.1);
    border-left: 4px solid #ffd201;
    border-radius: 0;
    font-weight: 500;
    max-width: 1100px; /* Match container width */
}

/* Article Hero Image */
.blogContainer > img {
    display: block;
    width: 100%;
    max-width: 1100px;
    height: auto;
    max-height: 600px; /* Increased height to show more of the image */
    object-fit: contain; /* Changed from cover to contain to show full image */
    border-radius: 0; /* Square style like other elements */
    margin: 30px auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Article Content */
.blogContainer .content {
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 1.125rem;
    line-height: 1.8;
    margin-top: 30px;
    max-width: 900px; /* Limit text width for readability */
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px; /* Add padding for mobile */
}

/* Ensure all text elements in content are white */
.blogContainer .content * {
    color: rgba(255, 255, 255, 0.95) !important;
}

.blogContainer .content h1,
.blogContainer .content h2,
.blogContainer .content h3,
.blogContainer .content h4,
.blogContainer .content h5,
.blogContainer .content h6 {
    color: #ffd201 !important;
}

.blogContainer .content p,
.blogContainer .content span,
.blogContainer .content div,
.blogContainer .content li,
.blogContainer .content td,
.blogContainer .content th {
    color: rgba(255, 255, 255, 0.95) !important;
}

.blogContainer .content h2 {
    color: #ffd201 !important;
    font-size: 2rem;
    font-weight: 700;
    margin: 40px 0 20px 0;
    padding-left: 20px;
    border-left: 4px solid #ffd201;
}

.blogContainer .content h3 {
    color: #fff !important;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 30px 0 15px 0;
}

.blogContainer .content p {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9) !important;
}

.blogContainer .content ul,
.blogContainer .content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.blogContainer .content li {
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.85) !important;
}

.blogContainer .content ul li::marker {
    color: #ffd201;
}

.blogContainer .content a {
    color: #ffd201;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px dotted #ffd201;
}

.blogContainer .content a:hover {
    color: #fff;
    border-bottom-style: solid;
}

/* Blockquote */
.blogContainer .content blockquote {
    margin: 30px 0;
    padding: 20px 30px;
    background: rgba(255, 210, 1, 0.1);
    border-left: 4px solid #ffd201;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.95);
}

/* Tables */
.blogContainer .content table {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    overflow: hidden;
}

.blogContainer .content table th,
.blogContainer .content table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 210, 1, 0.2);
}

.blogContainer .content table th {
    background: rgba(255, 210, 1, 0.2);
    font-weight: 700;
    color: #fff;
}

.blogContainer .content table tr:hover {
    background: rgba(255, 210, 1, 0.05);
}

/* Code Blocks */
.blogContainer .content pre {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 210, 1, 0.3);
    border-radius: 8px;
    padding: 15px;
    overflow-x: auto;
    margin: 20px 0;
}

.blogContainer .content code {
    background: rgba(255, 210, 1, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #ffd201;
}

.blogContainer .content pre code {
    background: none;
    padding: 0;
    color: #fff;
}

/* Images in content */
.blogContainer .content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

/* CTA Banners */
.batteryBarPlaceholder {
    margin: 40px 0;
    padding: 35px;
    background: linear-gradient(135deg, #ffd201 0%, #ffb700 100%);
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(255, 210, 1, 0.3);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.batteryBarPlaceholder:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 210, 1, 0.4);
}

.batteryBarPlaceholder .text {
    color: #000;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.batteryBarPlaceholder button {
    background: #000;
    color: #ffd201;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.batteryBarPlaceholder button:hover {
    background: #fff;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Related Articles Section */
.blogCategory {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid rgba(255, 210, 1, 0.3);
}

.blogCategory h2 {
    color: #ffd201;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
}

/* Adjust image container specifically for related articles */
.blogCategory .blog .imageContainer {
    padding-bottom: 70%; /* Increased height to show full image */
}

.blogCategory .blog .imageContainer .image {
    background-size: contain; /* Show full image instead of cover */
    background-color: rgba(0, 0, 0, 0.5); /* Add background color for images that don't fill the space */
    background-position: center center;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog {
    animation: fadeInUp 0.5s ease-out;
}

.blog:nth-child(2) { animation-delay: 0.1s; }
.blog:nth-child(3) { animation-delay: 0.2s; }
.blog:nth-child(4) { animation-delay: 0.3s; }
.blog:nth-child(5) { animation-delay: 0.4s; }
.blog:nth-child(6) { animation-delay: 0.5s; }

/* Mobile Responsiveness for Breadcrumb with Inline Selector */
@media (max-width: 768px) {
    .blogBreadcrumb {
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px 15px;
    }
    
    .categorySelector-inline {
        order: 1;
        flex: 1;
        margin-right: 0;
    }
    
    .blogBreadcrumb .breadcrumb-path {
        order: 2;
        width: 100%;
        flex: 1 1 100%;
    }
    
    .categorySelector-inline select {
        width: 100%;
        min-width: 0;
    }
    
    .blogBreadcrumb .btn-vissza {
        order: 3;
        flex: 0 0 auto;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .blogMainContainer {
        padding: 60px 15px 30px;
    }
    
    .blogContainer {
        padding: 20px;
    }
    
    .blogContainer .content {
        font-size: 1rem;
    }
    
    .blogContainer .content h2 {
        font-size: 1.5rem;
    }
    
    .batteryBarPlaceholder {
        padding: 25px;
    }
    
    .batteryBarPlaceholder .text {
        font-size: 1.25rem;
    }
}

/* Ensure proper image display */
img[src^="images/"],
img[src^="/images/"] {
    display: block;
    width: 100%;
    height: auto;
}

/* Header Button Styles - Both Primary CTAs (Works in sticky bar) */
.headerButtons,
.sticky-top-bar .headerButtons {
    display: flex;
    gap: 15px;
    margin-left: auto;
    align-items: center;
}

.headerButtons .btn.btn-small {
    background: rgba(255, 210, 1, 0.9);
    color: #000;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    text-transform: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
    height: auto;
    line-height: 1.5;
    box-shadow: 
        0 4px 12px rgba(255, 210, 1, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

/* Both buttons are now primary CTAs with glass hover effect */
.headerButtons .btn.btn-small:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 
        0 8px 20px rgba(255, 210, 1, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 210, 1, 0.3);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .headerButtons {
        width: 100%;
        justify-content: center;
        gap: 10px;
        margin-left: 0;
    }
    
    .headerButtons .btn.btn-small {
        flex: 1;
        max-width: 200px;
        padding: 10px 15px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .headerButtons {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    
    .headerButtons .btn.btn-small {
        width: 100%;
        max-width: 280px;
        padding: 12px 20px;
        font-size: 14px;
    }
}