/*
Theme Name:   Bluejuice Pro
Theme URI:    https://bluejuice.lt
Description:  bluejuice pro yra lengva ir greita WordPress tema, suderinama su Elementor.
Author:       Karolis Bliudzius
Author URI:   https://bluejuice.lt
Version:      1.0.1
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  bluejuice-pro
*/

/* Temos stiliaus pritaikymas prasideda čia */
/* Mygtukų konteineris */
.post-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

/* Pagrindiniai mygtukų stiliai */
.read-more-button,
.edit-button {
    display: inline-block;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

/* Skaityti daugiau mygtukas (pilkas) */
.read-more-button {
    background-color: #6c757d;
    color: white;
    border: 1px solid #6c757d;
}

.read-more-button:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

/* Redaguoti mygtukas (mėlynas) */
.edit-button {
    background-color: #007bff;
    color: white;
    border: 1px solid #007bff;
}

.edit-button:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}
/* Popup stiliai */
.veiklos-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
}

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
}

.popup-container {
    position: relative;
    background: white;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    margin: 5vh auto;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: popupFadeIn 0.3s ease-out;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.popup-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e9ecef;
}

.popup-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.close-popup {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.close-popup:hover {
    background: rgba(255, 255, 255, 0.2);
}

.popup-content {
    padding: 30px;
    overflow-y: auto;
    flex-grow: 1;
}

/* Formos stiliai */
.form-fields {
    margin-bottom: 20px;
}

.acf-field {
    margin-bottom: 25px;
}

.acf-label label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: block;
    font-size: 15px;
}

.acf-input input[type="text"],
.acf-input textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
    box-sizing: border-box;
}

.acf-input input[type="text"]:focus,
.acf-input textarea:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.acf-input textarea {
    min-height: 200px;
    resize: vertical;
}

/* Mygtukų stiliai */
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.submit-button,
.cancel-button {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
}

.submit-button {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    color: white;
}

.submit-button:hover {
    background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.cancel-button {
    background: #6c757d;
    color: white;
}

.cancel-button:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Įkėlimo indikatorius */
.loading {
    text-align: center;
    padding: 40px;
    color: #007bff;
    font-size: 18px;
}

.error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid #f5c6cb;
}

.success {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid #c3e6cb;
}

/* Responsive */
@media (max-width: 768px) {
    .popup-container {
        width: 95%;
        margin: 2vh auto;
        max-height: 96vh;
    }
    
    .popup-content {
        padding: 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .submit-button,
    .cancel-button {
        width: 100%;
    }
}

/* Originalaus mygtuko pakeitimas */
.edit-button {
    background: #007bff;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid #007bff;
    cursor: pointer;
}

.edit-button:hover {
    background: #0056b3;
    border-color: #0056b3;
}

.post-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}
/* Atitinkamai pakoreguokite esamus stilius, jei reikia */
.activity-post-card .post-content {
    margin-bottom: 15px;
}
/* Panaikiname numatytąjį padding */
body,
html,
div,
main,
header,
footer,
article,
section {
    padding: 0;
    margin: 0; /* Taip pat pridėjau margin: 0, kad panaikintume ir numatytuosius margin, jei jie yra */
}

.site,
.site-content,
.content-area,
.site-main {
    padding: 0;
}

.entry-content {
    padding: 0; /* Panaikiname padding ir turinio viduje, jei reikia */
}
body {
    font-family: 'Roboto', sans-serif;
}

/* Galerijos stiliai */
.acf-gallery-section {
    margin: 3rem 0;
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 12px;
}

.gallery-title {
    margin-bottom: 2rem;
    color: #2c3e50;
    font-size: 1.75rem;
    text-align: center;
    border-bottom: 3px solid #3498db;
    padding-bottom: 0.75rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    justify-items: center;
}

.gallery-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    max-width: 300px;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.gallery-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.9), rgba(41, 128, 185, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-image-wrapper:hover .gallery-overlay {
    opacity: 1;
}

.lightbox-btn,
.download-btn {
    background: rgba(255,255,255,0.9);
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #2c3e50;
    font-weight: 600;
    transition: all 0.3s ease;
}

.lightbox-btn:hover,
.download-btn:hover {
    background: white;
    transform: scale(1.1);
    color: #e74c3c;
}

.lightbox-btn svg,
.download-btn svg {
    stroke: currentColor;
}

.gallery-caption {
    padding: 1rem;
    font-size: 0.9rem;
    color: #7f8c8d;
    text-align: center;
    line-height: 1.4;
}

/* Lightbox stiliai */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.lightbox-image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

#lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 5px;
    z-index: 10000;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 1rem;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255,255,255,0.3);
}

.lightbox-prev {
    left: -70px;
}

.lightbox-next {
    right: -70px;
}

.lightbox-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(0,0,0,0.8);
    color: white;
}

.lightbox-counter {
    font-size: 1rem;
}

.lightbox-download-btn {
    background: #3498db;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.lightbox-download-btn:hover {
    background: #2980b9;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .gallery-image-wrapper {
        height: 200px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
    }
    
    .gallery-overlay {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .lightbox-btn,
    .download-btn {
        padding: 8px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .acf-gallery-section {
        padding: 1rem;
        margin: 2rem 0;
    }
}
/* Peržiūrų statistikos stiliai */
.post-views-container {
    margin-top: 15px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #2271b1;
}

.post-views-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.view-stat {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-label {
    font-weight: 600;
    color: #2c3338;
    font-size: 13px;
}

.stat-value {
    background: #2271b1;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 12px;
    min-width: 30px;
    text-align: center;
}

/* Atsakomybės pranešimas */
.admin-notice {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-left: 4px solid #2271b1;
    padding: 12px;
    margin: 15px 0;
    border-radius: 4px;
}

.admin-notice p {
    margin: 0;
    font-size: 14px;
    color: #3c434a;
}