/*
Theme Name: GD-Theme
Theme URI: https://example.com
Author: Ghioca Eduardx
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.4
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;
}

html {
    height: 100%;
}

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;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
}

/* ======================
   STICKY FOOTER BASE
   ====================== */

#page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

#content {
    flex: 1 0 auto;
}

.site-footer {
    flex-shrink: 0;
    margin-top: auto;
}

/* ======================
   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;
}

.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;
    }
}