/* Meus Conteúdos Gerados - Estilos */

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

.mcg-header {
    margin-bottom: 30px;
}

/* Login Required */
.mcg-login-required {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 40px 0;
}

/* Estatísticas */
.mcg-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    padding: 0;
}

.mcg-stat-item {
    text-align: center;
    padding: 25px 15px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.mcg-stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.mcg-stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #2196F3;
    margin-bottom: 8px;
    line-height: 1;
}

.mcg-stat-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Busca e Filtros */
.mcg-search-filter {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.mcg-search-box {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.mcg-search-box input {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.mcg-search-box input:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 4px rgba(33, 150, 243, 0.1);
}

.mcg-search-box input::placeholder {
    color: #999;
}

.mcg-category-filter {
    min-width: 220px;
}

.mcg-category-filter select {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 15px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.mcg-category-filter select:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 4px rgba(33, 150, 243, 0.1);
}

/* Grid de Cards */
.mcg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* Card Individual */
.mcg-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mcg-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.mcg-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #f0f0f0;
    display: block;
    transition: transform 0.3s ease;
}

.mcg-card:hover .mcg-card-image {
    transform: scale(1.05);
}

.mcg-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mcg-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 50px;
}

.mcg-card-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
    min-height: 28px;
}

.mcg-category-tag {
    background: #e3f2fd;
    color: #1976d2;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.mcg-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #666;
}

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

.mcg-card-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mcg-card-footer {
    margin-top: auto;
    padding-top: 10px;
}

/* Botão de Download - Melhorado */
.mcg-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.25);
    position: relative;
    overflow: hidden;
}

.mcg-download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.5s ease;
}

.mcg-download-btn:hover {
    background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(33, 150, 243, 0.35);
    color: white;
    text-decoration: none;
}

.mcg-download-btn:hover::before {
    left: 100%;
}

.mcg-download-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.25);
}

/* Botão Carregar Mais - Melhorado */
.mcg-load-more-container {
    text-align: center;
    margin: 40px 0;
}

.mcg-load-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 50px;
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
    position: relative;
    overflow: hidden;
}

.mcg-load-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.5s ease;
}

.mcg-load-more-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(33, 150, 243, 0.4);
}

.mcg-load-more-btn:hover:not(:disabled)::before {
    left: 100%;
}

.mcg-load-more-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.mcg-load-more-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.6;
}

.mcg-load-more-btn:disabled::before {
    display: none;
}

/* Estado Vazio */
.mcg-empty-state {
    text-align: center;
    padding: 80px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 40px 0;
}

.mcg-empty-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.6;
}

.mcg-empty-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}

.mcg-empty-text {
    font-size: 16px;
    color: #666;
    margin-bottom: 0;
    line-height: 1.6;
}

/* Loading */
.mcg-loading {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

.mcg-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2196F3;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: mcg-spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes mcg-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.mcg-loading p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .mcg-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .mcg-container {
        padding: 15px;
    }
    
    .mcg-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 15px;
    }
    
    .mcg-search-filter {
        flex-direction: column;
        gap: 12px;
    }
    
    .mcg-search-box,
    .mcg-category-filter {
        width: 100%;
        min-width: 100%;
    }
    
    .mcg-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .mcg-stat-number {
        font-size: 32px;
    }
    
    .mcg-card-title {
        font-size: 17px;
    }
    
    .mcg-load-more-btn {
        width: 100%;
        padding: 14px 30px;
    }
}

@media (max-width: 480px) {
    .mcg-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .mcg-card-image {
        height: 180px;
    }
    
    .mcg-card-body {
        padding: 15px;
    }
    
    .mcg-stat-item {
        padding: 20px 15px;
    }
    
    .mcg-empty-icon {
        font-size: 64px;
    }
    
    .mcg-empty-title {
        font-size: 22px;
    }
    
    .mcg-empty-text {
        font-size: 14px;
    }
}

/* Animações de Entrada */
@keyframes mcg-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mcg-card {
    animation: mcg-fadeIn 0.4s ease-out;
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
}

/* Print styles */
@media print {
    .mcg-search-filter,
    .mcg-load-more-container {
        display: none;
    }
    
    .mcg-card {
        break-inside: avoid;
    }
}
