/* =============================================
   GUILD PAGE STYLES
   Black Talon / Medieval RPG Theme

   All styles for the guild view page:
   - Guild header section (image + description)
   - Guild members table with hover effects
   - Status badges (online/offline)
   - Guild war styles

   Extracted from newStyle.css lines 2555-2739
   and style.css lines 382-393.
   Uses design tokens from base/variables.css.

   Expected HTML:
   <div id="guildTitleDiv">
     <div id="guildImageDiv"><img></div>
     <div id="guildDescription"><p>...</p></div>
   </div>
   <table id="guildViewTable">...</table>
   ============================================= */


/* -----------------------------------------
   GUILD VIEW TABLE
   ----------------------------------------- */

#guildViewTable {
    border-collapse: separate;
    border-spacing: 0 6px;
    width: 100%;
}

/* Table Header Row */
#guildViewTable tr.yellow th {
    background: linear-gradient(135deg, rgba(139, 69, 19, 0.9) 0%, rgba(101, 67, 33, 0.95) 100%);
    color: var(--color-gold-light);
    padding: var(--spacing-base) 18px;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1.5px;
    font-weight: 600;
    border: none;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    position: relative;
}

#guildViewTable tr.yellow th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.5), transparent);
}

#guildViewTable tr.yellow th:first-child {
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

#guildViewTable tr.yellow th:last-child {
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}


/* -----------------------------------------
   MEMBER ROWS
   ----------------------------------------- */

#guildViewTable tr:not(.yellow) {
    transition: all var(--transition-base);
}

#guildViewTable tr:not(.yellow) td {
    background: linear-gradient(180deg, rgba(60, 25, 25, 0.85) 0%, rgba(40, 15, 15, 0.9) 100%);
    padding: var(--spacing-base) 18px;
    border-top: 1px solid rgba(255, 215, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.4);
    color: #ddd;
    font-size: var(--font-size-base);
    transition: all var(--transition-base);
}

#guildViewTable tr:not(.yellow) td:first-child {
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    border-left: 3px solid rgba(255, 215, 0, 0.3);
    color: var(--color-gold-muted);
    font-weight: 600;
    font-size: 13px;
    text-transform: capitalize;
}

#guildViewTable tr:not(.yellow) td:last-child {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-weight: 600;
}

#guildViewTable tr:not(.yellow):hover td {
    background: linear-gradient(180deg, rgba(80, 35, 35, 0.95) 0%, rgba(55, 22, 22, 0.98) 100%);
    border-top-color: rgba(255, 215, 0, 0.2);
}

#guildViewTable tr:not(.yellow):hover td:first-child {
    border-left-color: var(--color-gold-light);
}


/* -----------------------------------------
   MEMBER NAME LINKS
   ----------------------------------------- */

#guildViewTable tr td a {
    color: var(--color-text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-base);
    position: relative;
}

#guildViewTable tr td a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-gold-light);
    transition: width var(--transition-base);
}

#guildViewTable tr td a:hover {
    color: var(--color-gold-light);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

#guildViewTable tr td a:hover::after {
    width: 100%;
}


/* -----------------------------------------
   COLUMN-SPECIFIC STYLES
   ----------------------------------------- */

/* Level column with proficiency */
#guildViewTable tr td:nth-child(3) {
    font-weight: 600;
    color: var(--color-text-primary);
}

#guildViewTable tr td:nth-child(3) span {
    color: #68bf2e !important;
    text-shadow: 0 0 8px rgba(104, 191, 46, 0.4);
}

/* Vocation column */
#guildViewTable tr td:nth-child(4) {
    color: #bbb;
}


/* -----------------------------------------
   STATUS BADGES (Online / Offline)
   ----------------------------------------- */

#guildViewTable tr td b[style*="color: #28fc03"],
#guildViewTable tr td b[style*="color:#28fc03"] {
    background: linear-gradient(135deg, rgba(40, 252, 3, 0.2) 0%, rgba(40, 252, 3, 0.1) 100%) !important;
    padding: 5px 12px !important;
    border-radius: var(--radius-pill) !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    border: 1px solid rgba(40, 252, 3, 0.3) !important;
    box-shadow: 0 0 15px rgba(40, 252, 3, 0.2) !important;
    display: inline-block !important;
}

#guildViewTable tr td b[style*="color: #ff8282"],
#guildViewTable tr td b[style*="color:#ff8282"] {
    background: linear-gradient(135deg, rgba(255, 130, 130, 0.15) 0%, rgba(255, 130, 130, 0.08) 100%) !important;
    padding: 5px 12px !important;
    border-radius: var(--radius-pill) !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    border: 1px solid rgba(255, 130, 130, 0.25) !important;
    display: inline-block !important;
}


/* -----------------------------------------
   GUILD HEADER SECTION
   ----------------------------------------- */

#guildTitleDiv {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    background: linear-gradient(145deg, rgba(60, 25, 25, 0.6) 0%, rgba(40, 15, 15, 0.7) 100%);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 215, 0, 0.1);
}

#guildImageDiv img {
    border-radius: var(--radius-lg);
    border: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
}

#guildImageDiv img:hover {
    border-color: var(--color-gold-light);
    transform: scale(1.05);
}

#guildDescription {
    flex: 1;
}

#guildDescription p {
    color: var(--color-text-secondary);
    font-size: var(--font-size-base);
    line-height: 1.6;
    margin: 0;
    font-style: italic;
}


/* -----------------------------------------
   GUILD WAR STYLES
   (Extracted from style.css)
   ----------------------------------------- */

ul.war_list li {
    font-size: 18px;
}
