@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Creepster&display=swap');

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

body {
    font-family: 'Cinzel', serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 25%, #16213e 50%, #0f0f23 75%, #1a1a2e 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: #e8e3d3;
    overflow-x: hidden;
    position: relative;
}

/* Subtle top accent */
.blood-drip::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, 
        transparent 0%, 
        rgba(220, 20, 60, 0.8) 50%, 
        transparent 100%);
    z-index: 1000;
    animation: subtleGlow 4s ease-in-out infinite;
}

@keyframes subtleGlow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Header Styling */
.main-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    background: linear-gradient(45deg, rgba(26, 26, 46, 0.8), rgba(0, 0, 0, 0.9));
    border-radius: 15px;
    padding: 30px;
    border: 2px solid #2a2a5e;
    box-shadow: 0 0 30px rgba(220, 20, 60, 0.3), inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.logo-symbol {
    font-size: 3em;
    animation: pulseGlow 3s ease-in-out infinite;
    margin-bottom: 10px;
    color: #dc143c;
}

@keyframes pulseGlow {
    0%, 100% { 
        transform: scale(1);
        text-shadow: 0 0 10px rgba(220, 20, 60, 0.5);
    }
    50% { 
        transform: scale(1.05);
        text-shadow: 0 0 20px rgba(220, 20, 60, 0.8);
    }
}

.title-main {
    font-family: 'Cinzel', serif;
    font-size: 3.5em;
    color: #e8e3d3;
    text-shadow: 
        0 0 10px rgba(220, 20, 60, 0.5),
        0 0 20px rgba(220, 20, 60, 0.3),
        2px 2px 4px #000;
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: 3px;
}

.subtitle {
    font-size: 1.2em;
    color: #cc9966;
    font-weight: 600;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.control-btn {
    background: linear-gradient(45deg, #2a2a5e, #1a1a3a);
    color: #e8e3d3;
    border: 2px solid #dc143c;
    padding: 15px 30px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    font-family: 'Cinzel', serif;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.control-btn:hover {
    background: linear-gradient(45deg, #3a3a6e, #dc143c);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 20, 60, 0.5);
    border-color: #ff4466;
}

/* Wheels Container */
.hunting-ground {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.pack-territory {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.3), rgba(0, 0, 0, 0.9));
    border-radius: 20px;
    padding: 25px;
    border: 2px solid #2a2a5e;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(220, 20, 60, 0.1);
    min-width: 350px;
    position: relative;
    overflow: hidden;
}

.pack-territory::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(220, 20, 60, 0.05) 0%, transparent 70%);
    animation: subtlePulse 6s ease-in-out infinite;
    z-index: -1;
}

@keyframes subtlePulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

.pack-header-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(42, 42, 94, 0.3);
}

.pack-name {
    color: #e8e3d3;
    font-size: 1.5em;
    font-weight: 700;
    text-shadow: 2px 2px 4px #000, 0 0 10px rgba(220, 20, 60, 0.3);
    font-family: 'Cinzel', serif;
}

.pack-controls {
    display: flex;
    gap: 10px;
}

.fang-btn {
    background: linear-gradient(45deg, #2a2a5e, #1a1a3a);
    color: #e8e3d3;
    border: 1px solid #dc143c;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.3s;
    font-family: 'Cinzel', serif;
    text-transform: uppercase;
}

.fang-btn:hover {
    background: linear-gradient(45deg, #3a3a6e, #2a2a4e);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(220, 20, 60, 0.4);
}

.delete-pack-btn {
    background: linear-gradient(45deg, #dc143c, #aa1030);
    border-color: #ff4444;
}

.delete-pack-btn:hover {
    background: linear-gradient(45deg, #ff1040, #dc143c);
    box-shadow: 0 4px 10px rgba(220, 20, 60, 0.6);
}

/* Wheel Styling */
.wheel-arena {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.wheel-canvas {
    border: 4px solid #8b0000;
    border-radius: 50%;
    box-shadow: 
        0 0 20px rgba(139, 0, 0, 0.5),
        inset 0 0 20px rgba(0, 0, 0, 0.5);
    margin-bottom: 15px;
    background: radial-gradient(circle, rgba(139, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.8) 100%);
}

.hunt-control {
    margin-top: 15px;
}

.hunt-btn {
    background: linear-gradient(45deg, #dc143c, #aa1030);
    color: #fff;
    border: 2px solid #ff4444;
    padding: 15px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    font-family: 'Cinzel', serif;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hunt-btn:hover {
    background: linear-gradient(45deg, #ff1040, #dc143c);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 20, 60, 0.5);
    animation: buttonPulse 0.3s ease-in-out;
}

@keyframes buttonPulse {
    0%, 100% { transform: translateY(-2px) scale(1); }
    50% { transform: translateY(-2px) scale(1.05); }
}

.hunt-btn:disabled {
    background: linear-gradient(45deg, #333, #555);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    animation: none;
    border-color: #666;
}

/* Result Display */
.hunt-result {
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
    color: #e8e3d3;
    min-height: 40px;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.8), rgba(26, 26, 46, 0.3));
    border-radius: 12px;
    padding: 15px;
    border: 2px solid rgba(42, 42, 94, 0.3);
    font-family: 'Cinzel', serif;
}

.hunt-result.victory {
    background: linear-gradient(45deg, #dc143c, #ff4466);
    color: #fff;
    animation: resultGlow 1s ease-in-out;
    border-color: #dc143c;
    box-shadow: 0 0 20px rgba(220, 20, 60, 0.7);
}

@keyframes resultGlow {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Modal Styling */
.dark-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.main-modal {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    margin: 3% auto;
    padding: 30px;
    border: 2px solid #2a2a5e;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    box-shadow: 
        0 0 30px rgba(220, 20, 60, 0.4),
        inset 0 0 20px rgba(0, 0, 0, 0.8);
    position: relative;
    color: #e8e3d3;
}

.modal-close {
    color: #dc143c;
    float: right;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
    transition: all 0.3s;
}

.modal-close:hover {
    color: #ff4466;
    transform: scale(1.2);
    text-shadow: 0 0 10px rgba(220, 20, 60, 0.8);
}

.modal-title {
    font-family: 'Cinzel', serif;
    font-size: 2em;
    color: #e8e3d3;
    text-align: center;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px #000, 0 0 10px rgba(220, 20, 60, 0.3);
    font-weight: 700;
    letter-spacing: 2px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #cc9966;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dark-input, .dark-textarea {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #2a2a5e;
    border-radius: 8px;
    color: #e8e3d3;
    font-size: 14px;
    font-family: 'Cinzel', serif;
    transition: all 0.3s;
}

.dark-input:focus, .dark-textarea:focus {
    outline: none;
    border-color: #dc143c;
    box-shadow: 0 0 10px rgba(220, 20, 60, 0.3);
    background: rgba(0, 0, 0, 0.9);
}

.dark-textarea {
    resize: vertical;
    min-height: 120px;
}

.entry-count {
    text-align: right;
    font-size: 12px;
    color: #cc9966;
    margin-top: 5px;
    font-style: italic;
}

.modal-buttons {
    text-align: center;
    margin-top: 25px;
}

.action-btn {
    background: linear-gradient(45deg, #dc143c, #aa1030);
    color: #fff;
    border: 2px solid #ff4444;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-family: 'Cinzel', serif;
    transition: all 0.3s;
    text-transform: uppercase;
    font-weight: bold;
}

.action-btn:hover {
    background: linear-gradient(45deg, #ff1040, #dc143c);
    box-shadow: 0 4px 10px rgba(220, 20, 60, 0.4);
}

.cancel-btn {
    background: linear-gradient(45deg, #333, #555);
    color: #ccc;
    border: 2px solid #666;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-family: 'Cinzel', serif;
    margin-left: 10px;
    transition: all 0.3s;
    text-transform: uppercase;
}

.cancel-btn:hover {
    background: linear-gradient(45deg, #555, #777);
    border-color: #888;
}

/* Management Specific */
.management-actions {
    background: rgba(26, 26, 46, 0.2);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid rgba(42, 42, 94, 0.3);
}

.action-group {
    margin-bottom: 15px;
}

.add-wheel-btn {
    background: linear-gradient(45deg, #2a2a5e, #1a1a3a);
    color: #e8e3d3;
    border: 2px solid #dc143c;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    font-family: 'Cinzel', serif;
    margin-top: 10px;
    transition: all 0.3s;
    text-transform: uppercase;
}

.add-wheel-btn:hover {
    background: linear-gradient(45deg, #3a3a6e, #dc143c);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(220, 20, 60, 0.4);
}

.existing-wheels {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(42, 42, 94, 0.3);
}

.existing-wheels h4 {
    color: #e8e3d3;
    margin-bottom: 15px;
    font-size: 16px;
    font-family: 'Cinzel', serif;
}

.pack-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: rgba(26, 26, 46, 0.2);
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid rgba(42, 42, 94, 0.2);
}

.pack-item-name {
    font-weight: bold;
    color: #e8e3d3;
}

.remove-pack-btn {
    background: linear-gradient(45deg, #dc143c, #aa1030);
    color: #fff;
    border: 1px solid #ff4444;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
    font-family: 'Cinzel', serif;
    transition: all 0.3s;
}

.remove-pack-btn:hover {
    background: linear-gradient(45deg, #ff1040, #dc143c);
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hunting-ground {
        flex-direction: column;
        align-items: center;
    }
    
    .pack-territory {
        min-width: 300px;
        width: 100%;
    }
    
    .wheel-canvas {
        width: 250px;
        height: 250px;
    }
    
    .title-howl {
        font-size: 2.5em;
    }
    
    .wolf-modal {
        width: 95%;
        margin: 10% auto;
    }
}