/**
 * GS Media - Blog and inner pages styling
 */

.screen-reader-text {
    border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
    height: 1px; margin: -1px; overflow: hidden; padding: 0;
    position: absolute !important; width: 1px; word-wrap: normal !important;
}
.skip-link {
    position: absolute; left: -9999px; z-index: 999;
    padding: 12px 20px; background: #00E68A; color: #0D0D0D; text-decoration: none;
}
.skip-link:focus { left: 20px; top: 20px; }

.blog-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 140px 32px 100px;
    min-height: 70vh;
}

.blog-header {
    margin-bottom: 60px;
    text-align: center;
}

.blog-header h1 {
    font-family: 'Cabinet Grotesk', 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 48px;
    color: #F5F5F5;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.blog-header .blog-sub {
    color: #9A9A9A;
    font-size: 17px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
    margin-top: 40px;
}

.post-card {
    background: #141414;
    border: 1px solid rgba(0, 230, 138, 0.12);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    background: #0F1F17;
    border-color: #00E68A;
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 230, 138, 0.15);
}

.post-card .post-thumb {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #1A2A1F;
}

.post-card .post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-card:hover .post-thumb img {
    transform: scale(1.05);
}

.post-card .post-body {
    padding: 24px 24px 28px;
}

.post-card .post-meta {
    display: flex;
    gap: 16px;
    color: #5C5C5C;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.post-card h3,
.post-card .post-title {
    font-family: 'Cabinet Grotesk', 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: #F5F5F5;
    line-height: 1.3;
    margin-bottom: 12px;
}

.post-card h3 a, .post-card .post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.post-card:hover h3 a, .post-card:hover .post-title a {
    color: #4DFFB5;
}

.post-card .post-excerpt {
    color: #9A9A9A;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.post-card .read-more {
    color: #00E68A;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s;
}

.post-card:hover .read-more {
    gap: 10px;
}

.single-post-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 140px 32px 100px;
}

.single-post-header {
    margin-bottom: 40px;
    text-align: center;
}

.single-post-header .post-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: #5C5C5C;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.single-post-header h1 {
    font-family: 'Cabinet Grotesk', 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 48px;
    color: #F5F5F5;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.single-post-featured {
    aspect-ratio: 16 / 9;
    max-height: 500px;
    overflow: hidden;
    border-radius: 20px;
    margin-bottom: 48px;
    background: #1A2A1F;
}

.single-post-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-content {
    color: #C8C8C8;
    font-size: 17px;
    line-height: 1.8;
}

.post-content p { margin-bottom: 24px; }

.post-content h2 {
    font-family: 'Cabinet Grotesk', 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 32px;
    color: #F5F5F5;
    margin: 48px 0 20px;
    line-height: 1.25;
}

.post-content h3 {
    font-family: 'Cabinet Grotesk', 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: #F5F5F5;
    margin: 36px 0 16px;
}

.post-content h4 {
    font-family: 'Cabinet Grotesk', 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: #F5F5F5;
    margin: 28px 0 14px;
}

.post-content a {
    color: #4DFFB5;
    text-decoration: underline;
    text-decoration-color: rgba(0, 230, 138, 0.4);
    text-underline-offset: 3px;
    transition: all 0.2s;
}

.post-content a:hover {
    color: #00E68A;
    text-decoration-color: #00E68A;
}

.post-content ul, .post-content ol { margin: 20px 0 24px 24px; }
.post-content li { margin-bottom: 10px; }

.post-content blockquote {
    border-left: 3px solid #00E68A;
    padding: 16px 24px;
    margin: 32px 0;
    background: rgba(0, 230, 138, 0.05);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #4DFFB5;
}

.post-content code {
    background: rgba(0, 230, 138, 0.12);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'SF Mono', Consolas, monospace;
    font-size: 0.9em;
    color: #4DFFB5;
}

.post-content pre {
    background: #0A1510;
    border: 1px solid rgba(0, 230, 138, 0.2);
    padding: 20px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 28px 0;
}

.post-content pre code {
    background: none;
    padding: 0;
    color: #C8C8C8;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 24px 0;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 28px 0;
}

.post-content th, .post-content td {
    border: 1px solid rgba(0, 230, 138, 0.15);
    padding: 12px 16px;
    text-align: left;
}

.post-content th {
    background: rgba(0, 230, 138, 0.08);
    font-weight: 600;
    color: #F5F5F5;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 60px;
}

.pagination a, .pagination span {
    padding: 10px 16px;
    border: 1px solid rgba(0, 230, 138, 0.15);
    border-radius: 8px;
    color: #9A9A9A;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.pagination a:hover {
    border-color: #00E68A;
    background: rgba(0, 230, 138, 0.08);
    color: #F5F5F5;
}

.pagination .current {
    background: #00E68A;
    border-color: #00E68A;
    color: #0D0D0D;
}

.comments-area {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(0, 230, 138, 0.15);
}

.comments-area h2 {
    font-family: 'Cabinet Grotesk', 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: #F5F5F5;
    margin-bottom: 28px;
}

.comment-list { list-style: none; padding: 0; }

.comment-list li {
    padding: 20px;
    border: 1px solid rgba(0, 230, 138, 0.1);
    border-radius: 12px;
    margin-bottom: 16px;
    background: #141414;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.comment-author .fn { color: #F5F5F5; font-weight: 500; }

.comment-metadata {
    color: #5C5C5C;
    font-size: 12px;
    margin-bottom: 12px;
}

.comment-content p {
    color: #C8C8C8;
    line-height: 1.7;
    margin-bottom: 10px;
}

.comment-respond { margin-top: 40px; }

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    background: #0D0D0D;
    border: 1px solid rgba(0, 230, 138, 0.15);
    color: #F5F5F5;
    padding: 12px 16px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    margin-bottom: 16px;
    transition: border-color 0.2s;
}

.comment-form input:focus, .comment-form textarea:focus {
    outline: none;
    border-color: #00E68A;
}

.comment-form label {
    display: block;
    color: #9A9A9A;
    font-size: 14px;
    margin-bottom: 6px;
}

.comment-form .submit {
    background: #00E68A;
    color: #0D0D0D;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-family: 'Cabinet Grotesk', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.comment-form .submit:hover {
    background: #4DFFB5;
    transform: translateY(-1px);
    box-shadow: 0 10px 30px rgba(0, 230, 138, 0.3);
}

.error-404-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 180px 32px 120px;
    text-align: center;
    min-height: 70vh;
}

.error-404-wrap h1 {
    font-family: 'Cabinet Grotesk', 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 120px;
    color: #00E68A;
    line-height: 1;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #00E68A, #4DFFB5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.error-404-wrap h2 {
    font-family: 'Cabinet Grotesk', 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 32px;
    color: #F5F5F5;
    margin-bottom: 20px;
}

.error-404-wrap p {
    color: #9A9A9A;
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 36px;
}

.search-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto 40px;
}

.search-form input[type="search"] {
    flex: 1;
    background: #141414;
    border: 1px solid rgba(0, 230, 138, 0.15);
    color: #F5F5F5;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 15px;
}

.search-form input[type="search"]:focus {
    outline: none;
    border-color: #00E68A;
}

.search-form .search-submit {
    background: #00E68A;
    color: #0D0D0D;
    border: none;
    padding: 14px 24px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.search-form .search-submit:hover {
    background: #4DFFB5;
}

.page-content {
    max-width: 860px;
    margin: 0 auto;
    padding: 140px 32px 100px;
}

.page-content h1 {
    font-family: 'Cabinet Grotesk', 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 48px;
    color: #F5F5F5;
    margin-bottom: 32px;
    letter-spacing: -1px;
}

.back-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: #00E68A;
    color: #0D0D0D;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
}

.back-home-btn:hover {
    background: #4DFFB5;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 230, 138, 0.3);
}

@media (max-width: 768px) {
    .blog-header h1, .single-post-header h1, .page-content h1 {
        font-size: 32px;
    }
    .post-content { font-size: 16px; }
    .error-404-wrap h1 { font-size: 80px; }
    .posts-grid { grid-template-columns: 1fr; }
}
