/* Memphis Design Style - Magazine Aesthetic */
:root {
    --primary-color: #FF4F79; /* Bright pink */
    --secondary-color: #00C6B2; /* Teal */
    --accent-color: #FFD541; /* Bright yellow */
    --accent2-color: #FF8A00; /* Orange */
    --background-color: #F2F2F2; /* Light gray background */
    --text-color: #222222;
    --pattern-color: #4D1DFF; /* Purple for patterns */
    --light-pattern: #E8F5FF;
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    background-image: 
        radial-gradient(var(--accent-color) 2px, transparent 2px),
        radial-gradient(var(--secondary-color) 2px, transparent 2px);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
    background-attachment: fixed;
    overflow-x: hidden;
}

.container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0;
    position: relative;
}

.container::before {
    content: "";
    position: absolute;
    top: -15px;
    left: -15px;
    width: 100px;
    height: 100px;
    background-color: var(--accent-color);
    border-radius: 50%;
    z-index: -1;
}

.container::after {
    content: "";
    position: absolute;
    bottom: -25px;
    right: -25px;
    width: 150px;
    height: 150px;
    background-image: linear-gradient(45deg, var(--secondary-color) 25%, transparent 25%, transparent 50%, var(--secondary-color) 50%, var(--secondary-color) 75%, transparent 75%, transparent);
    background-size: 20px 20px;
    z-index: -1;
    clip-path: polygon(0 0, 100% 25%, 100% 100%, 25% 100%);
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 3rem 2rem 2rem;
    background-color: white;
    border-radius: 0;
    box-shadow: 15px 15px 0 var(--accent-color);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: var(--primary-color);
    z-index: 2;
}

.header::after {
    content: "";
    position: absolute;
    bottom: 20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: var(--accent-color);
    border-radius: 50% 0 50% 50%;
    z-index: -1;
    opacity: 0.6;
}

.header h1 {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -1px;
    line-height: 1.1;
    position: relative;
    text-shadow: 3px 3px 0 var(--accent-color);
}

.header h1::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: var(--secondary-color);
}

.site-title {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.header p {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

/* Blog Content Styles */
.blog-container {
    position: relative;
    margin-bottom: 4rem;
    background: white;
    padding-top: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.blog-container::before {
    content: "";
    position: absolute;
    top: 20px;
    left: -15px;
    width: 30px;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        var(--accent-color),
        var(--accent-color) 10px,
        var(--accent2-color) 10px,
        var(--accent2-color) 20px
    );
    z-index: -1;
}

.blog-post {
    padding: 3rem;
    position: relative;
    z-index: 1;
}

.post-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    position: relative;
    padding-left: 20px;
}

.post-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 8px;
    background: var(--secondary-color);
}

.post-meta {
    font-size: 0.9rem;
    margin-bottom: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    position: relative;
}

.post-meta::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-image: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color), var(--accent2-color));
}

.post-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.post-content {
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.8;
    position: relative;
}

.post-content p {
    margin-bottom: 2rem;
}

.post-content p:first-of-type::first-letter {
    font-size: 3.5rem;
    font-weight: 800;
    float: left;
    line-height: 1;
    padding-right: 10px;
    color: var(--primary-color);
}

.post-content h2 {
    font-size: 2rem;
    color: var(--text-color);
    margin: 3rem 0 1.5rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.5rem;
}

.post-content h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
}

.post-content h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin: 2rem 0 1rem;
    font-weight: 600;
}

.post-content ul, .post-content ol {
    margin: 1.5rem 0 2rem 1rem;
    padding-left: 1.5rem;
}

.post-content li {
    margin-bottom: 0.75rem;
    position: relative;
}

.post-content ul li::before {
    content: "■";
    color: var(--accent-color);
    position: absolute;
    left: -1.5rem;
}

.post-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    padding-bottom: 2px;
}

.post-content a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.post-content a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Featured Image Styles */
.featured-image {
    width: 100%;
    height: 450px;
    overflow: hidden;
    margin-bottom: 3rem;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.featured-image::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: var(--accent-color);
    clip-path: polygon(100% 0, 0 100%, 100% 100%);
    z-index: 2;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-image:hover img {
    transform: scale(1.05);
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 3rem 0;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.pagination::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
    z-index: -1;
}

.page-link {
    padding: 10px 20px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    background: white;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    min-width: 45px;
    text-align: center;
}

.page-link:hover:not(.disabled):not(.active) {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 0 var(--accent-color);
}

.page-link.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-link.disabled {
    color: #999;
    pointer-events: none;
    border-color: #ddd;
    opacity: 0.6;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 5rem;
    padding: 3rem 2rem;
    background: white;
    position: relative;
    z-index: 1;
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background-image: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color), var(--accent2-color));
    z-index: 2;
}

.footer p {
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    position: relative;
}

.footer a:hover {
    color: var(--accent2-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        margin: 1rem;
        padding: 0;
    }
    
    .header {
        padding: 2rem 1rem 1.5rem;
        box-shadow: 10px 10px 0 var(--accent-color);
    }
    
    .header h1 {
        font-size: 2.5rem;
    }
    
    .blog-post {
        padding: 2rem 1.5rem;
    }
    
    .post-title {
        font-size: 2rem;
    }
    
    .featured-image {
        height: 300px;
    }
    
    .post-content p:first-of-type::first-letter {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 1.5rem 1rem;
        box-shadow: 8px 8px 0 var(--accent-color);
    }
    
    .header h1 {
        font-size: 2rem;
        text-shadow: 2px 2px 0 var(--accent-color);
    }
    
    .blog-post {
        padding: 1.5rem 1rem;
    }
    
    .post-title {
        font-size: 1.5rem;
        padding-left: 15px;
    }
    
    .post-title::before {
        width: 5px;
    }
    
    .featured-image {
        height: 200px;
        margin-bottom: 2rem;
    }
    
    .post-content p:first-of-type::first-letter {
        font-size: 2rem;
    }
    
    .page-link {
        padding: 8px 15px;
        min-width: 40px;
    }
}

/* Calculator Age Table Styles */
.age-table {
    width: 100%;
    max-width: 800px;
    margin: 30px auto;
    border-collapse: collapse;
    background: linear-gradient(145deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    box-shadow: 
        0 10px 30px rgba(0,0,0,0.1),
        inset 0 1px 0 rgba(255,255,255,0.8);
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.age-table thead {
    background: linear-gradient(145deg, #007bff, #0056b3);
    color: white;
}

.age-table th {
    padding: 15px;
    text-align: center;
    font-weight: 600;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.age-table td {
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    font-size: 16px;
    transition: all 0.3s ease;
}

.age-table tbody tr {
    transition: all 0.3s ease;
}

.age-table tbody tr:hover {
    background-color: rgba(0,123,255,0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.age-table tbody tr:last-child td {
    border-bottom: none;
}

/* Alternating row colors for better readability */
.age-table tbody tr:nth-child(even) {
    background-color: rgba(0,0,0,0.02);
}

/* Calculator button styling */
.calculator-btn {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(145deg, #007bff, #0056b3);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,123,255,0.3);
    margin: 20px auto;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.calculator-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(0,123,255,0.4);
    background: linear-gradient(145deg, #0069d9, #0049b3);
}

.calculator-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(0,123,255,0.2);
}

/* Calculator container styling */
.calculator-container {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin: 40px auto;
    max-width: 850px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border: 1px solid rgba(0,0,0,0.05);
} 