/**
 * Single Post Styles - Enhanced Newsletter & Navigation
 * For Rocío Gómez Theme
 */

/* ===================================
   NEWSLETTER SUBSCRIPTION CARD
   =================================== */

.post-subscription-cta {
    background: white;
    border-radius: 20px;
    padding: 50px;
    margin: 60px auto;
    max-width: 700px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Decorative gradient border */
.post-subscription-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #122c61, #85674C, #6B6A46);
    border-radius: 20px 20px 0 0;
}

.post-subscription-cta h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    color: #122c61;
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.2;
}

.post-subscription-cta > p {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.15rem;
    color: #666;
    margin-bottom: 35px;
    line-height: 1.6;
}

/* Style Flodesk form container */
.post-subscription-cta #fd-form-68a9eb28296538011798a862 {
    max-width: 500px;
    margin: 0 auto;
}

/* Override Flodesk form styles for better integration */
.post-subscription-cta .fd-form-group {
    margin-bottom: 20px !important;
}

.post-subscription-cta .fd-form-label {
    font-family: 'Source Sans Pro', sans-serif !important;
    color: #333 !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    text-align: left !important;
    margin-bottom: 8px !important;
    display: block !important;
}

.post-subscription-cta .fd-form-control {
    background: #f9f7f3 !important;
    border: 2px solid #e5e5e5 !important;
    border-radius: 10px !important;
    padding: 14px 18px !important;
    font-size: 1rem !important;
    font-family: 'Source Sans Pro', sans-serif !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
}

.post-subscription-cta .fd-form-control:focus {
    outline: none !important;
    border-color: #122c61 !important;
    background: white !important;
    box-shadow: 0 0 0 3px rgba(18, 44, 97, 0.1) !important;
}

/* Style the submit button */
.post-subscription-cta .fd-form-button,
.post-subscription-cta button[type="submit"] {
    background: linear-gradient(135deg, #122c61, #0F4C81) !important;
    color: white !important;
    border: none !important;
    padding: 16px 40px !important;
    border-radius: 30px !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    font-family: 'Source Sans Pro', sans-serif !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    margin-top: 10px !important;
    display: inline-block !important;
    text-transform: none !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 4px 15px rgba(18, 44, 97, 0.2) !important;
}

.post-subscription-cta .fd-form-button:hover,
.post-subscription-cta button[type="submit"]:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 25px rgba(18, 44, 97, 0.3) !important;
    background: linear-gradient(135deg, #0F4C81, #122c61) !important;
}

/* Success message styling */
.post-subscription-cta .fd-success-message {
    background: linear-gradient(135deg, #f9f7f3, white) !important;
    padding: 20px !important;
    border-radius: 12px !important;
    border-left: 4px solid #85674C !important;
    margin-top: 20px !important;
}

.post-subscription-cta .fd-success-message p {
    color: #85674C !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    margin: 0 !important;
}

/* Add decorative element */
.post-subscription-cta::after {
    content: '💌';
    position: absolute;
    top: 50px;
    right: 50px;
    font-size: 2rem;
    opacity: 0.1;
    transform: rotate(-15deg);
}

/* ===================================
   POST NAVIGATION BUTTONS
   =================================== */

.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin: 80px auto 40px;
    max-width: 900px;
    flex-wrap: wrap;
}

.nav-previous,
.nav-next {
    flex: 1;
    min-width: 250px;
}

.nav-previous a,
.nav-next a {
    display: flex;
    flex-direction: column;
    background: #122c61;
    color: white !important;
    padding: 25px 30px;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(18, 44, 97, 0.15);
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* Gradient overlay on hover */
.nav-previous a::before,
.nav-next a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.nav-previous a:hover::before,
.nav-next a:hover::before {
    left: 100%;
}

.nav-previous a:hover,
.nav-next a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(18, 44, 97, 0.25);
    background: #0F4C81;
}

/* Navigation labels */
.nav-subtitle {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.8;
    margin-bottom: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Add arrows to navigation */
.nav-previous .nav-subtitle::before {
    content: '←';
    font-size: 1.2rem;
}

.nav-next .nav-subtitle::after {
    content: '→';
    font-size: 1.2rem;
}

/* Post titles in navigation */
.nav-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    line-height: 1.3;
    font-weight: 600;
    color: white;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Align next button to the right */
.nav-next a {
    text-align: right;
}

.nav-next .nav-subtitle {
    justify-content: flex-end;
}

/* Alternative button style for variety */
.nav-next a {
    background: #85674C;
}

.nav-next a:hover {
    background: #6B5540;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .post-subscription-cta {
        padding: 35px 25px;
        margin: 40px auto;
    }
    
    .post-subscription-cta h3 {
        font-size: 2rem;
    }
    
    .post-subscription-cta > p {
        font-size: 1rem;
    }
    
    .post-subscription-cta::after {
        display: none;
    }
    
    .post-navigation {
        margin: 50px auto 30px;
        gap: 20px;
    }
    
    .nav-previous,
    .nav-next {
        min-width: 100%;
    }
    
    .nav-previous a,
    .nav-next a {
        padding: 20px 25px;
    }
    
    .nav-title {
        font-size: 1.15rem;
    }
}

/* ===================================
   SINGLE POST CONTENT STYLES
   =================================== */

/* Main post container */
.single-post-container {
    background: #f9f7f3;
    min-height: 100vh;
}

.single-post {
    background: white;
    margin-top: 80px;
}

/* Post header */
.single-post-header {
    padding: 60px 0 40px;
    background: linear-gradient(135deg, #f9f7f3 0%, white 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.single-post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.back-to-blog {
    color: #85674C !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.back-to-blog:hover {
    color: #122c61 !important;
    transform: translateX(-3px);
}

.single-post-date {
    color: #666;
    font-size: 0.95rem;
    font-style: italic;
}

.single-post-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: #122c61;
    line-height: 1.2;
    margin-bottom: 30px;
    font-weight: 600;
}

/* Featured image */
.single-post-featured-image {
    margin: 30px 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.single-post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Post content */
.single-post-content {
    padding: 60px 0;
    background: white;
}

.content-wrapper {
    max-width: 750px;
    margin: 0 auto;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #333;
}

.content-wrapper p {
    margin-bottom: 1.8rem;
}

.content-wrapper h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    color: #122c61;
    margin: 3rem 0 1.5rem;
    font-weight: 600;
}

.content-wrapper h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    color: #85674C;
    margin: 2.5rem 0 1.2rem;
    font-weight: 600;
}

.content-wrapper blockquote {
    border-left: 4px solid #85674C;
    padding-left: 25px;
    margin: 2rem 0;
    font-style: italic;
    color: #555;
    background: linear-gradient(90deg, rgba(133, 103, 76, 0.05) 0%, transparent 100%);
    padding: 20px 20px 20px 30px;
    border-radius: 0 8px 8px 0;
}

.content-wrapper ul,
.content-wrapper ol {
    margin: 1.5rem 0 1.5rem 2rem;
}

.content-wrapper li {
    margin-bottom: 0.8rem;
}

/* Footer */
.single-post-footer {
    background: #f9f7f3;
    padding: 40px 0 60px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Container utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.post-subscription-cta,
.nav-previous,
.nav-next {
    animation: fadeInUp 0.6s ease-out;
}