/**
 * Cleric Spells - Frontend Styles
 *
 * @package Cleric_Spells
 */

/* ==========================================================================
   Spell Archive/Directory
   ========================================================================== */

.cleric-spell-archive {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.cleric-spell-archive .page-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #667eea;
}

.cleric-spell-archive .page-title {
    font-size: 2.5em;
    margin: 0 0 10px 0;
    color: #23282d;
}

.taxonomy-description {
    font-size: 1.1em;
    color: #666;
    margin-top: 10px;
}

/* Filter Controls */
.cleric-spell-filters {
    background: linear-gradient(135deg, #fffbf0 0%, #fff9e6 50%, #ffffff 100%);
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 12px;
    border: 2px solid #d4af37;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.15), inset 0 1px 0 rgba(255, 215, 0, 0.2);
}

.spell-filter-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 5px;
    color: #b8860b;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group input[type="text"],
.filter-group select {
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    width: 100%;
    background: white;
    transition: all 0.3s ease;
}

.search-input-wrapper {
    width: 100%;
}

.filter-group input[type="text"]:focus,
.filter-group select:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1), 0 2px 8px rgba(212, 175, 55, 0.2);
    background: #fffef9;
}

.filter-submit {
    display: flex;
    gap: 10px;
}

.filter-submit .button {
    flex: 1;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 6px;
    font-size: 14px;
    border: none;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
    color: white;
    border: 1px solid rgba(235, 51, 73, 0.4);
    box-shadow: 0 2px 8px rgba(235, 51, 73, 0.3);
}

.filter-submit .button:hover {
    background: linear-gradient(135deg, #f45c43 0%, #eb3349 100%);
    box-shadow: 0 0 15px rgba(244, 92, 67, 0.6), 0 0 25px rgba(235, 51, 73, 0.4);
    transform: translateY(-1px);
}

.filter-submit .button-primary {
    background: linear-gradient(135deg, #a8e063 0%, #56ab2f 100%);
    color: white;
    border: 1px solid rgba(86, 171, 47, 0.4);
    box-shadow: 0 2px 8px rgba(86, 171, 47, 0.3);
}

.filter-submit .button-primary:hover {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
    box-shadow: 0 0 15px rgba(168, 224, 99, 0.6), 0 0 25px rgba(86, 171, 47, 0.4);
    transform: translateY(-1px);
}

/* Results Info */
.cleric-spell-results-info {
    margin-bottom: 20px;
}

.results-count {
    font-size: 1.1em;
    color: #666;
}

/* Spell Grid */
.cleric-spell-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.cleric-spell-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.cleric-spell-card .spell-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.cleric-spell-card:hover {
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
    transform: translateY(-2px);
}

.spell-card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.spell-card-title {
    font-size: 1.5em;
    margin: 0 0 10px 0;
    color: #23282d;
    transition: color 0.3s ease;
}

.cleric-spell-card:hover .spell-card-title {
    color: #d4af37;
}

.spell-card-meta {
    margin-bottom: 15px;
}

.spell-level-badge {
    display: inline-block;
    background: linear-gradient(135deg, #d4af37 0%, #8B6914 100%);
    color: #1a1a1a;
    padding: 5px 14px;
    border-radius: 0px;
    font-size: 0.85em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.6), 0 0 30px rgba(255, 215, 0, 0.3);
    border: 1px solid #FFD700;
    position: relative;
    overflow: hidden;
}

.spell-level-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.5), transparent);
    animation: divine-shimmer 3s infinite;
}

@keyframes divine-shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.spell-card-mechanics {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 4px;
    font-size: 0.9em;
}

.mechanic-item {
    color: #555;
}

.mechanic-item strong {
    color: #333;
}

.spell-card-excerpt {
    flex-grow: 1;
    color: #000;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 14px;
}

.spell-card-footer {
    margin-top: auto;
}

.button-small {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, #f4e5c2 0%, #d4af37 100%);
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.button-small:hover {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 0 40px rgba(212, 175, 55, 0.6), 0 0 60px rgba(255, 215, 0, 0.3);
    transform: translateY(-2px);
    color: #000;
    background: linear-gradient(135deg, #FFD700 0%, #f4e5c2 100%);
}

/* No Results */
.no-spells-found {
    text-align: center;
    padding: 40px;
    background: #f9f9f9;
    border-radius: 8px;
    grid-column: 1 / -1;
}

.no-spells-found p {
    font-size: 1.1em;
    color: #666;
}

/* ==========================================================================
   Single Spell Page
   ========================================================================== */

.cleric-spell-single {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.cleric-spell-entry {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cleric-spell-header {
    margin-bottom: 10px;
    padding-bottom: 2px;
    border-bottom: 0px solid #d4af37;
}

.cleric-spell-title {
    font-size: 2.5em;
    margin: 0 0 15px 0;
    color: #23282d;
}

.cleric-spell-taxonomy-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.spell-level {
    font-size: 1.1em;
    color: #000;
}

.spell-level strong {
    color: #555;
}

/* Spell Mechanics Block */
.cleric-spell-mechanics-block {
    background: linear-gradient(135deg, #fffbf0 0%, #fff9e6 50%, #ffffff 100%);
    border: 0px solid #d4af37;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.15), inset 0 1px 0 rgba(255, 215, 0, 0.3);
}

.cleric-mechanics-heading {
    font-size: 1.5em;
    margin: 0 0 20px 0;
    color: #b8860b;
    text-shadow: 0 1px 2px rgba(212, 175, 55, 0.3);
}

.cleric-mechanics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.cleric-mechanic-item {
    display: flex;
    flex-direction: column;
    padding: 12px;
    background: white;
    border-radius: 0px;
    border-left: 0px solid #d4af37;
    box-shadow: -2px 0 8px rgba(212, 175, 55, 0.15);
}

.cleric-mechanic-label {
    font-size: 0.85em;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.cleric-mechanic-value {
    font-size: 1.1em;
    color: #000;
    font-weight: 600;
}

/* Spell Content Sections */
.cleric-spell-effect,
.cleric-spell-scaling,
.cleric-spell-special {
    margin-bottom: 30px;
}

.cleric-spell-effect h2,
.cleric-spell-scaling h2,
.cleric-spell-special h2 {
    font-size: 1.5em;
    margin: 0 0 15px 0;
    color: #23282d;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.spell-effect-content,
.spell-scaling-content,
.spell-special-content {
    line-height: 1.8;
    color: #444;
}

.spell-effect-content p,
.spell-scaling-content p,
.spell-special-content p {
    margin-bottom: 15px;
}

/* Entry Footer */
.entry-footer {
    margin-top: 3px;
    padding-top: 2px;
    border-top: 0px solid #e0e0e0;
}

/* Spell Navigation */
.spell-navigation {
    margin-top: 30px;
}

.spell-navigation-top {
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.spell-navigation-bottom {
    margin-top: 5px;
    padding-top: 3px;
    border-top: 0px solid #667eea;
}

.spell-nav-prevnext {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
}

.spell-nav-prev {
    text-align: left;
}

.spell-nav-back {
    text-align: center;
}

.spell-nav-next {
    text-align: right;
}

.spell-nav-link {
    display: inline-block;
    padding: 10px 18px;
    background: linear-gradient(135deg, #f4e5c2 0%, #d4af37 100%);
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85em;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.4);
}

.spell-nav-link:hover {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.7), 0 0 35px rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
    color: #000;
    background: linear-gradient(135deg, #FFD700 0%, #f4e5c2 100%);
}

.back-to-spells {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #f4e5c2 0%, #d4af37 100%);
    color: #1a1a1a;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85em;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    border: 1px solid rgba(255, 215, 0, 0.5);
}

.back-to-spells:hover {
    background: linear-gradient(135deg, #FFD700 0%, #f4e5c2 100%);
    color: #000;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.9), 0 0 45px rgba(212, 175, 55, 0.6), 0 0 65px rgba(255, 215, 0, 0.4);
    transform: translateY(-2px);
}

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

@media (max-width: 768px) {
    .cleric-spell-grid {
        grid-template-columns: 1fr;
    }
    
    .spell-filter-form {
        grid-template-columns: 1fr;
    }
    
    .cleric-mechanics-grid {
        grid-template-columns: 1fr;
    }
    
    .cleric-spell-title {
        font-size: 2em;
    }
    
    .spell-nav-prevnext {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .spell-nav-prev,
    .spell-nav-next,
    .spell-nav-back {
        text-align: center;
    }
}
