/*
Theme Name: GD-Theme
Theme URI: https://example.com
Author: Your Name
Author URI: https://example.com
Description: O temÄƒ WordPress modernÄƒ, optimizatÄƒ pentru mobil, cu Bootstrap 5 È™i setÄƒri customizabile din admin.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gd-theme
Tags: responsive, bootstrap, custom-logo, custom-colors, featured-images
*/

/* Reset È™i stiluri de bazÄƒ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    height: auto;
}
* ======================
   STICKY FOOTER BASE
   ====================== */

html {
    height: 100%;
}

body {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    margin: 0;
}

#page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#content {
    flex: 1 0 auto;
    padding: 2rem 0; /* Optional: spatiu sus/jos */
}

.site-footer {
    flex-shrink: 0;
    margin-top: auto;
}

/* ======================
   SAU - Varianta cu calc()
   (daca flexbox nu functioneaza)
   ====================== */

/*
#content {
    min-height: calc(100vh - 300px);
}

.site-footer {
    position: relative;
}
*/

/* ======================
   SAU - Varianta cu Grid
   (alternativa moderna)
   ====================== */

/*
body {
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 100vh;
}

#page {
    display: contents;
}

.site-header { grid-row: 1; }
#content { grid-row: 2; }
.site-footer { grid-row: 3; }
*/











/* Header */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 0;
}

.custom-logo-link {
    display: inline-block;
    max-width: 200px;
}

.site-title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
}

.site-title a {
    color: inherit;
    text-decoration: none;
}

.site-description {
    margin: 0;
    font-size: 0.9rem;
    color: #6c757d;
}

/* Navigation */
.navbar {
    padding: 0.5rem 0;
}

/* Content */
.site-content {
    padding: 2rem 0;
}

.content-area {
    margin-bottom: 2rem;
}

/* Posts */
.post {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e9ecef;
}

.post:last-child {
    border-bottom: none;
}

.entry-header {
    margin-bottom: 1.5rem;
}

.entry-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.entry-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.entry-title a:hover {
    color: #0d6efd;
}

.entry-meta {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.entry-meta a {
    color: #6c757d;
    text-decoration: none;
}

.entry-meta a:hover {
    color: #0d6efd;
}

.entry-content {
    margin-bottom: 1.5rem;
}

.entry-content img {
    margin: 1rem 0;
}

.post-thumbnail {
    margin-bottom: 1.5rem;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 0.25rem;
}

/* Pagination */
.pagination {
    margin: 2rem 0;
}

/* Sidebar */
.sidebar .widget {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 0.25rem;
}

.sidebar .widget-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #dee2e6;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    padding: 0.5rem 0;
}

.sidebar ul li a {
    color: #333;
    text-decoration: none;
}

.sidebar ul li a:hover {
    color: #0d6efd;
}

/* Footer */
.site-footer {
    background: #343a40;
    color: #fff;
    padding: 2rem 0;
    margin-top: 3rem;
}

.site-footer a {
    color: #fff;
    text-decoration: none;
}

.site-footer a:hover {
    color: #0d6efd;
}

/* Comments */
.comments-area {
    margin-top: 3rem;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 0.25rem;
}

.comment-author {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.comment-meta {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

/* Forms - Stiluri generale pentru toate formularele */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
select,
textarea {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    margin-bottom: 1rem;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
select:focus,
textarea:focus {
    color: #212529;
    background-color: #fff;
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Select styling */
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.5rem;
}

/* Buttons */
button,
input[type="submit"],
input[type="button"],
input[type="reset"],
.button,
.btn {
    display: inline-block;
    font-weight: 400;
    line-height: 1.5;
    color: #fff;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    background-color: #0d6efd;
    border: 1px solid #0d6efd;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
.button:hover,
.btn:hover {
    color: #fff;
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

button:focus,
input[type="submit"]:focus,
input[type="button"]:focus,
input[type="reset"]:focus,
.button:focus,
.btn:focus {
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Form labels */
label {
    display: inline-block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* Form groups - stiluri pentru layout formulare */
form {
    max-width: 100%;
}

form table {
    width: 100%;
    margin-bottom: 1rem;
}

form table td,
form table th {
    padding: 0.5rem;
    vertical-align: top;
}

form table th {
    text-align: left;
    font-weight: 500;
    width: 200px;
}

/* Textarea */
textarea {
    min-height: 100px;
    resize: vertical;
}

/* Checkbox È™i radio */
input[type="checkbox"],
input[type="radio"] {
    width: auto;
    margin-right: 0.5rem;
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .entry-title {
        font-size: 1.5rem;
    }
    
    .site-content {
        padding: 1rem 0;
    }
    
    form table th {
        display: block;
        width: 100%;
        padding-bottom: 0.25rem;
    }
    
    form table td {
        display: block;
        width: 100%;
        padding-top: 0.25rem;
    }
}

/* ===================================
   HEADER ÃŽMBUNÄ‚TÄ‚ÈšIT - USER SECTION
   =================================== */

/* Header layout Ã®mbunÄƒtÄƒÈ›it */
.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

#site-navigation {
    flex: 1;
}

/* User Account Section */
.user-account-section {
    flex-shrink: 0;
}

/* User Info - cÃ¢nd e logat */
.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    background: #f8f9fa;
    border-radius: 50px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.user-info:hover {
    background: #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-details {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.user-greeting {
    font-size: 13px;
    font-weight: 600;
    color: #212529;
}

.logout-link {
    font-size: 11px;
    color: #6c757d;
    text-decoration: none;
    transition: color 0.2s;
}

.logout-link:hover {
    color: #dc3545;
}

/* Guest Actions - cÃ¢nd nu e logat */
.guest-actions {
    display: flex;
    gap: 10px;
}

.login-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    color: white;
}

.login-btn svg {
    width: 16px;
    height: 16px;
}

/* Responsive Mobile */
@media (max-width: 991px) {
    .site-header .row {
        flex-direction: column;
    }
    
    .site-header .col-md-3,
    .site-header .col-md-9 {
        width: 100%;
        max-width: 100%;
        padding: 0.5rem 0;
    }
    
    .site-branding {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .header-right {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        width: 100%;
    }
    
    #site-navigation {
        order: 2;
    }
    
    .user-account-section {
        width: 100%;
        order: 1;
        margin-bottom: 0.5rem;
    }
    
    .user-info {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }
    
    .guest-actions {
        width: 100%;
        justify-content: center;
    }
    
    .login-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 24px;
    }
    
    .navbar-toggler {
        margin: 0 auto;
        display: block;
    }
    
    .navbar-collapse {
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 0.75rem 0;
    }
    
    .user-info {
        padding: 10px 16px;
    }
    
    .user-greeting {
        font-size: 14px;
    }
    
    .logout-link {
        font-size: 12px;
    }
    
    .site-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .user-avatar {
        width: 28px;
        height: 28px;
    }
    
    .user-info {
        gap: 10px;
        padding: 8px 14px;
    }
    
    .login-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}