/*
Theme Name: DDCreative Padrão
Theme URI: https://ddcreative.com.br
Author: DDCreative
Author URI: https://ddcreative.com.br
Description: Tema padrão e inicial para projetos WordPress criados pela DDCreative.
Version: 1.0.0
Text Domain: ddcreative
*/

body {
    margin: 0;
    padding: 0;
    font-family: 'Anek Kannada', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f6f8;
    color: #646666;
}

/* Base Styles based on padrao_tema.md */
h1, h2, h3, h4, h5, h6 {
    color: #002F00;
    font-weight: 500;
}

/* =========================================
   DASHBOARD DO ALUNO
   ========================================= */
.dd-dashboard-wrapper {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Tela de Bloqueio */
.dd-dashboard-locked {
    background: #fff;
    border-radius: 12px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    max-width: 600px;
    margin: 0 auto;
}
.dd-dashboard-locked .locked-icon {
    font-size: 60px;
    margin-bottom: 20px;
}
.dd-dashboard-locked h2 {
    color: #002F00;
    margin-bottom: 15px;
}
.dd-dashboard-locked .locked-note {
    font-size: 14px;
    color: #888;
    margin-top: 30px;
}

/* Layout do Painel (Sidebar + Content) */
.dd-dashboard-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Sidebar */
.dd-dashboard-sidebar {
    width: 280px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    flex-shrink: 0;
    position: -webkit-sticky;
    position: sticky;
    top: 100px;
    align-self: flex-start;
    height: fit-content;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    overflow-x: hidden;
}
.sidebar-user {
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
    background: #fafafa;
}
.sidebar-user .user-avatar img {
    border-radius: 50%;
    margin-bottom: 10px;
    border: 3px solid #002F00;
}
.sidebar-user .user-name {
    display: block;
    font-weight: 600;
    color: #002F00;
    font-size: 18px;
}
.sidebar-user .user-role {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dd-dashboard-nav {
    display: flex;
    flex-direction: column;
}
.dd-dashboard-nav a {
    padding: 15px 25px;
    color: #646666;
    text-decoration: none;
    font-weight: 500;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
}
.dd-dashboard-nav a:hover, .dd-dashboard-nav a.active {
    background: #f4f6f8;
    color: #002F00;
    border-left-color: #002F00;
}
.dd-dashboard-nav a.logout-link {
    color: #d63638;
    border-top: 1px solid #eee;
}

/* Content Area */
.dd-dashboard-content {
    flex-grow: 1;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    padding: 40px;
}
.dd-dashboard-content .tab-title {
    margin-top: 0;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f4f6f8;
}

/* Feed de Notícias (Facebook Style) */
.dd-feed-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.dd-feed-post {
    border: 1px solid #eaeaea;
    border-radius: 10px;
    overflow: hidden;
}
.feed-post-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-bottom: 1px solid #f9f9f9;
}
.feed-post-header .feed-icon {
    font-size: 24px;
}
.feed-post-title {
    margin: 0;
    font-size: 18px;
}
.feed-post-date {
    font-size: 13px;
    color: #888;
}
.feed-post-body {
    padding: 20px;
}
.feed-post-text {
    line-height: 1.6;
    color: #444;
}
.feed-post-text.is-collapsed {
    max-height: 120px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.8s ease;
}
.feed-post-text.is-expanded {
    max-height: 2000px; /* Suficiente para textos grandes */
    overflow: hidden;
    position: relative;
    transition: max-height 0.8s ease;
}
.feed-post-text.is-collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
}
.dd-read-more {
    background: none;
    border: none;
    color: #002F00;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-top: 10px;
    font-size: 15px;
}
.feed-post-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Botões Padrões (Front) */
.dd-btn-primary {
    background: #002F00;
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}
.dd-btn-primary:hover {
    background: #004400;
}

/* Paginação do Feed */
.dd-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}
.dd-page-btn {
    padding: 8px 15px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    color: #646666;
    transition: 0.3s;
}
.dd-page-btn:hover {
    background: #f4f6f8;
}
.dd-page-btn.active {
    background: #002F00;
    color: #fff;
    border-color: #002F00;
}

/* =========================================
   SUBMISSÃO DE TRABALHOS
   ========================================= */
.dd-submissao-layout {
    display: flex;
    gap: 40px;
}
.dd-submissao-form-col {
    flex: 2;
    background: #f9f9f9;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #eee;
}
.dd-submissao-list-col {
    flex: 1;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #eee;
}
.dd-form-group {
    margin-bottom: 20px;
}
.dd-form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
}
.dd-form-group input[type="text"],
.dd-form-group input[type="email"],
.dd-form-group input[type="password"],
.dd-form-group select,
.dd-form-group input[type="file"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 15px;
}
.dd-form-group input[type="file"] {
    background: #fff;
    padding: 8px 15px;
}
.dd-works-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.dd-works-list li {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}
.dd-works-list li:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .dd-dashboard-layout,
    .dd-submissao-layout {
        flex-direction: column;
    }
    .dd-dashboard-sidebar {
        width: 100%;
        position: static;
        height: auto;
        max-height: none;
    }
}
