/**
 * Coloring Pages Grid Template Styles
 * Optimized 4-column layout with full images and download buttons
 */

/* Main Layout */
.coloring-grid-layout { 
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; 
    background: #f8fafc; 
    min-height: 100vh; 
    padding: 40px 20px; 
}

.grid-container { 
    max-width: 1200px; 
    margin: 0 auto; 
}

.grid-post-box { 
    background: white; 
    border-radius: 16px; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.08); 
    overflow: hidden; 
    margin-bottom: 40px;
}

/* Header Section */
.grid-post-header { 
    padding: 40px 50px 30px; 
    border-bottom: 1px solid #e2e8f0; 
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.grid-post-title { 
    font-size: clamp(1.8rem, 4vw, 2.8rem); 
    font-weight: 800; 
    color: #1a202c; 
    margin: 0 0 25px; 
    line-height: 1.2; 
    text-align: center;
}

/* Breadcrumbs */
.grid-breadcrumbs { 
    margin-bottom: 20px; 
    font-size: 14px; 
    color: #64748b; 
    text-align: center;
}

.grid-breadcrumbs a { 
    color: #667eea; 
    text-decoration: none; 
    font-weight: 500; 
}

.grid-breadcrumbs a:hover { 
    color: #5a67d8; 
}

/* Content Section */
.grid-content { 
    padding: 40px 50px; 
}

.grid-intro-text { 
    font-size: 16px; 
    line-height: 1.7; 
    color: #374151; 
    max-width: 800px; 
    margin: 0 auto 40px; 
    text-align: center;
}

/* 4-Column Grid */
.coloring-pages-grid-full { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 25px; 
    margin: 40px 0;
}

.coloring-page-full { 
    background: white; 
    border: 2px solid #e2e8f0; 
    border-radius: 12px; 
    padding: 15px; 
    transition: all 0.3s ease; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.coloring-page-full:hover { 
    border-color: #667eea; 
    transform: translateY(-5px); 
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Full Image Container */
.full-image-container { 
    margin: 0 0 15px; 
    border-radius: 8px; 
    overflow: hidden; 
    background: #f8fafc;
    aspect-ratio: 3/4;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.coloring-page-full:hover .full-image-container img { 
    transform: scale(1.05); 
}

/* Title Styling */
.coloring-page-title-full { 
    margin: 0 0 12px; 
    font-size: 14px; 
    font-weight: 600; 
    line-height: 1.3; 
    text-align: center; 
}

.coloring-page-title-full a { 
    color: #1a202c; 
    text-decoration: none; 
    display: block;
}

.coloring-page-full:hover .coloring-page-title-full a { 
    color: #667eea; 
}

/* Professional Download Button */
.download-btn-full { 
    display: block; 
    width: 100%; 
    background: #ffffff; 
    color: #1f2937; 
    text-align: center; 
    padding: 12px 16px; 
    border-radius: 8px; 
    text-decoration: none; 
    font-weight: 600; 
    font-size: 13px; 
    transition: all 0.2s ease;
    border: 1px solid #d1d5db;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    letter-spacing: 0.025em;
}

.download-btn-full:hover { 
    background: #f9fafb; 
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.download-btn-full:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.download-btn-full i { 
    margin-right: 6px; 
}



/* Social Share */
.grid-social-share { 
    text-align: center; 
    margin: 30px 0; 
}

.grid-share-buttons { 
    display: flex; 
    justify-content: center; 
    gap: 15px; 
    flex-wrap: wrap; 
}

.grid-share-btn { 
    width: 44px; 
    height: 44px; 
    border-radius: 50%; 
    background: #f1f5f9; 
    color: #64748b; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-decoration: none; 
    transition: all 0.2s ease; 
    font-size: 16px;
}

.grid-share-btn:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 4px 12px rgba(0,0,0,0.15); 
}

.grid-share-btn.pinterest:hover { background: #e60023; color: white; }
.grid-share-btn.facebook:hover { background: #1877f2; color: white; }
.grid-share-btn.twitter:hover { background: #1da1f2; color: white; }
.grid-share-btn.whatsapp:hover { background: #25d366; color: white; }

/* Responsive Design */
@media (max-width: 1024px) { 
    .coloring-pages-grid-full { 
        grid-template-columns: repeat(3, 1fr); 
        gap: 20px; 
    } 
}

@media (max-width: 768px) { 
    .coloring-grid-layout { padding: 20px 15px; }
    .grid-post-header { padding: 30px 25px 20px; }
    .grid-content { padding: 30px 25px; }
    .coloring-pages-grid-full { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 15px; 
    }
}

@media (max-width: 480px) { 
    .coloring-pages-grid-full { 
        grid-template-columns: 1fr; 
        gap: 20px; 
    }
    .coloring-page-title-full { 
        font-size: 16px; 
    }
    .download-btn-full { 
        padding: 14px 18px; 
        font-size: 14px; 
        font-weight: 600;
    }
}