/* =====================================================
   BLOG DETAIL PAGE STYLES
   ===================================================== */

/* Blog Post Header */
.blog-post-header {
    background: linear-gradient(135deg, #13203B 0%, #1a2a4a 25%, #0f1a2e 50%, #1a2a4a 75%, #13203B 100%);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    padding: 80px 0;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.blog-post-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

.blog-post-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.08"/><circle cx="25" cy="25" r="0.5" fill="white" opacity="0.04"/><circle cx="75" cy="75" r="0.5" fill="white" opacity="0.04"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.6;
    animation: grain 20s linear infinite;
}

@keyframes grain {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -5%); }
    20% { transform: translate(-10%, 5%); }
    30% { transform: translate(5%, -10%); }
    40% { transform: translate(-5%, 15%); }
    50% { transform: translate(-10%, 5%); }
    60% { transform: translate(15%, 0%); }
    70% { transform: translate(0%, 10%); }
    80% { transform: translate(-15%, 0%); }
    90% { transform: translate(10%, 5%); }
}

.post-header-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    animation: slideInUp 1s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    background-color: transparent !important;
    margin-bottom: 20px;
    font-size: 0.95rem;
    animation: fadeIn 1s ease-out 0.2s both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.breadcrumb-nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 10px;
    border-radius: 5px;
}

.breadcrumb-nav a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.breadcrumb-nav .separator {
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.breadcrumb-nav .current {
    color: white;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

/* Post Meta */
.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 30px;
    font-size: 0.95rem;
    animation: fadeIn 1s ease-out 0.4s both;
    color: white !important;
}

.post-meta * {
    color: white !important;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white !important;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.meta-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.meta-item i {
    color: #1CA2FC;
    font-size: 1.1rem;
}

.meta-item span,
.meta-item a,
.meta-item * {
    color: white !important;
}

/* Post Title */
.post-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    text-shadow: 0 4px 8px rgba(0,0,0,0.5);
    animation: slideInUp 1s ease-out 0.6s both;
    background: linear-gradient(45deg, #ffffff, #f0f8ff, #ffffff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideInUp 1s ease-out 0.6s both, shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Post Excerpt */
.post-excerpt {
    font-size: 1.3rem;
    line-height: 1.7;
    margin-bottom: 30px;
    opacity: 0.95;
    animation: fadeIn 1s ease-out 0.8s both;
    font-weight: 300;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
    color: white;
}

/* Post Tags */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    animation: fadeIn 1s ease-out 1s both;
}

.post-tags .tag {
    padding: 8px 16px;
    border-radius: 25px;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
    letter-spacing: 0.5px;
}

.post-tags .tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.post-tags .tag:hover::before {
    left: 100%;
}

.post-tags .tag:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Main Content Layout */
.blog-post-main {
    padding: 60px 0;
    background: #FAFAFB;
}

.post-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 50px;
    align-items: start;
}

/* Article Content */
.post-content {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border: 1px solid #EBECEF;
}

/* Featured Image */
.featured-image {
    margin: -40px -40px 30px -40px;
    border-radius: 15px 15px 0 0;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* Article Body */
.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #13203B;
}

.article-body h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 40px 0 20px 0;
    color: #13203B;
}

.article-body h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 30px 0 15px 0;
    color: #1CA2FC;
}

.article-body h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 25px 0 12px 0;
    color: #1471B0;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body ul, .article-body ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-body li {
    margin-bottom: 10px;
}

.article-body strong {
    font-weight: 600;
    color: #13203B;
}

.article-body a {
    color: #1CA2FC;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.article-body a:hover {
    border-bottom-color: #1CA2FC;
}

/* Blog Content Specific Styles */
.blog-content {
    margin-bottom: 30px;
}

.hosting-plan {
    background: #FAFAFB;
    border: 1px solid #EBECEF;
    border-radius: 10px;
    padding: 25px;
    margin: 20px 0;
}

.hosting-plan h4 {
    color: #1CA2FC;
    margin-bottom: 15px;
}

.hosting-plan ul {
    margin: 15px 0;
}

.hosting-plan p {
    margin: 10px 0;
}

.coupon-section {
    background: linear-gradient(135deg, #1CA2FC 0%, #1471B0 100%);
    color: white;
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
}

.coupon-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin: 15px 0;
    backdrop-filter: blur(10px);
}

.coupon-card h4 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.comparison-table th,
.comparison-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #EBECEF;
}

.comparison-table th {
    background: #1CA2FC;
    color: white;
    font-weight: 600;
}

.comparison-table tr:hover {
    background: #FAFAFB;
}

.review-section {
    margin: 30px 0;
}

.customer-review {
    background: #FAFAFB;
    border-left: 4px solid #1CA2FC;
    padding: 20px;
    margin: 15px 0;
    border-radius: 0 10px 10px 0;
}

.customer-review h4 {
    color: #1CA2FC;
    margin-bottom: 10px;
}

.cta-section {
    background: linear-gradient(135deg, #13203B 0%, #1CA2FC 100%);
    color: white;
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
    text-align: center;
}

.cta-button {
    display: inline-block;
    background: #1CA2FC;
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 20px;
    transition: background 0.3s ease;
}

.cta-button:hover {
    background: #1471B0;
    color: white;
}

/* Social Sharing */
.social-sharing {
    margin: 40px 0;
    padding: 30px 0;
    border-top: 1px solid #EBECEF;
    border-bottom: 1px solid #EBECEF;
}

.social-sharing h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #13203B;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
    color: white;
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.linkedin {
    background: #0077b5;
}

.share-btn.email {
    background: #ea4335;
}

.share-btn.copy-link {
    background: #13203B;
}

/* Like Section */
.like-section {
    text-align: center;
    margin: 30px 0;
}

.like-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: #FAFAFB;
    border: 2px solid #EBECEF;
    border-radius: 50px;
    color: #13203B;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.like-btn:hover {
    background: #F5F6F7;
    border-color: #C1C4CC;
}

.like-btn.liked {
    background: #1CA2FC;
    border-color: #1CA2FC;
    color: white;
}

.like-btn.liked:hover {
    background: #1471B0;
    border-color: #1471B0;
}

/* Author Bio */
.author-bio {
    display: flex;
    gap: 20px;
    padding: 30px;
    background: #FAFAFB;
    border-radius: 15px;
    margin-top: 40px;
    border: 1px solid #EBECEF;
}

.author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #13203B;
}

.author-info p {
    color: #798090;
    line-height: 1.6;
    margin: 0;
}

/* Sidebar */
.post-sidebar {
    position: sticky;
    top: 20px;
}

.sidebar-widget {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border: 1px solid #EBECEF;
}

.sidebar-widget h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #13203B;
    border-bottom: 2px solid #1CA2FC;
    padding-bottom: 10px;
}

/* Related Coupons */
.coupons-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.coupon-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 1px solid #EBECEF;
    display: flex;
    flex-direction: column;
    min-height: 350px;
}

.coupon-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #13203B;
    color: white;
}

.discount-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.discount-badge-container {
    background: linear-gradient(135deg, #13203B, #1CA2FC);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: inline-block;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    border: 2px solid rgba(255,255,255,0.2);
}

.discount-text {
    font-size: 1rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 0.5px;
}

.verified-badge {
    background: #13203B !important;
    padding: 0.25rem 0.75rem;
    border-radius: 5px !important;
    font-size: 0.6rem;
    font-weight: 700;
    color: white !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.verified-badge i {
    font-size: 0.7rem;
}

.coupon-content {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.coupon-company-info {
    border-bottom: 1px solid #F0F0F0;
    padding-bottom: 0.75rem;
}

.company-logo-container {
    transition: all 0.3s ease;
}

.company-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.company-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.company-logo-placeholder {
    width: 40px;
    height: 40px;
    background: #FAFAFB;
    border-radius: 4px;
    border: 1px solid #EBECEF;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.company-logo-placeholder:hover {
    background: #F5F6F7 !important;
    transform: scale(1.05);
}

.company-name {
    color: #798090;
    font-size: 0.85rem;
    margin: 0;
    font-weight: 600;
}

.coupon-title {
    font-size: 1rem;
    font-weight: 600;
    color: #13203B;
    margin-bottom: 0.75rem;
}

.coupon-description-container {
    flex: 1;
    overflow-y: auto;
    max-height: 120px;
    margin-bottom: 0.75rem;
}

.coupon-description {
    color: #13203B;
    line-height: 1.6;
    margin: 0;
}

.coupon-actions {
    padding: 0.75rem;
    border-top: 1px solid #EBECEF;
    background: #FAFAFB;
}

.get-code-btn,
.get-offer-btn {
    position: relative;
    overflow: hidden;
    z-index: 0;
    background: #13203B;
    color: white;
    border: 2px solid #13203B;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.7s ease;
    text-decoration: none;
    display: inline-block;
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.get-code-btn::before,
.get-offer-btn::before {
    content: "";
    position: absolute;
    top: var(--y, 50%);
    left: var(--x, 50%);
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-radius: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    transition: all 0.7s ease;
    z-index: -1;
}

.get-code-btn:hover::before,
.get-offer-btn:hover::before {
    width: 400%;
    height: 400%;
}

.get-code-btn:hover,
.get-code-btn:focus,
.get-offer-btn:hover,
.get-offer-btn:focus {
    border-color: #1CA2FC;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Related Posts */
.related-posts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.related-post {
    display: flex;
    gap: 15px;
    padding: 15px;
    border: 1px solid #EBECEF;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-post:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.related-post-image {
    flex-shrink: 0;
}

.related-post-image img {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.related-post-content h4 {
    font-size: 1rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

.related-post-content h4 a {
    color: #13203B;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-post-content h4 a:hover {
    color: #1CA2FC;
}

.related-post-meta {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: #798090;
}

/* Newsletter Widget */
.newsletter-widget {
    background: linear-gradient(135deg, #13203B 0%, #1CA2FC 100%);
    color: white;
}

.newsletter-widget h3 {
    color: white;
    border-bottom-color: rgba(255,255,255,0.3);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.newsletter-form input {
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 12px 20px;
    background: #1CA2FC;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: #1471B0;
}

/* Tag Cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 6px 12px;
    border-radius: 20px;
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.tag:hover {
    transform: scale(1.05);
    opacity: 0.8;
}

/* Comments Section */
.comments-section {
    padding: 60px 0;
    background: white;
}

.comments-header {
    text-align: center;
    margin-bottom: 40px;
}

.comments-header h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #13203B;
}

.comments-header p {
    color: #798090;
    font-size: 1.1rem;
}

.comments-placeholder {
    text-align: center;
    padding: 60px 20px;
    background: #FAFAFB;
    border-radius: 15px;
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid #EBECEF;
}

.comments-placeholder p {
    color: #798090;
    font-size: 1.1rem;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .post-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .post-sidebar {
        position: static;
        order: 2;
    }
    
    .post-content {
        order: 1;
    }
}

@media (max-width: 768px) {
    .blog-post-header {
        padding: 50px 0;
    }
    
    .post-title {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .post-excerpt {
        font-size: 1.1rem;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 12px;
    }
    
    .meta-item {
        justify-content: center;
    }
    
    .post-content {
        padding: 25px;
    }
    
    .featured-image {
        margin: -25px -25px 20px -25px;
    }
    
    .featured-image img {
        height: 250px;
    }
    
    .article-body {
        font-size: 1rem;
    }
    
    .article-body h2 {
        font-size: 1.6rem;
    }
    
    .article-body h3 {
        font-size: 1.3rem;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .author-bio {
        flex-direction: column;
        text-align: center;
    }
    
    .coupon-actions {
        flex-direction: column;
    }
    
    .related-post {
        flex-direction: column;
        text-align: center;
    }
    
    .related-post-image {
        align-self: center;
    }
}

@media (max-width: 480px) {
    .blog-post-header {
        padding: 40px 0;
    }
    
    .post-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .post-excerpt {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .post-meta {
        gap: 8px;
    }
    
    .meta-item {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .post-tags .tag {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .post-content {
        padding: 20px;
    }
    
    .featured-image {
        margin: -20px -20px 15px -20px;
    }
    
    .featured-image img {
        height: 200px;
    }
    
    .social-sharing {
        margin: 30px 0;
        padding: 20px 0;
    }
    
    .author-bio {
        padding: 20px;
    }
    
    .sidebar-widget {
        padding: 20px;
    }
}


