/* DA Content Manager - Frontend Styles */

.da-cm-archive-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.da-cm-archive-header {
    text-align: center;
    margin-bottom: 40px;
}

.da-cm-archive-title {
    font-size: 2.5em;
    color: #333;
    margin: 0;
}

.da-cm-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.da-cm-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.da-cm-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.da-cm-card-image {
    position: relative;
    overflow: hidden;
}

.da-cm-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.da-cm-card:hover .da-cm-card-image img {
    transform: scale(1.05);
}

.da-cm-card-content {
    padding: 20px;
}

.da-cm-card-title {
    margin: 0 0 15px 0;
    font-size: 1.4em;
}

.da-cm-card-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.da-cm-card-title a:hover {
    color: #007cba;
}

.da-cm-card-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.da-cm-card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.da-cm-cta {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.da-cm-cta-primary {
    background-color: #007cba;
    color: #fff;
}

.da-cm-cta-primary:hover {
    background-color: #005a87;
    transform: translateY(-2px);
}

.da-cm-cta-secondary {
    background-color: #25d366;
    color: #fff;
}

.da-cm-cta-secondary:hover {
    background-color: #1da851;
    transform: translateY(-2px);
}

.da-cm-cta-large {
    padding: 15px 30px;
    font-size: 1.1em;
    margin: 10px 0;
}

/* Single Post Styles */
.da-cm-single-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.da-cm-single-header {
    text-align: center;
    margin-bottom: 40px;
}

.da-cm-single-title {
    font-size: 2.5em;
    color: #333;
    margin: 0 0 30px 0;
}

.da-cm-single-image {
    margin-bottom: 30px;
}

.da-cm-single-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Video Styles */
.da-cm-single-video {
    margin-bottom: 30px;
}

.da-video-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

.da-video-responsive {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.da-video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.da-video-container video {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.da-livro-video,
.da-curso-video {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.da-livro-video .da-video-responsive,
.da-curso-video .da-video-responsive {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.da-livro-video video,
.da-curso-video video {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Elementor Video Styles */
.da-elementor-video {
    width: 100%;
}

.da-elementor-video .da-video-responsive {
    border-radius: 8px;
    overflow: hidden;
}

.da-elementor-video video {
    width: 100%;
    height: auto;
    display: block;
}

.da-cm-single-content {
    line-height: 1.8;
}

.da-cm-texto-curto {
    background-color: #f8f9fa;
    padding: 20px;
    border-left: 4px solid #007cba;
    margin-bottom: 30px;
    border-radius: 0 5px 5px 0;
    font-size: 1.1em;
    color: #555;
}

.da-cm-content-full {
    margin-bottom: 40px;
}

.da-cm-single-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 30px 0;
    border-top: 1px solid #eee;
}

/* Responsive Design */
@media (max-width: 768px) {
    .da-cm-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .da-cm-archive-title,
    .da-cm-single-title {
        font-size: 2em;
    }
    
    .da-cm-card-actions {
        flex-direction: column;
    }
    
    .da-cm-cta {
        width: 100%;
    }
    
    .da-cm-single-actions {
        flex-direction: column;
    }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background-color: #007cba;
    color: #fff;
    border-color: #007cba;
}

.pagination .current {
    background-color: #007cba;
    color: #fff;
    border-color: #007cba;
}