/* ============================================================
   AbuAmra Gaming Blog – Styles
   ============================================================ */

/* ============ BLOG HERO ============ */
.blog-hero {
    text-align: center;
    padding: 120px 20px 50px;
    background: linear-gradient(180deg, #0a0a14 0%, #0d0d1a 100%);
}

.blog-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    color: #fff;
    margin: 0 0 12px;
}

.blog-hero p {
    color: #777;
    font-size: 1.1rem;
    margin: 0;
}

/* ============ BLOG GRID ============ */
.blog-grid-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

/* ============ BLOG CARD ============ */
.blog-card {
    position: relative;
    background: #12122a;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    animation: blogCardIn 0.5s ease-out both;
}

.blog-card:nth-child(2) { animation-delay: 0.08s; }
.blog-card:nth-child(3) { animation-delay: 0.16s; }
.blog-card:nth-child(4) { animation-delay: 0.24s; }
.blog-card:nth-child(5) { animation-delay: 0.32s; }

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

.blog-card:hover {
    transform: translateY(-6px);
    border-color: var(--card-accent, #00f0ff);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 20px color-mix(in srgb, var(--card-accent, #00f0ff) 20%, transparent);
}

.blog-card-icon {
    font-size: 48px;
    padding: 28px 24px 0;
    filter: drop-shadow(0 0 12px color-mix(in srgb, var(--card-accent, #00f0ff) 40%, transparent));
}

.blog-card-thumb {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    position: relative;
}

.blog-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease, filter 0.45s ease;
    filter: brightness(0.85) saturate(1.1);
}

.blog-card:hover .blog-card-thumb img {
    transform: scale(1.08);
    filter: brightness(1) saturate(1.2);
}

.blog-card-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(10, 10, 30, 0.85) 100%);
    pointer-events: none;
}

.blog-card-body { padding: 12px 24px 24px; }

.blog-card-date {
    display: block;
    font-size: 12px;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.blog-card-title {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0 0 10px;
    line-height: 1.35;
}

.blog-card-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-card:hover .blog-card-title a { color: var(--card-accent, #00f0ff); }

.blog-card-excerpt {
    color: #888;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 14px;
}

.blog-card-meta {
    font-size: 12px;
    color: #666;
}

.blog-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* ============ PAGINATION ============ */
.blog-pagination {
    text-align: center;
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.blog-pagination a,
.blog-pagination span {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.blog-pagination a {
    background: #12122a;
    color: #aaa;
    border: 1px solid rgba(255,255,255,0.06);
}

.blog-pagination a:hover {
    background: rgba(0,240,255,0.1);
    color: #00f0ff;
    border-color: #00f0ff;
}

.blog-pagination .current {
    background: linear-gradient(135deg, #00f0ff, #b400ff);
    color: #fff;
}

.blog-empty {
    text-align: center;
    color: #666;
    font-size: 1.2rem;
    padding: 60px 20px;
}

/* ============ SINGLE POST ============ */
.sp-article {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.sp-header {
    text-align: center;
    padding: 120px 0 40px;
}

.sp-back {
    display: inline-block;
    color: var(--card-accent, #00f0ff);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    transition: opacity 0.2s;
}

.sp-back:hover { opacity: 0.7; }

.sp-date {
    display: block;
    font-size: 13px;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}

.sp-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.25;
    margin: 0 0 16px;
    background: linear-gradient(135deg, #fff 60%, var(--card-accent, #00f0ff));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sp-meta {
    display: flex;
    justify-content: center;
    gap: 24px;
    font-size: 14px;
    color: #666;
}

/* ============ SINGLE POST FEATURED IMAGE ============ */
.sp-featured-img {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 32px;
    animation: spFadeIn 0.5s ease-out both;
}

.sp-featured-img img {
    width: 100%;
    height: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 16px;
    filter: brightness(0.9) saturate(1.1);
    transition: filter 0.4s ease;
}

.sp-featured-img:hover img {
    filter: brightness(1) saturate(1.2);
}

/* ============ POST CONTENT ============ */
.sp-content {
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 40px;
    animation: spFadeIn 0.6s ease-out 0.2s both;
}

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

.sp-content p {
    color: #bbb;
    font-size: 16px;
    line-height: 1.8;
    margin: 0 0 20px;
}

.sp-content h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    margin: 36px 0 14px;
    padding-left: 14px;
    border-left: 3px solid var(--card-accent, #00f0ff);
}

.sp-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ddd;
    margin: 28px 0 12px;
}

.sp-content ul, .sp-content ol {
    color: #bbb;
    padding-left: 24px;
    margin: 0 0 20px;
}

.sp-content li {
    margin-bottom: 10px;
    line-height: 1.7;
    font-size: 15px;
}

.sp-content strong { color: #fff; }

.sp-content a {
    color: var(--card-accent, #00f0ff);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ============ SHARE ============ */
.sp-share {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.sp-share > span {
    font-size: 14px;
    color: #666;
    font-weight: 600;
}

.sp-share-btn {
    padding: 8px 18px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.1);
    background: #12122a;
    color: #aaa;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s;
    font-family: inherit;
}

.sp-share-btn:hover {
    border-color: #00f0ff;
    color: #00f0ff;
    background: rgba(0,240,255,0.08);
}

/* ============ COMMENTS SECTION ============ */
.sp-comments {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

.sp-comments-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 30px;
}

.sp-comments-title span { color: #666; font-weight: 400; }

.sp-comment-list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 40px; }

.sp-comment {
    display: flex;
    gap: 14px;
    padding: 20px;
    background: #12122a;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 14px;
    animation: spCommentIn 0.4s ease-out both;
}

@keyframes spCommentIn {
    from { opacity: 0; transform: translateX(-12px); }
    to   { opacity: 1; transform: translateX(0); }
}

.sp-comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

.sp-comment-meta {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 6px;
}

.sp-comment-meta strong { color: #fff; font-size: 14px; }
.sp-comment-meta time { font-size: 12px; color: #555; }

.sp-comment-text { color: #aaa; font-size: 14px; line-height: 1.65; }
.sp-comment-text p { margin: 0; }

.sp-no-comments {
    text-align: center;
    color: #555;
    font-size: 1.1rem;
    padding: 40px 0;
}

/* ============ COMMENT FORM ============ */
.sp-comment-form-wrap {
    background: #0d0d1a;
    border: 1px solid rgba(0,240,255,0.1);
    border-radius: 18px;
    padding: 32px;
}

.sp-comment-form-wrap h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 20px;
}

.sp-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.sp-form-field { display: flex; flex-direction: column; gap: 6px; }

.sp-form-field label {
    font-size: 12px;
    font-weight: 600;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sp-form-field input,
.sp-form-field textarea {
    background: #12122a;
    border: 1.5px solid rgba(0,240,255,0.12);
    border-radius: 10px;
    color: #fff;
    padding: 12px 16px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    resize: vertical;
}

.sp-form-field input:focus,
.sp-form-field textarea:focus {
    border-color: #00f0ff;
    box-shadow: 0 0 14px rgba(0,240,255,0.1);
}

.sp-form-field input::placeholder,
.sp-form-field textarea::placeholder { color: #444; }

.sp-form-field + .sp-form-field { margin-bottom: 16px; }

.sp-submit-btn {
    display: inline-block;
    padding: 14px 32px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #00f0ff, #b400ff);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.3s;
    margin-top: 8px;
}

.sp-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0,240,255,0.3);
}

.sp-submit-btn:active { transform: scale(0.97); }

.sp-form-note {
    font-size: 12px;
    color: #555;
    margin-top: 12px;
}

/* ============ BLOG + MESSAGE SECTION (landing page) ============ */
.blog-msg-section {
    position: relative;
    overflow: hidden;
}

.blog-msg-section .gaming-section-header {
    margin-bottom: 20px;
}

.blog-msg-grid {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
    gap: 22px;
    align-items: stretch;
}

.blog-msg-card {
    background: linear-gradient(145deg, #10101f 0%, #1a0f28 55%, #0b1220 100%);
    border: 1px solid rgba(180, 0, 255, 0.22);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s, border-color 0.3s;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.blog-msg-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 50% at 20% 0%, rgba(180, 0, 255, 0.08), transparent 55%);
    pointer-events: none;
}

/* ---- Blog card: grid — top ~50% hero visual, bottom text ---- */
.blog-msg-blog-card {
    display: grid;
    grid-template-rows: minmax(180px, 1fr) minmax(0, 1fr);
    align-items: stretch;
    gap: 0;
    padding: 0;
    text-decoration: none !important;
    color: inherit !important;
    border-radius: 18px 10px 22px 14px;
    box-shadow: 8px 12px 0 rgba(0, 0, 0, 0.25), -4px -4px 24px rgba(180, 0, 255, 0.06);
    transform: rotate(-0.35deg);
    min-height: 380px;
}

.blog-msg-blog-card:hover {
    transform: rotate(0deg) translateY(-5px);
    border-color: rgba(180, 0, 255, 0.55);
    box-shadow: 12px 16px 0 rgba(0, 0, 0, 0.2), 0 0 40px rgba(180, 0, 255, 0.18);
}

.blog-msg-visual {
    grid-row: 1;
    min-height: 0;
    width: 100%;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
    background:
        linear-gradient(160deg, rgba(26, 15, 46, 0.4) 0%, transparent 45%),
        linear-gradient(145deg, rgba(0, 240, 255, 0.14), rgba(180, 0, 255, 0.28));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(3.5rem, 14vw, 5.5rem);
    line-height: 1;
    filter: drop-shadow(0 0 20px rgba(180, 0, 255, 0.4));
    box-shadow: inset 0 -20px 40px rgba(0, 0, 0, 0.35);
    position: relative;
    z-index: 1;
}

.blog-msg-copy {
    grid-row: 2;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 14px 18px 18px;
    position: relative;
    z-index: 1;
}

.blog-msg-copy h3 {
    font-size: 1.25rem;
    font-weight: 900;
    color: #fff;
    margin: 0;
    line-height: 1.2;
}

.blog-msg-copy h3 span {
    background: linear-gradient(135deg, #b400ff, #00f0ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-msg-copy p {
    color: #8a8aa8;
    font-size: 13px;
    line-height: 1.55;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-msg-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    padding: 10px 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, #b400ff, #00f0ff);
    color: #fff !important;
    font-size: 13px;
    font-weight: 800;
    width: fit-content;
    box-shadow: 0 4px 18px rgba(180, 0, 255, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
}

.blog-msg-blog-card:hover .blog-msg-cta {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 240, 255, 0.35);
}

/* ---- Form card: wider, rectangular, offset “jumble” ---- */
.msg-form-card {
    border-color: rgba(0, 240, 255, 0.22);
    border-radius: 12px 24px 16px 20px;
    padding: 18px 22px 20px;
    box-shadow: -6px 10px 0 rgba(0, 0, 0, 0.28), 4px -4px 28px rgba(0, 240, 255, 0.06);
    transform: rotate(0.4deg);
}

.msg-form-card:hover {
    border-color: rgba(0, 240, 255, 0.45);
    box-shadow: -8px 14px 0 rgba(0, 0, 0, 0.22), 0 0 36px rgba(0, 240, 255, 0.12);
    transform: rotate(0deg) translateY(-4px);
}

.msg-form-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.msg-form-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(0, 255, 136, 0.1));
    border: 1px solid rgba(0, 240, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.msg-form-head-text h3 {
    font-size: 1.2rem;
    font-weight: 900;
    color: #fff;
    margin: 0 0 4px;
}

.msg-form-head-text h3 span {
    background: linear-gradient(135deg, #00f0ff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.msg-form-head-text p {
    color: #7a7a98;
    font-size: 12px;
    line-height: 1.45;
    margin: 0;
}

.blog-msg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    background: linear-gradient(135deg, #b400ff, #00f0ff);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: box-shadow 0.3s, transform 0.2s;
    font-family: inherit;
}

.blog-msg-btn:hover {
    box-shadow: 0 4px 25px rgba(180, 0, 255, 0.45);
    transform: translateY(-2px);
}

.msg-submit-btn {
    background: linear-gradient(135deg, #00f0ff, #00ff88);
    color: #0a0a1a;
    width: 100%;
    justify-content: center;
    border-radius: 10px;
    padding: 14px 24px;
    font-weight: 800;
    margin-top: 4px;
}

.msg-submit-btn:hover {
    box-shadow: 0 4px 25px rgba(0, 240, 255, 0.45);
}

.msg-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ---- Message form fields ---- */
.msg-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 1;
    width: 100%;
}

.msg-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.msg-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #5a5a78;
    margin-bottom: 6px;
}

.msg-field input,
.msg-field textarea {
    width: 100%;
    padding: 11px 14px;
    background: rgba(6, 8, 20, 0.75);
    border: 1px solid rgba(0, 240, 255, 0.18);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

.msg-field textarea {
    border-radius: 10px;
    min-height: 72px;
    resize: vertical;
}

.msg-field input::placeholder,
.msg-field textarea::placeholder {
    color: #555;
}

.msg-field input:focus,
.msg-field textarea:focus {
    border-color: #00f0ff;
    box-shadow: 0 0 0 1px rgba(0, 240, 255, 0.25);
}

.msg-field-full {
    grid-column: 1 / -1;
}

.msg-status {
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    min-height: 20px;
    margin-top: 4px;
}

.msg-success { color: #00ff88; }
.msg-error { color: #ff0066; }

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .blog-grid { grid-template-columns: 1fr; }
    .sp-form-row { grid-template-columns: 1fr; }
    .blog-msg-grid {
        grid-template-columns: 1fr;
        padding: 0 16px;
        gap: 18px;
    }
    .blog-msg-blog-card {
        text-align: center;
        min-height: 340px;
        grid-template-rows: minmax(150px, 1fr) auto;
        transform: none;
    }
    .blog-msg-blog-card:hover {
        transform: translateY(-4px);
    }
    .blog-msg-visual {
        min-height: 150px;
        font-size: clamp(3rem, 18vw, 4.5rem);
    }
    .blog-msg-copy {
        text-align: left;
        padding: 14px 16px 16px;
    }
    .blog-msg-cta {
        margin-left: auto;
        margin-right: auto;
    }
    .msg-form-card {
        transform: none;
        padding: 18px 18px 20px;
    }
    .msg-form-card:hover {
        transform: translateY(-4px);
    }
    .msg-form-row {
        grid-template-columns: 1fr;
    }
    .sp-header { padding-top: 100px; }
}

@media (max-width: 480px) {
    .sp-comment { flex-direction: column; gap: 10px; }
    .sp-comment-form-wrap { padding: 24px 18px; }
}
