body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.site-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    align-items: start;
}

.post {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.post:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #f5576c);
    background-size: 300% 100%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.inside-article {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.entry-header {
    padding: 25px 25px 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    position: relative;
}

.entry-title {
    margin: 0 0 15px 0;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.3;
}

.entry-title a {
    color: #2d3748;
    text-decoration: none;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.entry-title a:hover {
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.entry-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.85rem;
    color: #718096;
    flex-wrap: wrap;
}

.entry-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.entry-meta a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.entry-meta a:hover {
    color: #5a67d8;
}

.entry-meta time {
    font-weight: 500;
}

.post-image {
    position: relative;
    overflow: hidden;
    height: 220px;
    background: linear-gradient(135deg, #f7fafc, #edf2f7);
}

.post-image a {
    display: block;
    height: 100%;
    position: relative;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    filter: brightness(0.95);
}

.post:hover .post-image img {
    transform: scale(1.05);
    filter: brightness(1);
}

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

.post:hover .post-image::after {
    opacity: 1;
}

.entry-summary {
    padding: 20px 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.entry-summary p {
    color: #4a5568;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
    flex-grow: 1;
}

.entry-meta[aria-label="Entry meta"] {
    padding: 20px 25px 25px;
    border-top: 1px solid #e2e8f0;
    background: rgba(247, 250, 252, 0.5);
    margin-top: auto;
    justify-content: space-between;
}

.cat-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cat-links a {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.cat-links a:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
}

.comments-link {
    display:none;
}

.gp-icon {
    width: 1em;
    height: 1em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gp-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    padding: 0 !important;
    border: 0 !important;
    height: 1px !important;
    width: 1px !important;
    overflow: hidden;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post {
    animation: fadeInUp 0.6s ease-out;
}

.post:nth-child(1) { animation-delay: 0.1s; }
.post:nth-child(2) { animation-delay: 0.2s; }
.post:nth-child(3) { animation-delay: 0.3s; }
.post:nth-child(4) { animation-delay: 0.4s; }

.post {
    position: relative;
    z-index: 1;
}

.post:hover {
    z-index: 10;
}

@media (max-width: 1024px) {
    .site-main {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
        padding: 30px 15px;
    }
    
    .entry-title {
        font-size: 1.3rem;
    }
    
    .post-image {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .site-main {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 15px;
    }
    
    .entry-title {
        font-size: 1.2rem;
    }
    
    .entry-header,
    .entry-summary {
        padding: 20px;
    }
    
    .entry-meta[aria-label="Entry meta"] {
        padding: 15px 20px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .post-image {
        height: 180px;
    }
    
    .post:hover {
        transform: translateY(-4px) scale(1.01);
    }
}

@media (max-width: 480px) {
    .site-main {
        padding: 15px 10px;
        gap: 15px;
    }
    
    .entry-title {
        font-size: 1.1rem;
    }
    
    .entry-header,
    .entry-summary {
        padding: 15px;
    }
    
    .entry-meta[aria-label="Entry meta"] {
        padding: 12px 15px 15px;
    }
    
    .post-image {
        height: 160px;
    }
    
    .entry-meta {
        gap: 10px;
        font-size: 0.8rem;
    }
    
    .cat-links a {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
}

@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
        color: #e2e8f0;
    }
    
    .post {
        background: rgba(45, 55, 72, 0.9);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .entry-header {
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    }
    
    .entry-title a {
        color: #e2e8f0;
    }
    
    .entry-summary p {
        color: #cbd5e0;
    }
    
    .entry-meta[aria-label="Entry meta"] {
        background: rgba(26, 32, 44, 0.5);
        border-color: rgba(255, 255, 255, 0.1);
    }

}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .post:hover {
        transform: none;
    }
    
    .post-image img {
        transition: none;
    }
}
@media print {
    body {
        background: white;
    }
    
    .post {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
        margin-bottom: 20px;
    }
    
    .post:hover {
        transform: none;
    }
    
    .post-image {
        height: auto;
        max-height: 200px;
    }
    
    .entry-meta[aria-label="Entry meta"] {
        background: #f5f5f5;
    }
    
    .cat-links a {
        background: #666;
        color: white;
    }
}
@media (prefers-contrast: high) {
    .post {
        border: 2px solid #000;
    }
    
    .entry-title a {
        color: #000;
        -webkit-text-fill-color: #000;
    }
    
    .cat-links a {
        background: #000;
        color: #fff;
    }
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
}

html {
    scroll-behavior: smooth;
}
a:focus,
button:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

::selection {
    background: rgba(102, 126, 234, 0.2);
    color: inherit;
}

::-moz-selection {
    background: rgba(102, 126, 234, 0.2);
    color: inherit;
}