/* SRO Custom Styles for Home Page Sections */

/* --- Layout Utilities --- */
.section-wrapper {
    margin-bottom: 3rem;
}

.trailer-container {
    max-width: 1000px;
    margin: 0 auto;
}

/* --- Stats Section Layout --- */
.stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
}

.stats-col {
    flex: 1;
    min-width: 300px;
}

/* --- Live Streams & Media --- */
.live-streams-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.live-stream-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stream-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 4px;
    background: #000;
}

.stream-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.stream-title {
    font-size: 0.9rem;
    color: #ddd;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.media-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

@media (max-width: 992px) {
    .media-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .media-list {
        grid-template-columns: 1fr;
    }
}

/* Live Pulse Animation */
.live-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 12px;
    height: 12px;
    background-color: #4ade80; /* Green-400 */
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 0 0 rgba(74, 222, 128, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(74, 222, 128, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
    }
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 2rem;
    align-items: start;
}

.showcase-col {
    min-width: 0;
}

.cards-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    align-items: start;
}
.cards-row.two-cols {
    grid-template-columns: 1.2fr 1fr;
}

.two-cols-layout{
    display:grid;
    grid-template-columns:1.2fr .6fr;
    gap:1.5rem;
    align-items:start;
}
.col-stack{
    display:flex;
    flex-direction:column;
    gap:1.5rem;
}


.card {
    background: #191411;
    border: 1px solid rgba(77, 63, 50, 0.5);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.25rem;
    color: #dcb158;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    position: relative;
    text-transform: uppercase;
    font-family: var(--font-1);
    font-weight: 600;
}

.card-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30%;
    height: 3px;
    background-color: #dcb158;
    box-shadow: 0 0 10px #dcb158 
}

.server-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 10px 5px;
    width: 100%;
}

.server-actions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 10px 5px;
    width: 100%;
}

@media (max-width: 768px) {
    .server-actions-grid {
        grid-template-columns: 1fr;
    }
}

.server-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.server-info-item:last-child {
    border-bottom: none;
}

.server-info-label {
    color: #aaa;
    font-size: 0.9rem;
}

.server-info-value {
    color: #dcb158;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Resources Grid (Download Page) */
.resources-grid {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Mini Ranks */
.mini-ranks-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mini-rank-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

.mini-rank-item:last-child {
    border-bottom: none;
}

.mini-rank-rank {
    width: 30px;
    color: #dcb158;
    font-weight: bold;
}

.mini-rank-name {
    flex: 1;
    color: #fff;
    font-weight: 500;
}

.mini-rank-guild {
    flex: 1;
    color: #aaa;
    font-size: 0.85rem;
    text-align: right;
    margin-right: 1rem;
}

.mini-rank-points {
    color: #dcb158;
    font-weight: bold;
    min-width: 60px;
    text-align: right;
}

/* Job Stats */
.job-stats-list {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.job-stat-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
    color: #ccc;
}

.job-stat-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.job-stat-fill {
    height: 100%;
    border-radius: 3px;
}

.job-stat-fill.trader { background-color: green; }
.job-stat-fill.hunter { background-color: #4a90e2; }
.job-stat-fill.thief { background-color: #e24a4a; }

/* Latest Items / Two Col List */
.two-col-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.sub-card-title {
    font-size: 1rem;
    color: #dcb158;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(219, 177, 88, 0.2);
    padding-bottom: 0.5rem;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

.info-item:last-child {
    border-bottom: none;
}

.info-title {
    color: #ddd;
}

.info-meta {
    color: #888;
    font-size: 0.8rem;
}

@media (max-width: 1024px) {
    .showcase-grid {
        grid-template-columns: 1fr;
    }

    .cards-row {
        grid-template-columns: 1fr;
    }
    
    .two-cols-layout {
        grid-template-columns: 1fr;
    }

    .live-streams-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .resources-grid {
        grid-template-columns: 1fr;
    }

    .two-col-list {
        grid-template-columns: 1fr;
    }
    
    .mini-rank-guild {
        display: none;
    }
}