/**
 * StarVTT - A Thieves Tale
 * Frontend Styles for New Thieves Tale Post Type
 */

/* Hero Container - Full width image section */
.starvtt-hero-container {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    margin: 0 auto;
    display: flex; /* Enables flex context */
	flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Hero Image - Full width */
.site-content {
    width: 100%;
	max-width: 1200px;
    height: auto;
    display: flex; /* Enables flex context */
	flex-direction: column;
    margin-left: auto;
    margin-right: auto;
}


/* Hero Image - Full width */
.starvtt-hero-container .starvtt-hero-image {
    width: 100%;
	max-width: 1200px;
    height: auto;
    object-fit: cover;
    display: flex; /* Enables flex context */
	flex-direction: column;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    align-items: center;
}

/* Title Overlay - Anchored bottom right with transparent black background */
.starvtt-title-overlay {
    position: absolute;
	width: 100%;
	max-width: 1200px;
    bottom: 0;
    padding: 15px 30px;
    background: rgba(0, 0, 0, 0.5);
}

/* Post Title Styling - White text */
.starvtt-post-title {
    margin: 0;
    color: #ffffff;
    font-size: 48px;
    font-weight: bold;
    text-align: right;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .starvtt-title-overlay {
        padding: 15px 20px;
    }
    
    .starvtt-post-title {
        font-size: 1.5em;
    }
}

@media (max-width: 480px) {
    .starvtt-title-overlay {
        padding: 10px 15px;
    }
    
    .starvtt-post-title {
        font-size: 1.2em;
    }
}

/* Ensure the hero section breaks out of container if theme has max-width */
.starvtt-hero-container {
/*    margin-left: calc(-50vw + 50%) !important;
/*    margin-right: calc(-50vw + 50%) !important;
}

/* Character Block Styles */
.starvtt-character-block {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 30px;
    margin: 20px 0;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.starvtt-character-header {
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.starvtt-character-name {
    margin: 0;
    font-size: 28px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.starvtt-character-info {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.starvtt-info-item {
    font-size: 16px;
}

.starvtt-info-label {
    font-weight: 600;
    opacity: 0.9;
}

.starvtt-info-value {
    font-weight: 400;
}

.starvtt-character-stats {
    margin-top: 20px;
}

.starvtt-stats-title {
    margin: 0 0 15px 0;
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.starvtt-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
}

.starvtt-stat-item {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.2s, background 0.2s;
}

.starvtt-stat-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.25);
}

.starvtt-stat-label {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    opacity: 0.9;
}

.starvtt-stat-value {
    font-size: 32px;
    font-weight: bold;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments for character block */
@media (max-width: 768px) {
    .starvtt-character-block {
        padding: 20px;
    }
    
    .starvtt-character-name {
        font-size: 24px;
    }
    
    .starvtt-character-info {
        gap: 15px;
    }
    
    .starvtt-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .starvtt-character-block {
        padding: 15px;
    }
    
    .starvtt-character-name {
        font-size: 20px;
    }
    
    .starvtt-stats-title {
        font-size: 18px;
    }
    
    .starvtt-stat-value {
        font-size: 28px;
    }
}
