/* Blog Styles - iCalling's Story */

/* Featured Post */
.featured-post {
    max-width: 900px;
    margin: 0 auto;
}

.featured-card {
    padding: 50px;
    background: rgba(120, 80, 255, 0.1);
    border: 1px solid rgba(120, 80, 255, 0.2);
    border-radius: 24px;
    transition: transform 0.3s, background 0.3s;
}

.featured-card:hover {
    transform: translateY(-5px);
    background: rgba(120, 80, 255, 0.15);
}

.featured-card .blog-date {
    font-size: 0.9rem;
    color: #a080ff;
    margin-bottom: 16px;
}

.featured-card h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #fff;
}

.featured-card .blog-excerpt {
    font-size: 1.1rem;
    color: #888;
    line-height: 1.8;
    margin-bottom: 24px;
}

.featured-card .blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(120, 80, 255, 0.2);
    color: #a080ff;
    text-decoration: none;
    border-radius: 100px;
    font-weight: 500;
    transition: background 0.3s, color 0.3s;
}

.featured-card .blog-read-more:hover {
    background: rgba(120, 80, 255, 0.3);
    color: #fff;
}

/* Recent Posts Grid */
.recent-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.recent-card {
    padding: 30px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    transition: transform 0.3s, background 0.3s;
}

.recent-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.05);
}

.recent-card .blog-date {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 12px;
}

.recent-card h4 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: #fff;
}

.recent-card .blog-excerpt {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 16px;
    line-height: 1.6;
}

.recent-card .blog-read-more {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.recent-card:hover .blog-read-more {
    color: #fff;
}

/* Archive Section */
.blog-controls {
    display: flex;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto 40px;
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 100px;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.search-input:focus {
    border-color: rgba(120, 80, 255, 0.5);
}

.search-input::placeholder {
    color: #666;
}

.posts-per-page {
    padding: 12px 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 100px;
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
}

/* Posts List */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.post-item {
    padding: 24px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.post-item:hover {
    background: rgba(255,255,255,0.05);
}

.post-info {
    flex: 1;
}

.post-info .blog-date {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 4px;
}

.post-info h5 {
    font-size: 1.1rem;
    color: #fff;
}

.post-arrow {
    color: #666;
    font-size: 1.2rem;
    transition: color 0.3s, transform 0.3s;
}

.post-item:hover .post-arrow {
    color: #fff;
    transform: translateX(5px);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination button {
    padding: 10px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #888;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

.pagination button:hover:not(:disabled) {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.pagination button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination button.active {
    background: rgba(120, 80, 255, 0.2);
    color: #a080ff;
    border-color: rgba(120, 80, 255, 0.3);
}

/* Blog Post Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-header {
    padding: 40px 40px 0;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #888;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, color 0.3s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.modal-date {
    font-size: 0.9rem;
    color: #a080ff;
    margin-bottom: 12px;
}

.modal-title {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #fff;
    line-height: 1.3;
}

.modal-content {
    padding: 0 40px 40px;
    color: #ccc;
    line-height: 1.8;
    font-size: 1.1rem;
}

.modal-content p {
    margin-bottom: 20px;
}

.modal-content h2,
.modal-content h3 {
    color: #fff;
    margin: 30px 0 15px;
}

.modal-content ul {
    margin: 15px 0;
    padding-left: 25px;
}

.modal-content li {
    margin-bottom: 8px;
}

.modal-content a {
    color: #a080ff;
    text-decoration: none;
}

.modal-content a:hover {
    text-decoration: underline;
}

.modal-footer {
    padding: 20px 40px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-nav {
    display: flex;
    gap: 12px;
}

.modal-nav button {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    color: #888;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

.modal-nav button:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.modal-nav button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
    .recent-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-card {
        padding: 30px;
    }
    
    .featured-card h3 {
        font-size: 1.5rem;
    }
    
    .blog-controls {
        flex-direction: column;
    }
    
    .modal-container {
        width: 95%;
        max-height: 85vh;
    }
    
    .modal-header,
    .modal-content,
    .modal-footer {
        padding-left: 24px;
        padding-right: 24px;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
}
