/* ==========================================================
   ToListn Game Posts
   Games Grid CSS
   Version:2.0
========================================================== */


/* ==========================================================
   Section Title
========================================================== */


.tlgp-grid-title{

    margin:0 0 28px;

    padding-bottom:14px;

    border-bottom:2px solid var(--tlgp-border);

    font-size:28px;

    font-weight:800;

    color:var(--tlgp-text);

}



.tlgp-grid-title::after{

    content:"";

    display:block;

    width:70px;

    height:4px;

    margin-top:12px;

    border-radius:999px;

    background:var(--tlgp-primary);

}



/* ==========================================================
   Games Grid
========================================================== */


.tlgp-grid{

    display:grid;

    grid-template-columns:repeat(4,minmax(0,1fr));

    gap:28px;

}



/* ==========================================================
   Game Card
========================================================== */


.tlgp-card{

    background:#fff;

    border-radius:18px;

    overflow:hidden;

    box-shadow:0 10px 25px rgba(0,0,0,.05);

    transition:var(--tlgp-transition);

}



.tlgp-card:hover{

    transform:translateY(-8px);

    box-shadow:0 18px 45px rgba(0,0,0,.12);

}



/* ==========================================================
   Card Image
========================================================== */


.tlgp-card-image{

    overflow:hidden;

    aspect-ratio:16/9;

    background:#f5f5f5;

}



.tlgp-card-image img{

    width:100%;

    height:100%;

    object-fit:cover;

    transition:.45s ease;

}



.tlgp-card:hover .tlgp-card-image img{

    transform:scale(1.08);

}



/* ==========================================================
   Card Content
========================================================== */


.tlgp-card-content{

    padding:18px;

    display:flex;

    flex-direction:column;

    justify-content:space-between;

    min-height:135px;

}



/* ==========================================================
   Card Title
========================================================== */


.tlgp-card-title{

    margin:0 0 12px;

    font-size:18px;

    font-weight:700;

    line-height:1.45;


    display:-webkit-box;

    -webkit-box-orient:vertical;

    -webkit-line-clamp:2;

    overflow:hidden;

    min-height:3.1em;

}



.tlgp-card-title a{

    color:var(--tlgp-text);

    text-decoration:none;

    transition:.3s ease;

}



.tlgp-card-title a:hover{

    color:var(--tlgp-primary);

}



/* ==========================================================
   Card Date
========================================================== */


.tlgp-card .tlgp-date{

    display:inline-flex;

    align-items:center;

    font-size:13px;

    color:var(--tlgp-muted);

    letter-spacing:.2px;

}



/* ==========================================================
   Hover Text
========================================================== */


.tlgp-card:hover .tlgp-card-title a{

    color:var(--tlgp-primary);

}



.tlgp-card:hover .tlgp-date{

    color:#666;

}



/* ==========================================================
   Category Cards Future Support
========================================================== */


/*
   Future game category colors

   Example:

   .minecraft-card{}
   .terraria-card{}
   .stardew-card{}
   .dst-card{}

*/


/* ==========================================================
   Responsive
========================================================== */


@media(max-width:1200px){


    .tlgp-grid{

        grid-template-columns:repeat(3,minmax(0,1fr));

    }


}



@media(max-width:992px){


    .tlgp-grid{

        grid-template-columns:repeat(2,minmax(0,1fr));

    }


}



@media(max-width:768px){


    .tlgp-grid{

        grid-template-columns:1fr;

        gap:22px;

    }


}



@media(max-width:480px){


    .tlgp-card-content{

        padding:16px;

    }



    .tlgp-card-title{

        font-size:17px;

    }


}

/* ==========================================================
   ToListn Minecraft Module Compact Optimization v1
========================================================== */


/* ==========================================================
   Reduce Section Spacing
   减少模块上下距离
========================================================== */


.tlgp-section{

    margin-top:10px;

    margin-bottom:10px;

}



/* ==========================================================
   Header Compact
   压缩 Minecraft 标题区域
========================================================== */


.tlgp-header{

    margin-bottom:20px;

}



.tlgp-heading h2{

    font-size:36px;

}



.tlgp-heading p{

    font-size:15px;

    line-height:1.6;

}



/* ==========================================================
   Featured Compact
   主推荐文章信息密度提升
========================================================== */


.tlgp-featured-content{

    padding:32px;

}



.tlgp-featured-title{

    font-size:32px;

    line-height:1.3;

    margin:18px 0 14px;

}



.tlgp-featured-excerpt{

    font-size:15px;

    line-height:1.7;

    margin-bottom:20px;

}



/* 日期区域 */

.tlgp-featured .tlgp-meta{

    margin-bottom:20px;

}



/* Read Button */

.tlgp-read-btn{

    padding:12px 24px;

}



/* ==========================================================
   Latest Guides Compact
   右侧列表增加信息密度
========================================================== */


.tlgp-guide-panel{

    padding:22px;

}



.tlgp-guide-heading{

    font-size:22px;

    margin-bottom:18px;

}



.tlgp-guide-item{

    gap:14px;

    padding:12px 0;

}



.tlgp-guide-thumb{

    flex-basis:120px;

}



.tlgp-guide-thumb img{

    height:72px;

}



.tlgp-guide-content h4{

    font-size:16px;

    line-height:1.35;

    margin-bottom:6px;

}



.tlgp-guide-content .tlgp-date{

    font-size:13px;

}



/* ==========================================================
   Game Cards More Dense
========================================================== */


.tlgp-grid{

    gap:22px;

}



.tlgp-card-content{

    padding:15px;

    min-height:120px;

}



.tlgp-card-title{

    font-size:17px;

    line-height:1.4;

}



/* ==========================================================
   Desktop Only
========================================================== */


@media(min-width:1200px){


    .tlgp-main{

        gap:32px;

    }


    .tlgp-featured-title{

        font-size:30px;

    }


}



/* ==========================================================
   Mobile Reset
========================================================== */


@media(max-width:768px){


    .tlgp-section{

        margin-top:45px;

        margin-bottom:45px;

    }


    .tlgp-featured-content{

        padding:22px;

    }


}

/* Game section card */

.tlgp-header{

    background:#ffffff;

    padding:25px 30px 10px;

    border-radius:20px 20px 0 0;

}


.tlgp-main{

    background:#ffffff;

    border-radius:0 0 20px 20px;

    padding:30px;

    box-shadow:0 10px 30px rgba(0,0,0,.05);

}

