/* styles.css */
.header {
    background: linear-gradient(rgba(75, 20, 20, 0.9), rgba(50, 10, 10, 0.9));
    padding: 15px 0;
    border-bottom: 2px solid #CC3300;
    box-shadow: 0 4px 15px rgba(204, 51, 0, 0.3);
}

.guild-logo {
    width: 150px;
}

.guild-name {
    font-size: 1.5rem;
    color: #CCCCCC;
    margin-bottom: 5px;
}

.guild-tagline {
    font-size: 1.2rem;
    color: #CCCCCC;
    font-style: italic;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background: 
        linear-gradient(rgba(45, 0, 0, 0.8), rgba(30, 0, 0, 0.9)),
        url('images/Cover-02.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #E5E5E5;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Logo Section */
.logo-section {
    text-align: center;
    padding: 40px 0 20px 0;
    background: 
        linear-gradient(rgba(30, 0, 0, 0.7), rgba(45, 0, 0, 0.8)),
        url('images/Cover-02.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    border-bottom: 2px solid #CC3300;
}

.guild-logo {
    max-width: 300px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

.guild-name {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    font-weight: 700;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(204, 51, 0, 0.5);
    margin-bottom: 10px;
}

.guild-tagline {
    font-size: 1.2rem;
    color: #CCCCCC;
    font-style: italic;
}

/* Header */
.header {
    background: linear-gradient(rgba(75, 20, 20, 0.9), rgba(50, 10, 10, 0.9));
    padding: 15px 0;
    border-bottom: 2px solid #CC3300;
    box-shadow: 0 4px 15px rgba(204, 51, 0, 0.3);
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.raiderio-link {
    background: linear-gradient(45deg, #CC3300, #FF4444);
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(204, 51, 0, 0.3);
}

.raiderio-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(204, 51, 0, 0.5);
    background: linear-gradient(45deg, #DD4400, #FF5555);
}

/* Progress Banner */
.progress-banner {
    background: linear-gradient(45deg, rgba(60, 15, 15, 0.9), rgba(75, 20, 20, 0.9));
    padding: 30px 0;
    text-align: center;
    border-bottom: 2px solid #CC3300;
    backdrop-filter: blur(5px);
}

.progress-title {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: #FFFFFF;
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.progress-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #CC3300;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: #CCCCCC;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Main Content */
.main-content {
    padding: 60px 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.card {
    background: rgba(50, 10, 10, 0.8);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(204, 51, 0, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

.card h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: #FFFFFF;
    margin-bottom: 20px;
    border-bottom: 2px solid #CC3300;
    padding-bottom: 10px;
}

.card p {
    line-height: 1.6;
    color: #E5E5E5;
    margin-bottom: 15px;
}

/* Recruitment Section */
.recruitment {
    background: linear-gradient(rgba(75, 20, 20, 0.9), rgba(45, 10, 10, 0.9));
    padding: 50px 0;
    border-radius: 20px;
    border: 2px solid rgba(204, 51, 0, 0.4);
    backdrop-filter: blur(5px);
}

.recruitment h2 {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    text-align: center;
    color: #FFFFFF;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.recruitment-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.looking-for {
    background: rgba(204, 51, 0, 0.1);
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #CC3300;
}

.looking-for h3 {
    color: #CC3300;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.class-list {
    list-style: none;
}

.class-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(204, 51, 0, 0.2);
    color: #E5E5E5;
}

.class-list li:last-child {
    border-bottom: none;
}

.high-priority {
    color: #CC3300 !important;
    font-weight: 600;
}

.apply-section h3 {
    color: #CC3300;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.apply-steps {
    list-style: none;
    counter-reset: step-counter;
}

.apply-steps li {
    counter-increment: step-counter;
    padding: 12px 0;
    padding-left: 40px;
    position: relative;
    color: #E5E5E5;
    line-height: 1.5;
}

.apply-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 12px;
    background: #CC3300;
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: rgba(30, 0, 0, 0.9);
    padding: 30px 0;
    text-align: center;
    border-top: 2px solid #CC3300;
    margin-top: 50px;
    backdrop-filter: blur(5px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .guild-name {
        font-size: 2.2rem;
    }

    .guild-logo {
        max-width: 200px;
    }

    .progress-stats {
        gap: 20px;
    }

    .content-grid,
    .recruitment-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .header-content {
        flex-wrap: wrap;
        gap: 15px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.6s ease-out;
}

.card:nth-child(even) {
    animation-delay: 0.2s;
}

.logo-section {
    animation: fadeInUp 0.8s ease-out;
}

a {
    color: #CC3300;
    text-decoration: none;
}

a:hover {
    color: #FF4444;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.admin-header {
    background: rgba(50, 10, 10, 0.9);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(204, 51, 0, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-title {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: #FFFFFF;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.admin-nav {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(45deg, #CC3300, #FF4444);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #DD4400, #FF5555);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(204, 51, 0, 0.5);
}

.btn-secondary {
    background: rgba(108, 117, 125, 0.8);
    color: white;
}

.btn-secondary:hover {
    background: rgba(108, 117, 125, 1);
}

.btn-success {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(45deg, #218838, #1abc9c);
    transform: translateY(-2px);
}

.btn-danger {
    background: #dc3545;
    color: white;
    padding: 5px 10px;
    font-size: 0.8rem;
}

.btn-danger:hover {
    background: #c82333;
}

.card {
    background: rgba(50, 10, 10, 0.9);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(204, 51, 0, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    margin-bottom: 30px;
}

.card-title {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: #FFFFFF;
    margin-bottom: 20px;
    border-bottom: 2px solid #CC3300;
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #CCCCCC;
    font-weight: 600;
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(204, 51, 0, 0.3);
    border-radius: 8px;
    background: rgba(30, 0, 0, 0.5);
    color: #E5E5E5;
    font-size: 1rem;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: #CC3300;
    box-shadow: 0 0 10px rgba(204, 51, 0, 0.3);
}

.entry-item, .question-item {
    background: rgba(30, 0, 0, 0.5);
    border: 1px solid rgba(204, 51, 0, 0.2);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.question-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr 80px 80px 80px 100px;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
}

.question-item h4 {
    color: #CC3300;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.remove-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
}

.remove-btn:hover {
    background: #c82333;
}

.success-message {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid rgba(40, 167, 69, 0.5);
    color: #4caf50;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.tabs {
    display: flex;
    background: rgba(30, 0, 0, 0.8);
    border-radius: 10px 10px 0 0;
    overflow: hidden;
    margin-bottom: 0;
}

.tab-button {
    background: rgba(50, 10, 10, 0.8);
    color: #CCCCCC;
    border: none;
    padding: 15px 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    flex: 1;
}

.tab-button.active {
    background: rgba(204, 51, 0, 0.8);
    color: #FFFFFF;
}

.tab-button:hover {
    background: rgba(204, 51, 0, 0.6);
    color: #FFFFFF;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
}

@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .admin-nav {
        justify-content: center;
    }

    .question-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* Raider Management Styles */
.raider-item {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.raider-grid {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 15px;
    align-items: end;
}

.raider-grid .form-group {
    display: flex;
    flex-direction: column;
}

.raider-grid .form-group label {
    margin-bottom: 5px;
    font-weight: 600;
    color: #495057;
}

.raider-grid .form-group input {
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
}

.raider-grid .form-group input:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

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

#fights-container {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.btn-primary {
    background: #7a9f8a;
    color: #1a1a1a;
}

.btn-primary:hover {
    opacity: 0.8;
}

#perf-raiders-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

#perf-details-modal pre {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    overflow-x: auto;
}

#perf-raiders-summary,
#perf-raider-dates {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.raider-perf-card:hover .pull-detail {
    background: #3a3a3a !important;
}

.death-row {
    display: grid;
    grid-template-columns: 250px 1fr auto;
    gap: 12px;
    align-items: start;
    margin-bottom: 10px;
}

.death-row > button {
    min-width: 40px;
}

.death-row:has(button) {
    grid-template-columns: 250px 1fr 40px;
}

.pull-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #4a5f4f;
}

.wowhead-link {
    color: #dc3545 !important;
    text-decoration: none;
    font-weight: bold;
}

.wowhead-link:hover {
    text-decoration: underline;
}

/* Make sure Wowhead tooltips show above everything */
.wowhead-tooltip {
    z-index: 99999 !important;
}

.menu-link-card {
    background: #2a2a2a;
    border: 2px solid #4a5f4f;
    border-radius: 8px;
    padding: 20px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s;
}

.menu-link-card:hover {
    border-color: #7a9f8a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(122, 159, 138, 0.3);
}

.menu-icon {
    font-size: 32px;
    min-width: 50px;
    text-align: center;
}

.menu-link-card h3 {
    color: #e0e0e0;
    margin: 0 0 5px 0;
    font-size: 16px;
}

.menu-link-card p {
    color: #b0b0b0;
    margin: 0;
    font-size: 13px;
}

.wowhead-link {
    color: #dc3545 !important;
    text-decoration: none;
}

.wowhead-link:hover {
    text-decoration: underline;
}