/* JDCREDVIP Services Plugin - CSS */

:root {
    --jdcredvip-primary: #003366;
    --jdcredvip-accent: #00A86B;
    --jdcredvip-light: #f5f5f5;
    --jdcredvip-border: #d0d0d0;
    --jdcredvip-text: #1a1a1a;
    --jdcredvip-text-light: #666666;
}

.jdcredvip-services-container {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--jdcredvip-text);
}

.jdcredvip-services-container h1,
.jdcredvip-services-container h2,
.jdcredvip-services-container h3 {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
}

/* Hero Section */
.jdcredvip-hero {
    background: linear-gradient(135deg, var(--jdcredvip-primary) 0%, #004d99 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 40px;
    border-radius: 8px;
}

.jdcredvip-hero-content h1 {
    font-size: 2.5em;
    margin-bottom: 15px;
    color: white;
}

.jdcredvip-hero-content p {
    font-size: 1.1em;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

/* Services Grid */
.jdcredvip-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.jdcredvip-service-card {
    background: white;
    border: 1px solid var(--jdcredvip-border);
    border-radius: 8px;
    padding: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.jdcredvip-service-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--jdcredvip-accent);
    transform: translateY(-4px);
}

.jdcredvip-service-card h3 {
    color: var(--jdcredvip-primary);
    font-size: 1.3em;
    margin-bottom: 12px;
    margin-top: 0;
}

.jdcredvip-service-card p {
    color: var(--jdcredvip-text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Buttons */
.jdcredvip-btn {
    display: inline-block;
    background: var(--jdcredvip-primary);
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 2px solid var(--jdcredvip-primary);
}

.jdcredvip-btn:hover {
    background: var(--jdcredvip-accent);
    border-color: var(--jdcredvip-accent);
    color: white;
}

/* Service Header */
.jdcredvip-service-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--jdcredvip-border);
}

.jdcredvip-back-link {
    color: var(--jdcredvip-primary);
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.jdcredvip-back-link:hover {
    color: var(--jdcredvip-accent);
}

.jdcredvip-service-header h1 {
    color: var(--jdcredvip-primary);
    font-size: 2em;
    margin: 15px 0 10px 0;
}

.jdcredvip-service-header p {
    color: var(--jdcredvip-text-light);
    font-size: 1.05em;
}

/* Posts Container */
.jdcredvip-posts-container {
    display: grid;
    gap: 20px;
}

.jdcredvip-loading {
    text-align: center;
    padding: 40px 20px;
    color: var(--jdcredvip-text-light);
}

.jdcredvip-no-posts {
    text-align: center;
    padding: 40px 20px;
    color: var(--jdcredvip-text-light);
    font-size: 1.1em;
}

/* Post Item */
.jdcredvip-post-item {
    background: white;
    border: 1px solid var(--jdcredvip-border);
    border-radius: 8px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 200px 1fr;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.jdcredvip-post-item:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--jdcredvip-accent);
}

.jdcredvip-post-image {
    overflow: hidden;
    background: var(--jdcredvip-light);
    height: 200px;
}

.jdcredvip-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.jdcredvip-post-item:hover .jdcredvip-post-image img {
    transform: scale(1.05);
}

.jdcredvip-post-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.jdcredvip-post-date {
    color: var(--jdcredvip-text-light);
    font-size: 0.9em;
    margin-bottom: 10px;
}

.jdcredvip-post-content h3 {
    color: var(--jdcredvip-primary);
    font-size: 1.2em;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.jdcredvip-post-content p {
    color: var(--jdcredvip-text-light);
    line-height: 1.6;
    margin: 0 0 15px 0;
    flex-grow: 1;
}

.jdcredvip-post-content .jdcredvip-btn {
    align-self: flex-start;
}

/* Responsive */
@media (max-width: 768px) {
    .jdcredvip-hero-content h1 {
        font-size: 1.8em;
    }
    
    .jdcredvip-services-grid {
        grid-template-columns: 1fr;
    }
    
    .jdcredvip-service-header h1 {
        font-size: 1.5em;
    }
    
    .jdcredvip-post-item {
        grid-template-columns: 1fr;
    }
    
    .jdcredvip-post-image {
        height: 200px;
    }
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.jdcredvip-service-card {
    animation: slideInFromBottom 0.5s ease-out forwards;
}

.jdcredvip-post-item {
    animation: fadeIn 0.5s ease-out forwards;
}
