/* Auto Internal Linker - Frontend Styles */
.ail-container {
    margin: 40px 0;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    border: 1px solid #eaeaea;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

/* Modern Style */
.ail-style-modern {
    background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
    border: 1px solid #e1e8ff;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.1);
}

.ail-style-modern .ail-header {
    background: linear-gradient(135deg, #f8faff 0%, #f0f4ff 100%);
    border-bottom: 1px solid #e8edff;
}

.ail-style-modern .ail-header-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.ail-style-modern .ail-title {
    color: #1a237e;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ail-style-modern .ail-post-card {
    border: 1px solid #e8edff;
    background: white;
}

.ail-style-modern .ail-post-card:hover {
    border-color: #667eea;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    transform: translateY(-3px);
}

.ail-style-modern .ail-read-more {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Classic Style */
.ail-style-classic {
    background: #f9f9f9;
    border: 2px solid #ddd;
}

.ail-style-classic .ail-header {
    background: #f0f0f0;
    border-bottom: 2px solid #ddd;
}

.ail-style-classic .ail-header-icon {
    background: #555;
    color: white;
}

.ail-style-classic .ail-title {
    color: #333;
}

.ail-style-classic .ail-post-card {
    background: white;
    border: 1px solid #ddd;
}

.ail-style-classic .ail-post-card:hover {
    border-color: #0073aa;
    transform: translateY(-3px);
}

.ail-style-classic .ail-read-more {
    background: #0073aa;
    color: white;
}

/* Minimal Style */
.ail-style-minimal {
    background: white;
    border: 1px solid #f0f0f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.ail-style-minimal .ail-header {
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
}

.ail-style-minimal .ail-header-icon {
    background: #666;
    color: white;
}

.ail-style-minimal .ail-title {
    color: #222;
}

.ail-style-minimal .ail-post-card {
    background: #fafafa;
    border: 1px solid #eee;
}

.ail-style-minimal .ail-post-card:hover {
    background: white;
    border-color: #ddd;
    transform: translateY(-3px);
}

.ail-style-minimal .ail-read-more {
    background: #666;
    color: white;
}

/* Common Header Styles */
.ail-header {
    display: flex;
    align-items: center;
    padding: 25px;
    gap: 20px;
}

.ail-header-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 28px;
}

.ail-header-content {
    flex: 1;
}

.ail-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 5px 0;
}

.ail-subtitle {
    font-size: 15px;
    color: #666;
    margin: 0;
    opacity: 0.8;
}

/* Posts Grid */
.ail-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    padding: 30px;
}

/* Post Card */
.ail-post-card {
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.ail-post-meta {
    margin-bottom: 10px;
}

.ail-post-date {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ail-post-date:before {
    content: "📅";
    font-size: 14px;
}

.ail-post-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 15px 0;
    flex: 1;
}

.ail-post-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ail-post-title a:hover {
    color: #3498db;
    text-decoration: underline;
}

.ail-post-excerpt {
    color: #666;
    font-size: 16px;
    line-height: 1.5;
    margin: 0 0 20px 0;
    flex: 1;
}

.ail-read-more {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    align-self: flex-start;
    margin-top: auto;
}

.ail-read-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Keyword link styles */
.ail-keyword-link {
    color: #667eea;
    text-decoration: none;
    border-bottom: 1px dotted #667eea;
    font-weight: 600;
    transition: all 0.3s ease;
}

.ail-keyword-link:hover {
    color: #764ba2;
    border-bottom: 1px solid #764ba2;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ail-posts-grid {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 20px;
    }
    
    .ail-header {
        padding: 20px;
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .ail-header-icon {
        margin: 0 auto;
    }
    
    .ail-title {
        font-size: 22px;
    }
    
    .ail-subtitle {
        font-size: 14px;
    }
    
    .ail-post-content {
        padding: 20px;
    }
    
    .ail-post-title {
        font-size: 18px;
    }
    
    .ail-container {
        margin: 30px 0;
    }
}

@media (max-width: 480px) {
    .ail-title {
        font-size: 20px;
    }
    
    .ail-post-excerpt {
        font-size: 15px;
    }
}