/*
Theme Name: Twenty Twenty-One Child MF PPP
Theme URI: https://wordpress.org/themes/twentytwentyone/
Description: Tema child pentru Twenty Twenty-One cu funcționalități personalizate MF PPP
Author: BITHAT SOLUTIONS SRL
Author URI: https://documenta.ro/
Template: twentytwentyone
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwentyone-child
*/

/* ====
   Stiluri personalizate pentru ghidul interactiv
   ==== */

/* Container principal ghid */
.ghid-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
}

.ghid-search-results mark {
    background: #fef08a;
    color: #1e293b;
    border-radius: 3px;
    padding: 0 2px;
    font-weight: bold;
}

/* Bara de căutare - STILURI ÎMBUNĂTĂȚITE */
.ghid-search {
    margin-bottom: 30px;
}

.ghid-search input[type="text"],
.ghid-search input#ghid-search-input,
.ghid-search input#ghid-search-input-en {
    width: 100% !important;
    padding: 15px 20px !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    height: auto !important;
    min-height: 50px !important;
    border: 2px solid #ddd !important;
    border-radius: 5px !important;
    transition: border-color 0.3s ease !important;
    box-sizing: border-box !important;
    background: #fff !important;
}

.ghid-search input[type="text"]:focus,
.ghid-search input#ghid-search-input:focus,
.ghid-search input#ghid-search-input-en:focus {
    border-color: #28303d !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(40, 48, 61, 0.1) !important;
}

/* Wrapper pentru conținut */
.ghid-content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

/* Sidebar cu meniu */
.ghid-sidebar {
    flex: 0 0 280px;
    background: #f0f0f0;
    padding: 20px;
    border-radius: 5px;
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

/* Meniu ghid */
.ghid-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ghid-menu li {
    margin-bottom: 10px;
}

.ghid-menu a {
    display: block;
    padding: 10px 15px;
    color: #28303d;
    text-decoration: none;
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

.ghid-menu a:hover,
.ghid-menu a:focus {
    background-color: #d1e4dd;
    text-decoration: none;
}

/* Submeniu */
.ghid-submenu {
    list-style: none;
    padding-left: 20px;
    margin-top: 10px;
}

.ghid-submenu a {
    font-size: 14px;
    padding: 8px 12px;
}

/* Sub-submeniu */
.ghid-subsubmenu {
    list-style: none;
    padding-left: 20px;
    margin-top: 8px;
}

.ghid-subsubmenu a {
    font-size: 13px;
    padding: 6px 10px;
}

/* Conținut principal */
.ghid-main-content {
    flex: 1;
    min-width: 0;
}

/* Secțiuni de conținut */
.ghid-pas-content,
.ghid-subpas-content,
.ghid-subsubpas-content {
    margin-bottom: 40px;
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ghid-pas-content h2 {
    color: #28303d;
    margin-top: 0;
    padding-bottom: 15px;
    border-bottom: 3px solid #d1e4dd;
}

.ghid-subpas-content h3 {
    color: #39414d;
    margin-top: 20px;
}

.ghid-subsubpas-content h4 {
    color: #39414d;
    margin-top: 15px;
}

/* Navigare anterior/următor */
.ghid-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.ghid-prev,
.ghid-next {
    padding: 12px 24px;
    background-color: #28303d;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.ghid-prev:hover,
.ghid-next:hover {
    background-color: #39414d;
}

.ghid-prev:disabled,
.ghid-next:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Stiluri pentru fișiere descărcabile */
.fisier-download {
    display: inline-flex;
    align-items: center;
    padding: 12px 20px;
    background-color: #d1e4dd;
    color: #28303d;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    margin: 10px 0;
}

.fisier-download:hover {
    background-color: #b8d4cc;
    text-decoration: none;
}

.fisier-icon {
    margin-right: 10px;
    font-size: 20px;
}

.fisier-name {
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ghid-content-wrapper {
        flex-direction: column;
    }

    .ghid-sidebar {
        flex: 1;
        position: static;
        max-height: none;
        margin-bottom: 30px;
    }

    .ghid-navigation {
        flex-direction: column;
        gap: 10px;
    }

    .ghid-prev,
    .ghid-next {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .ghid-container {
        padding: 10px;
    }

    .ghid-sidebar {
        padding: 15px;
    }

    .ghid-pas-content,
    .ghid-subpas-content,
    .ghid-subsubpas-content {
        padding: 15px;
    }
}

/* Stiluri pentru accesibilitate */
.ghid-menu a:focus,
.ghid-prev:focus,
.ghid-next:focus,
.fisier-download:focus {
    outline: 2px solid #28303d;
    outline-offset: 2px;
}

/* Stiluri pentru print */
@media print {
    .ghid-sidebar,
    .ghid-search,
    .ghid-navigation {
        display: none;
    }

    .ghid-main-content {
        width: 100%;
    }
}

/* Formular parolă - Conținut protejat */
.password-protected-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 40px 20px;
}

.password-protected-container {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    padding: 50px 40px;
    background: #ffffff;
    border: 2px solid #1e3a8a;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.password-protected-logo {
    margin-bottom: 30px;
}

.password-protected-logo img {
    max-width: 120px;
    height: auto;
}

.password-protected-content {
    padding: 0;
}

.password-protected-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 15px;
    line-height: 1.4;
}

.password-protected-text {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.post-password-form {
    max-width: 100%;
    margin: 0;
}

.password-form-group {
    margin-bottom: 20px;
    text-align: left;
}

.password-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 8px;
}

.password-input {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    line-height: 1.5;
    border: 2px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.password-input:focus {
    border-color: #1e3a8a;
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.password-submit-btn {
    width: 100%;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    background: #1e3a8a;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.password-submit-btn:hover {
    background: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.password-submit-btn:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .password-protected-wrapper {
        padding: 20px 15px;
        min-height: 50vh;
    }
    
    .password-protected-container {
        padding: 40px 30px;
    }
    
    .password-protected-logo img {
        max-width: 100px;
    }
    
    .password-protected-title {
        font-size: 20px;
    }
    
    .password-protected-text {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .password-protected-container {
        padding: 30px 20px;
    }
    
    .password-submit-btn {
        font-size: 16px;
        padding: 12px 24px;
    }
}