/**
 * Related Content / "You May Also Like" Styles
 * Professional content recommendation cards
 */

/* Related Content Section */
.related-content-section {
    padding: 60px 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(118, 75, 162, 0.03) 100%);
    border-top: 2px solid rgba(102, 126, 234, 0.1);
    margin-top: 60px;
}

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

/* Section Header */
.related-header {
    text-align: center;
    margin-bottom: 40px;
}

.related-title {
    font-size: 2.2em;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.related-subtitle {
    font-size: 1.1em;
    color: #666;
    font-weight: 400;
}

/* Related Content Grid */
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

/* Related Card */
.related-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    position: relative;
}

.related-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.2);
}

/* Card Image */
.related-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Card Badge */
.related-card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* Card Content */
.related-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.related-card-title {
    font-size: 1.3em;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.related-card:hover .related-card-title {
    color: #667eea;
}

.related-card-description {
    font-size: 0.95em;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

/* Card Footer */
.related-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.related-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85em;
    color: #999;
}

.related-card-icon {
    font-size: 1.2em;
}

.related-card-arrow {
    color: #667eea;
    font-size: 1.5em;
    transition: transform 0.3s ease;
}

.related-card:hover .related-card-arrow {
    transform: translateX(5px);
}

/* Special Card Types */
.related-card.highlight {
    border: 2px solid #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.related-card.popular::before {
    content: "🔥 Popular";
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(245, 87, 108, 0.3);
}

.related-card.new::before {
    content: "✨ New";
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(79, 172, 254, 0.3);
}

/* View All Link */
.related-view-all {
    text-align: center;
    margin-top: 30px;
}

.related-view-all-btn {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.05em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.related-view-all-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Responsive Design */
@media (max-width: 992px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .related-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .related-content-section {
        padding: 40px 0;
        margin-top: 40px;
    }
    
    .related-header {
        margin-bottom: 30px;
    }
    
    .related-title {
        font-size: 1.8em;
    }
    
    .related-subtitle {
        font-size: 1em;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .related-card-image {
        height: 160px;
    }
    
    .related-card-content {
        padding: 15px;
    }
    
    .related-card-title {
        font-size: 1.2em;
    }
}

@media (max-width: 480px) {
    .related-content-section {
        padding: 30px 0;
        margin-top: 30px;
    }
    
    .related-title {
        font-size: 1.6em;
    }
    
    .related-card-image {
        height: 140px;
    }
    
    .related-card-badge {
        font-size: 0.75em;
        padding: 4px 10px;
        top: 10px;
        right: 10px;
    }
    
    .related-view-all-btn {
        padding: 12px 30px;
        font-size: 1em;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.related-card {
    animation: fadeInUp 0.6s ease-out;
}

.related-card:nth-child(1) {
    animation-delay: 0.1s;
}

.related-card:nth-child(2) {
    animation-delay: 0.2s;
}

.related-card:nth-child(3) {
    animation-delay: 0.3s;
}

.related-card:nth-child(4) {
    animation-delay: 0.4s;
}

/* Print Styles */
@media print {
    .related-content-section {
        page-break-before: always;
        background: none;
        border-top: 2px solid #ccc;
    }
    
    .related-card {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
    }
    
    .related-card:hover {
        transform: none;
    }
    
    .related-view-all {
        display: none;
    }
}

