/* Modern Blog Styles - Woman-Oriented */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* Global Blog Styles */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    font-family: 'Inter', sans-serif;
}

/* Blog Header */
.blog-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 3rem 0;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    border-radius: 25px;
    color: #5a3e36;
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* permanent floating animation removed */

.blog-header>* {
    position: relative;
    z-index: 1;
}

.blog-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.blog-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    opacity: 0.85;
    margin-bottom: 2rem;
    font-style: italic;
}

/* Search Container */
.search-container {
    max-width: 600px;
    margin: 2rem auto 1rem;
    position: relative;
    z-index: 1;
}

.search-form {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border-radius: 25px;
    padding: 0.7rem 1.2rem;
    box-shadow: 0 4px 15px rgba(255, 182, 193, 0.2);
    transition: all 0.3s ease;
}

.search-input-wrapper:focus-within {
    box-shadow: 0 6px 25px rgba(255, 182, 193, 0.4);
    transform: translateY(-2px);
}

.search-input-wrapper i.bi-search {
    color: #ff9aa2;
    font-size: 1.1rem;
    margin-right: 0.7rem;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    color: #5a3e36;
    background: transparent;
    font-family: 'Inter', sans-serif;
}

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

.clear-search {
    color: #ff9aa2;
    text-decoration: none;
    margin-left: 0.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.clear-search:hover {
    color: #ff6b6b;
    transform: scale(1.1);
}

.search-btn {
    background: linear-gradient(135deg, #ffdee9 0%, #ffc2d1 100%);
    color: #5a3e36;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 182, 193, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.search-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 25px rgba(255, 182, 193, 0.5);
    background: linear-gradient(135deg, #ffc2d1 0%, #ff9aa2 100%);
}

/* Admin Actions */
.admin-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-admin {
    background: linear-gradient(135deg, #ffdee9 0%, #b5fffc 100%);
    border: none;
    color: #5a3e36;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(255, 182, 193, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-admin::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-admin:hover::before {
    width: 300px;
    height: 300px;
}

.btn-admin:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(255, 182, 193, 0.5);
    color: #5a3e36;
    text-decoration: none;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Blog Cards */
.blog-card {
    background: linear-gradient(135deg, #fff 0%, #fef9f8 100%);
    border-radius: 20px;
    box-shadow: 0 5px 25px rgba(255, 182, 193, 0.15);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 182, 193, 0.2);
    position: relative;
    animation: slideUp 0.6s ease-out backwards;
}

/* Stagger animation for multiple cards */
.blog-card:nth-child(1) {
    animation-delay: 0.1s;
}

.blog-card:nth-child(2) {
    animation-delay: 0.2s;
}

.blog-card:nth-child(3) {
    animation-delay: 0.3s;
}

.blog-card:nth-child(4) {
    animation-delay: 0.4s;
}

.blog-card:nth-child(5) {
    animation-delay: 0.5s;
}

.blog-card:nth-child(6) {
    animation-delay: 0.6s;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ffdee9, #b5fffc, #ffdee9);
    background-size: 100% 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* permanent gradient shift animation removed */

.blog-card:hover::before {
    opacity: 1;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(255, 182, 193, 0.25);
}

/* Blog Card Image */
.blog-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.blog-card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 222, 233, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.blog-card:hover .blog-card-image::after {
    opacity: 1;
}

.blog-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover .blog-image {
    transform: scale(1.08);
}

.blog-card-header {
    padding: 1.5rem 1.5rem 1rem;
}

.blog-card-title {
    margin: 0 0 1rem 0;
}

.blog-card-title a {
    color: #5a3e36;
    text-decoration: none;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
    transition: all 0.3s ease;
}

.blog-card-title a:hover {
    color: #ff9aa2;
    text-shadow: 0 2px 10px rgba(255, 154, 162, 0.3);
}

.blog-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.blog-card-body {
    padding: 0 1.5rem;
}

.blog-excerpt {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    background: linear-gradient(135deg, #e0c3fc 0%, #d4a5f5 100%);
    color: #5a3e36;
    padding: 0.4rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(212, 165, 245, 0.25);
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.tag:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 15px rgba(212, 165, 245, 0.5);
    background: linear-gradient(135deg, #c3adf0 0%, #b794f6 100%);
    color: #fff;
    text-decoration: none;
}

.blog-card-footer {
    padding: 1rem 1.5rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.read-more-btn {
    color: #5a3e36;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    background: linear-gradient(135deg, #ffdee9 0%, #ffc2d1 100%);
    box-shadow: 0 4px 15px rgba(255, 182, 193, 0.3);
    position: relative;
    animation: glow 2s ease-in-out 3;
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(255, 182, 193, 0.3);
    }

    50% {
        box-shadow: 0 0 15px rgba(255, 154, 162, 0.6),
            0 0 25px rgba(255, 154, 162, 0.4),
            0 5px 35px rgba(255, 182, 193, 0.5);
    }
}

.read-more-btn:hover {
    color: #5a3e36;
    transform: translateY(-3px) scale(1.05);
    background: linear-gradient(135deg, #ffc2d1 0%, #ff9aa2 100%);
    box-shadow: 0 8px 25px rgba(255, 182, 193, 0.5);
    text-decoration: none;
}

.admin-controls {
    display: flex;
    gap: 0.5rem;
}

.btn-edit,
.btn-delete {
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-edit {
    color: white;
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.btn-edit:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 5px 15px rgba(168, 237, 234, 0.4);
}

.btn-delete {
    color: white;
    background: linear-gradient(135deg, #ffafbd 0%, #ffc3a0 100%);
}

.btn-delete:hover {
    transform: scale(1.1) rotate(-10deg);
    box-shadow: 0 5px 15px rgba(255, 175, 189, 0.4);
}

.delete-form {
    margin: 0;
}

/* No Blogs State */
.no-blogs {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.no-blogs i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #ddd;
}

.no-blogs h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #555;
}

/* Blog Form Styles */
.blog-form-container {
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(135deg, #fff 0%, #fef9f8 100%);
    border-radius: 25px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(255, 182, 193, 0.2);
    border: 1px solid rgba(255, 182, 193, 0.2);
    animation: fadeIn 0.8s ease-out;
}

.form-header {
    text-align: center;
    margin-bottom: 3rem;
}

.form-header h1 {
    color: #5a3e36;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: #666;
    font-size: 1.1rem;
    font-style: italic;
}

.blog-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    border: 2px solid #ffdee9;
    border-radius: 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff9aa2;
    box-shadow: 0 0 0 4px rgba(255, 154, 162, 0.1);
    transform: translateY(-2px);
}

.form-help {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.3rem;
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input {
    width: auto;
    margin: 0;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: flex-end;
}

.btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #ffdee9 0%, #ffc2d1 100%);
    color: #5a3e36;
    box-shadow: 0 4px 15px rgba(255, 182, 193, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 182, 193, 0.5);
    color: #5a3e36;
    background: linear-gradient(135deg, #ffc2d1 0%, #ffdee9 100%);
}

.btn-secondary {
    background: white;
    color: #666;
    border: 2px solid #ffdee9;
}

.btn-secondary:hover {
    background: #fef9f8;
    color: #5a3e36;
    text-decoration: none;
    border-color: #ffc2d1;
}

/* Individual Blog Post */
.blog-post {
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(135deg, #fff 0%, #fef9f8 100%);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(255, 182, 193, 0.2);
    border: 1px solid rgba(255, 182, 193, 0.2);
    animation: fadeIn 0.8s ease-out;
}

.back-nav {
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(255, 222, 233, 0.5);
}

.back-btn {
    color: #ff9aa2;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.back-btn:hover {
    color: #ff6b6b;
    transform: translateX(-5px);
}

.blog-post-header {
    padding: 2rem 2rem 1rem;
}

.post-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #5a3e36;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

/* Featured Image for Individual Post */
.post-image {
    width: 100%;
    margin: 1.5rem 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.blog-featured-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    display: block;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: #666;
    margin-bottom: 1rem;
}

.post-meta>div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.admin-actions {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.btn-edit {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #5a3e36;
    padding: 0.8rem 1.8rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(168, 237, 234, 0.3);
    border: none;
}

.btn-edit:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 25px rgba(168, 237, 234, 0.5);
    color: #5a3e36;
    text-decoration: none;
}

.btn-delete {
    background: linear-gradient(135deg, #ffafbd 0%, #ffc3a0 100%);
    color: #5a3e36;
    padding: 0.8rem 1.8rem;
    border-radius: 25px;
    border: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 175, 189, 0.3);
    cursor: pointer;
}

.btn-delete:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 25px rgba(255, 175, 189, 0.5);
    color: #5a3e36;
}

.post-content {
    padding: 2rem;
}

.content-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.post-footer {
    padding: 2rem;
    border-top: 1px solid #f0f0f0;
}

.share-section h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    background: white;
    border: 2px solid #ffdee9;
    color: #5a3e36;
    padding: 0.7rem 1.2rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 500;
}

.share-btn:hover {
    border-color: #ff9aa2;
    background: linear-gradient(135deg, #ffdee9 0%, #ffc2d1 100%);
    color: #5a3e36;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(255, 154, 162, 0.3);
    text-decoration: none;
}

.related-posts {
    max-width: 800px;
    margin: 2rem auto 0;
    text-align: center;
}

.related-posts h3 {
    color: #5a3e36;
    font-family: 'Playfair Display', serif;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .blog-container {
        padding: 1rem 0.5rem;
    }

    .blog-header {
        margin-bottom: 2rem;
        padding: 2rem 1rem;
    }

    .blog-title {
        font-size: 2.5rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .search-container {
        max-width: 100%;
        padding: 0 1rem;
    }

    .search-form {
        flex-direction: column;
    }

    .search-btn {
        width: 100%;
        justify-content: center;
    }

    .blog-form-container {
        padding: 2rem 1.5rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn {
        justify-content: center;
    }

    .post-title {
        font-size: 2rem;
    }

    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .admin-actions {
        flex-direction: column;
    }

    .share-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .blog-header {
        padding: 1.5rem 0.5rem;
    }

    .blog-title {
        font-size: 2rem;
    }

    .search-input {
        font-size: 0.9rem;
    }

    .search-btn {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }

    .blog-card-header,
    .blog-card-body,
    .blog-card-footer {
        padding: 1rem;
    }

    .blog-form-container {
        padding: 1.5rem 1rem;
    }
}