/*
 Theme Name:   Starter Blog Child
 Theme URI:    http://tmib.net/starter-blog-child
 Description:  Child theme for Starter Blog
 Author:       tmib
 Author URI:   http://tmib.net
 Template:     starter-blog
 Version:      42
*/

/* ==============================================
   THEME OVERRIDES
   ============================================== */

/* Override parent theme spacing for all single post types */
.single-weapon #main.content-area,
.single-imprints #main.content-area,
.single-heroes #main.content-area,
.single-effects #main.content-area {
    padding-top: 10px !important;
}

.single-weapon .starterblog-col-12,
.single-imprints .starterblog-col-12,
.single-heroes .starterblog-col-12,
.single-effects .starterblog-col-12 {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

/* General parent theme overrides */
.starterblog-col-9_sm-12,
.site-content {
    margin-top: 2px !important;
    padding-top: 2px !important;
    gap: 0px;
}

.page-titlebar {
    margin: 2px !important;
    padding: 2px !important;
}

/* ==============================================
   HEADER SECTIONS (TITLE + SEARCH)
   ============================================== */

/* Weapon Header - Title and Search on Same Line */
.weapon-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 20px;
    margin-bottom: 10px;
}

.weapon-header h1 {
    margin: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    padding-bottom: 0 !important;
    flex: 0 1 auto;
    line-height: 1.2;
}

.weapon-header div {
    margin: 0 !important;
    max-height: 40px !important;
}

.weapon-search {
    flex: 0 0 auto;
    margin-left: auto;
    align-self: flex-end;
}

/* Imprint Header - Title and Search on Same Line */
.imprint-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 20px;
    margin-bottom: 10px;
}

.imprint-header h1 {
    margin: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    padding-bottom: 0 !important;
    flex: 0 1 auto;
    line-height: 1.2;
}

.imprint-header div {
    margin: 0 !important;
    max-height: 40px !important;
}

.imprint-search {
    flex: 0 0 auto;
    margin-left: auto;
    align-self: flex-end;
}

/* Hero Header - Title and Search on Same Line */
.hero-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 20px;
    margin-bottom: 10px;
}

.hero-header h1 {
    margin: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    padding-bottom: 0 !important;
    flex: 0 1 auto;
    line-height: 1.2;
}

.hero-header div {
    margin: 0 !important;
    max-height: 40px !important;
}

.hero-search {
    flex: 0 0 auto;
    margin-left: auto;
    align-self: flex-end;
}

/* Effect Header - Title and Search on Same Line */
.effect-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 20px;
    margin-bottom: 10px;
}

.effect-header h1 {
    margin: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    padding-bottom: 0 !important;
    flex: 0 1 auto;
    line-height: 1.2;
}

.effect-header div {
    margin: 0 !important;
    max-height: 40px !important;
}

.effect-search {
    flex: 0 0 auto;
    margin-left: auto;
    align-self: flex-end;
}

/* ==============================================
   RARITY COLORS
   ============================================== */

.rarity-legendary {
    color: #a5771d;
    font-weight: bold;
}

.rarity-epic {
    color: #8932c4;
    font-weight: bold;
}

.rarity-rare {
    color: #1066c8;
    font-weight: bold;
}

/* Rarity colors within hero stats container */
.hero-stats-container .rarity-legendary {
    color: #fbbf24;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.4);
}

.hero-stats-container .rarity-epic {
    color: #c084fc;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(192, 132, 252, 0.4);
}

.hero-stats-container .rarity-rare {
    color: #60a5fa;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(96, 165, 250, 0.4);
}

/* ==============================================
   INFO BOXES (WEAPONS & EFFECTS)
   ============================================== */

/* Shared info box styling */
.weapon-info-box,
.effect-info-box {
    background-color: #E2E8F0;
    padding: 30px;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.effect-info-box {
    min-height: 200px;
}

/* ==============================================
   DETAIL LAYOUTS (WEAPONS & EFFECTS)
   ============================================== */

/* Shared detail layout */
.weapon-details,
.effect-details {
    display: flex;
    gap: 30px;
    margin: 0;
    align-items: flex-start;
}

/* ==============================================
   FEATURED IMAGES
   ============================================== */

/* Weapon featured image */
.weapon-featured-image {
    flex: 0 0 280px;
    max-width: 280px;
}

.weapon-featured-image > img {
    width: 100%;
    height: auto;
    border-radius: 12px 12px 0 0;
    display: block;
}

/* Effect featured image */
.effect-featured-image {
    flex: 0 0 140px;
    max-width: 140px;
}

.effect-featured-image > img {
    width: 100%;
    height: auto;
    border-radius: 12px 12px 0 0;
    display: block;
    background: #1e293b;
    padding: 10px;
    max-height: 100px;
    object-fit: contain;
}

/* ==============================================
   STATS CONTAINERS
   ============================================== */

/* Hero stats container */
.hero-stats-container {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    border: 2px solid #3b82f6;
}

.hero-stats-container p {
    margin: 0;
    padding: 8px 10px;
    color: #e0e7ff;
    font-size: 0.95em;
    line-height: 1.2;
    background: rgba(255, 255, 255, 0.05);
}

.hero-stats-container p strong {
    color: #fbbf24;
    font-weight: 600;
    display: inline-block;
    min-width: 50px;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 0.5px;
}

.hero-stats-container p + p {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Effect stats container */
.effect-stats-container {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    border: 2px solid #3b82f6;
    border-top: none;
}

.effect-stats-container p {
    margin: 0;
    padding: 12px 16px;
    color: #e0e7ff;
    font-size: 0.95em;
    line-height: 1.2;
    background: rgba(255, 255, 255, 0.05);
}

.effect-stats-container p strong {
    color: #fbbf24;
    font-weight: 600;
    display: inline-block;
    min-width: 50px;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 0.5px;
}

.effect-stats-container p + p {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==============================================
   ACF FIELDS SECTIONS
   ============================================== */

/* Weapon ACF fields */
.weapon-acf-fields {
    flex: 1;
    min-width: 0;
    color: #1e293b;
}

.weapon-acf-fields p {
    margin: 0 0 20px 0;
    font-size: 1.1em;
    color: #1e293b;
}

.weapon-acf-fields strong {
    color: #0f172a;
    font-size: 1.05em;
}

/* Effect ACF fields */
.effect-acf-fields {
    flex: 1;
    min-width: 0;
    color: #1e293b;
}

.effect-acf-fields p {
    margin: 0 0 20px 0;
    font-size: 1.1em;
    color: #1e293b;
}

.effect-acf-fields strong {
    color: #0f172a;
    font-size: 1.05em;
}

/* ==============================================
   DESCRIPTION SECTIONS
   ============================================== */

/* Description styling for Weapons, Imprints, Heroes, and Effects */
.weapon-description,
.imprint-description,
.hero-description,
.effect-description {
    margin: 0 0 25px 0;
    line-height: 1.8;
    font-size: 1.05em;
    color: #1e293b;
}

.weapon-description p:first-child,
.imprint-description p:first-child,
.hero-description p:first-child,
.effect-description p:first-child {
    margin-bottom: 5px !important;
}

.weapon-description p,
.imprint-description p,
.hero-description p,
.effect-description p {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 0px 0;
}

.weapon-description p strong,
.imprint-description p strong,
.hero-description p strong,
.effect-description p strong {
    display: block;
}

.weapon-description img,
.imprint-description img,
.hero-description img,
.effect-description img {
    display: inline-block;
    vertical-align: middle;
}

/* ==============================================
   META SECTIONS (IMPRINTS & EFFECTS)
   ============================================== */

/* Shared meta container */
.imprint-meta,
.effect-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 0px;
    margin-bottom: 0px;
}

.effect-meta {
    gap: 30px;
}

.imprint-meta-left,
.imprint-meta-right,
.effect-meta-left,
.effect-meta-right {
    flex: 1;
}

/* Imprint meta styling */
.imprint-meta p {
    margin: 2px !important;
    padding: 2px !important;
    line-height: 0.8;
}

.imprint-meta-left p + p,
.imprint-meta-right p + p {
    margin-top: 1px;
}

/* History Section */
.imprint-meta-left > p:first-child {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 20px 20px 20px 30px !important;
    border-radius: 10px;
    border-left: 4px solid #3b82f6;
    margin: 0 0 14px 0 !important;
    line-height: 1.7 !important;
    font-size: 1.05em;
    color: #334155;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Ability Cards Styling */
.imprint-meta-left > p:nth-child(2),
.imprint-meta-left > p:nth-child(3),
.imprint-meta-left > p:nth-child(4),
.imprint-meta-left > p:nth-child(5),
.imprint-meta-left > p:nth-child(6) {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%) !important;
    padding: 18px 18px 18px 28px !important;
    margin: 0 0 11px 5px !important;
    border-radius: 10px;
    border: 2px solid #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    line-height: 1.6 !important;
    transition: all 0.3s ease;
}

.imprint-meta-left > p:nth-child(2):hover,
.imprint-meta-left > p:nth-child(3):hover,
.imprint-meta-left > p:nth-child(4):hover,
.imprint-meta-left > p:nth-child(5):hover,
.imprint-meta-left > p:nth-child(6):hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

/* Imprint meta left specific styling */
.imprint-meta-left > p:nth-child(2) strong,
.imprint-meta-left > p:nth-child(3) strong,
.imprint-meta-left > p:nth-child(4) strong,
.imprint-meta-left > p:nth-child(5) strong,
.imprint-meta-left > p:nth-child(6) strong {
    display: block;
    color: #1e40af;
    font-size: 0.85em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.imprint-meta-left > p:nth-child(2) img,
.imprint-meta-left > p:nth-child(3) img,
.imprint-meta-left > p:nth-child(4) img,
.imprint-meta-left > p:nth-child(5) img,
.imprint-meta-left > p:nth-child(6) img,
.imprint-meta-left > p:nth-child(7) img,
.imprint-meta-left > p:nth-child(8) img {
    float: left;
    margin-right: 15px;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: #e2e8f0;
    padding: 4px;
    border: 2px solid #cbd5e1;
}

/* Imprint wrapper and frame styling */
.imprint-wrapper {
    position: relative;
    display: inline-block;
    width: 75px;
    height: 75px;
    float: left;
    margin-right: 15px;
    background: transparent;
}

.imprint-image {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 67px;
    height: 67px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 50%;
    clip-path: circle(50% at 50% 50%);
    z-index: 2;
}

.imprint-frame {
    position: absolute;
    inset: 0;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 3;
    pointer-events: none;
}

/* Ability image styling for larger icons */
.ability-image {
    width: 67px !important;
    height: 67px !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

/* Ability name styling - 33% larger */
.ability-name {
    font-size: 133% !important;
    display: inline !important;
    vertical-align: middle !important;
}

/* Ability label styling - center over icon */
.ability-label {
    display: block !important;
    text-align: center !important;
    width: 67px !important;
    margin: 0 !important;
}

/* Imprint ability card styling - matches other ability cards */
.imprint-meta-left > p.imprint-ability {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%) !important;
    padding: 18px 18px 18px 28px !important;
    margin: 0 0 11px 5px !important;
    border-radius: 10px;
    border: 2px solid #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    line-height: 1.6 !important;
    transition: all 0.3s ease;
}

.imprint-meta-left > p.imprint-ability:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

/* Make IMPRINT label match other ability labels but keep it inline */
.imprint-meta-left > p.imprint-ability > strong:first-of-type {
    color: #1e40af;
    font-size: 0.85em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Effect meta left styling */
.effect-meta-left > p {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    padding: 18px 18px 18px 28px !important;
    margin: 0 0 15px 0 !important;
    border-radius: 10px;
    border: 2px solid #86efac;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    line-height: 1.6 !important;
    transition: all 0.3s ease;
}

.effect-meta-left > p:hover {
    border-color: #22c55e;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.15);
    transform: translateY(-2px);
}

.effect-meta-left > p strong {
    color: #15803d;
    font-weight: 700;
}

/* Effect meta right styling */
.effect-meta-right p {
    margin: 2px !important;
    padding: 8px 12px !important;
    line-height: 1.4;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 6px;
}

.effect-meta-right p + p {
    margin-top: 8px !important;
}

.effect-meta-right strong {
    color: #475569;
    font-size: 0.9em;
}

/* ==============================================
   BONUSES CONTAINER
   ============================================== */

.bonuses-container {
    display: flex;
    gap: 20px;
    margin-bottom: 18px;
}

.bonuses-container p {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important;
    padding: 24px 24px 24px 34px !important;
    margin: 0 !important;
    border-radius: 12px;
    border: 2px solid #475569;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    color: #e2e8f0;
    line-height: 1.5 !important;
    text-align: center;
    flex: 1;
}

.bonuses-container p strong:first-child {
    display: block;
    color: #fbbf24;
    font-size: 1.1em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    text-align: center;
}

.bonuses-container p br + strong {
    color: #94a3b8;
    font-size: 0.95em;
    font-weight: 600;
    display: inline;
    margin-right: 8px;
}

/* ==============================================
   EFFECT NOTES SECTION
   ============================================== */

.effect-notes {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 18px 18px 18px 28px;
    margin: 15px 0;
    border-radius: 10px;
    border: 2px solid #fbbf24;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    line-height: 1.6;
    transition: all 0.3s ease;
}

.effect-notes:hover {
    border-color: #f59e0b;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.15);
    transform: translateY(-2px);
}

.effect-notes strong {
    display: block;
    color: #92400e;
    font-weight: 700;
    margin-bottom: 8px;
}

/* ==============================================
   STATUS EFFECTS STYLING
   ============================================== */

/* Status type colors */
.status-buff {
    color: #10b981;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.status-debuff {
    color: #ef4444;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

.status-disable {
    color: #8b5cf6;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(139, 92, 246, 0.4);
}

/* Status type within stats box */
.effect-stats-container .status-buff {
    color: #34d399;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(52, 211, 153, 0.4);
}

.effect-stats-container .status-debuff {
    color: #f87171;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(248, 113, 113, 0.4);
}

.effect-stats-container .status-disable {
    color: #a78bfa;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(167, 139, 250, 0.4);
}

/* ==============================================
   ARCHIVE PAGES
   ============================================== */

/* Weapons archive */
.weapons-archive {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.weapon-item {
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    background: #fff;
}

.weapon-item h2 {
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 15px;
}

.weapon-item h2 a {
    text-decoration: none;
    color: #333;
}

.weapon-item h2 a:hover {
    color: #0073aa;
}

.weapon-thumbnail {
    margin-bottom: 15px;
    text-align: center;
}

.weapon-thumbnail img {
    max-width: 150px;
    height: auto;
    border-radius: 4px;
}

.weapon-rarity {
    margin: 10px 0;
    color: #666;
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background: #F1F5F9;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
}

.read-more:hover {
    background: #005177;
}

/* Effects archive */
.effects-archive {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.effect-item {
    border: 2px solid #cbd5e1;
    padding: 20px;
    border-radius: 12px;
    background: #fff;
    text-align: center;
    transition: all 0.3s ease;
}

.effect-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
    transform: translateY(-4px);
}

.effect-item h2 {
    font-size: 1.3em;
    margin-top: 0;
    margin-bottom: 12px;
}

.effect-item h2 a {
    text-decoration: none;
    color: #1e293b;
}

.effect-item h2 a:hover {
    color: #3b82f6;
}

.effect-thumbnail {
    margin-bottom: 15px;
    text-align: center;
}

.effect-thumbnail img {
    max-width: 120px;
    height: auto;
    border-radius: 8px;
    background: #1e293b;
    padding: 15px;
}

/* ==============================================
   RESPONSIVE STYLES
   ============================================== */

@media (max-width: 768px) {
    /* Header sections */
    .weapon-header,
    .imprint-header,
    .hero-header,
    .effect-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .weapon-search,
    .imprint-search,
    .hero-search,
    .effect-search {
        width: 100%;
        margin-left: 0;
    }
    
    /* Detail layouts */
    .weapon-details,
    .effect-details {
        flex-direction: column;
    }
    
    /* Featured images */
    .weapon-featured-image,
    .effect-featured-image {
        flex: 0 0 auto;
        max-width: 100%;
    }
    
    .effect-featured-image {
        margin: 0 auto;
    }
    
    /* Info boxes */
    .weapon-info-box,
    .effect-info-box {
        padding: 20px;
    }
    
    /* Meta sections */
    .effect-meta {
        flex-direction: column;
        gap: 15px;
    }
    
    /* Imprint meta images */
    .imprint-meta-left > p:nth-child(2) img,
    .imprint-meta-left > p:nth-child(3) img,
    .imprint-meta-left > p:nth-child(4) img,
    .imprint-meta-left > p:nth-child(5) img,
    .imprint-meta-left > p:nth-child(6) img {
        float: none;
        display: block;
        margin: 0 auto 10px auto;
    }
    
    /* Bonuses container */
    .bonuses-container {
        flex-direction: column;
    }
}