/* ========================================
   RESPONSIVE STYLES
   ======================================== */

/* Footer */
.site-footer {
    background-color: var(--primary-color);
    color: white;
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer-widget h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.footer-widget p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
}

.footer-widget a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-widget a:hover {
    color: var(--secondary-color);
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-menu a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-menu a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 30px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-bottom p {
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.7);
}

/* Sidebar */
.sidebar {
    margin-top: 30px;
}

.widget {
    background-color: white;
    padding: 25px;
    margin-bottom: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.widget h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    margin-bottom: 10px;
}

.widget ul a {
    color: var(--light-text);
    text-decoration: none;
    transition: var(--transition);
}

.widget ul a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

/* Conteúdo */
.site-main {
    padding: 40px 0;
}

.post {
    background-color: white;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.post-header {
    margin-bottom: 20px;
}

.post-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.post-title a {
    color: var(--dark-text);
    text-decoration: none;
}

.post-title a:hover {
    color: var(--secondary-color);
}

.post-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--light-text);
    flex-wrap: wrap;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-meta i {
    color: var(--secondary-color);
}

.post-thumbnail {
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.post-content {
    margin-bottom: 20px;
    line-height: 1.8;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 20px 0;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--light-bg);
    flex-wrap: wrap;
    gap: 15px;
}

.post-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.post-tag {
    display: inline-block;
    background-color: var(--light-bg);
    color: var(--light-text);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: var(--transition);
}

.post-tag:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* Paginação */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: white;
    color: var(--dark-text);
    border: 1px solid var(--light-bg);
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: var(--transition);
}

.pagination a:hover {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.pagination .current {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

/* Formulários */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--light-bg);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

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,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* Tabelas */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: white;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    overflow: hidden;
}

table th {
    background-color: var(--primary-color);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--light-bg);
}

table tr:hover {
    background-color: var(--light-bg);
}

/* Mensagens de Alerta */
.alert {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    border-left: 4px solid;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-color: #28a745;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-color: #ffeeba;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-color: #bee5eb;
}

/* Responsividade Geral */
@media (max-width: 768px) {
    .site-main {
        padding: 30px 0;
    }

    .post {
        padding: 20px;
        margin-bottom: 20px;
    }

    .post-title {
        font-size: 1.5rem;
    }

    .post-meta {
        gap: 15px;
    }

    .post-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-content .row {
        flex-direction: column;
    }

    .footer-content .col {
        flex: 0 0 100%;
        margin-bottom: 20px;
    }

    table {
        font-size: 0.9rem;
    }

    table th,
    table td {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .site-main {
        padding: 20px 0;
    }

    .post {
        padding: 15px;
        margin-bottom: 15px;
    }

    .post-title {
        font-size: 1.2rem;
    }

    .post-meta {
        gap: 10px;
        font-size: 0.8rem;
    }

    .pagination a,
    .pagination span {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    input[type="text"],
    input[type="email"],
    input[type="url"],
    input[type="password"],
    input[type="search"],
    input[type="number"],
    input[type="tel"],
    textarea,
    select {
        padding: 10px;
        margin-bottom: 12px;
        font-size: 16px;
    }

    table {
        font-size: 0.8rem;
    }

    table th,
    table td {
        padding: 8px;
    }

    .alert {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
}
