/* Blog styling for Sheet2API */

:root {
    --primary: #6c5fc7; /* Purple primary */
    --primary-hover: #5c50b6; /* Darker purple for hover */
    --secondary: #18d5b1; /* Teal as secondary */
    --text-dark: #333;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
}

/* Blog index page cards */
.card.shadow-lg {
    box-shadow: 12px 12px 0px rgba(0, 0, 0, 0.25) !important;
    border-radius: 12px !important;
}

.card.shadow-teal {
    box-shadow: 12px 12px 0px rgba(0, 0, 0, 0.25) !important;
    border-radius: 12px !important;
    border: 2px solid #18d5b1 !important;
}

.card:hover {
    transform: translateY(-5px) !important;
}

/* Blog content styling */
.blog-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.blog-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
    font-weight: 700;
    border-bottom: 2px solid rgba(108, 95, 199, 0.1);
    padding-bottom: 0.5rem;
}

.blog-content h3 {
    margin-top: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.blog-content p {
    margin-bottom: 1.5rem;
}

.blog-content ul, .blog-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.blog-content img {
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    margin: 1.5rem 0;
    max-width: 100%;
}

.blog-content a {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 2px solid rgba(108, 95, 199, 0.2);
    transition: all 0.2s ease;
}

.blog-content a:hover {
    border-bottom-color: var(--primary);
}

.blog-content blockquote {
    border-left: 4px solid var(--secondary);
    padding-left: 1.5rem;
    margin-left: 0;
    margin-right: 0;
    font-style: italic;
    background-color: rgba(24, 213, 177, 0.05);
    padding: 1.5rem;
    border-radius: 0 12px 12px 0;
}

.blog-content pre {
    background-color: #f5f7fa;
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
}

.blog-content code {
    background-color: #f5f7fa;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
}

/* Blog author section */
.blog-author {
    display: flex;
    align-items: center;
    background-color: rgba(24, 213, 177, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
}

.blog-author-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
    border: 3px solid white;
    box-shadow: var(--shadow-sm);
}

.blog-author-info h4 {
    margin: 0;
    color: var(--primary);
}

.blog-author-info p {
    margin: 0.25rem 0 0;
    font-size: 0.9rem;
    color: #666;
}

/* Blog comments section */
.blog-comments {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.blog-comment {
    padding: 1.5rem;
    background-color: #f9f9f9;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.blog-comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.blog-comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 1rem;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.blog-comment-author {
    font-weight: bold;
    color: var(--primary);
}

.blog-comment-date {
    font-size: 0.8rem;
    color: #888;
    margin-left: auto;
}

.blog-comment-content {
    line-height: 1.6;
}

/* Blog share section */
.blog-share {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: rgba(108, 95, 199, 0.05);
    border-radius: 12px;
}

.blog-share-title {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--primary);
}

.blog-share-title i {
    margin-right: 0.5rem;
}

.blog-share-buttons {
    display: flex;
    gap: 0.5rem;
}

.blog-share-button {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
}

.blog-share-button i {
    margin-right: 0.5rem;
}

.blog-share-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Animations for gradient buttons */
@keyframes animatedgradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.btn.gradient {
    background: -webkit-linear-gradient(45deg, #6c5fc7 40%, #5c50b6);
    background: linear-gradient(60deg, #6c5fc7 40%, #5c50b6);
    -webkit-animation: animatedgradient 6s ease infinite alternate;
    animation: animatedgradient 6s ease infinite alternate;
    background-size: 300% 300%;
    border: 1px solid rgba(0,0,0,0);
    color: white;
}

.btn.gradient:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(108, 95, 199, 0.25);
    color: white;
}

/* Blog index page */
.blog-card {
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.blog-card-title {
    margin-bottom: 1rem;
    color: var(--primary);
}

.blog-card-excerpt {
    color: #666;
    margin-bottom: 1.5rem;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.blog-card-meta i {
    margin-right: 0.25rem;
}

.blog-card-meta span {
    margin-right: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .blog-content {
        font-size: 1rem;
    }

    .blog-author {
        flex-direction: column;
        text-align: center;
    }

    .blog-author-img {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .blog-share-buttons {
        flex-wrap: wrap;
    }
}
