/* Custom styles for One Piece Straw Hat Pirates Web App */

body {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #1a2a6c);
    background-attachment: fixed;
    color: #333;
    padding-bottom: 2rem;
}

.navbar {
    background: linear-gradient(to right, #8B4513, #A0522D, #8B4513) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    color: #FFD700 !important;
    display: flex;
    align-items: center;
}

.navbar-brand i {
    margin-right: 10px;
}

.character-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    height: 100%;
    border: 3px solid #FFD700;
    border-radius: 10px;
    background: linear-gradient(to bottom, #f9f9f9, #e9ecef);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.character-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    border-color: #FFA500;
}

.image-placeholder {
    background: linear-gradient(45deg, #e9ecef, #dee2e6);
    color: #6c757d;
    border-bottom: 1px solid #dee2e6;
}

.card-img-top {
    height: 300px;
    object-fit: cover;
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
}

.search-container {
    margin-bottom: 2rem;
}

#loading {
    margin: 3rem 0;
    padding: 2rem;
}

.modal-content {
    border: 3px solid #FFD700;
    border-radius: 10px;
    background: linear-gradient(to bottom, #fff, #f8f9fa);
}

.modal-header {
    background: linear-gradient(to right, #8B4513, #A0522D);
    color: white;
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
}

.modal-title {
    color: #FFD700;
}

.modal-body img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    border: 1px solid #ddd;
}

footer {
    margin-top: 3rem;
    padding: 2rem 0;
    background: linear-gradient(to right, #8B4513, #A0522D);
    color: white;
    border-radius: 10px;
}

.pirate-bg {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #1a2a6c);
    color: white;
}

.pirate-card {
    border: 1px solid #ffc107;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.pirate-btn {
    background: linear-gradient(to bottom, #FFD700, #FFA500);
    border-color: #FFA500;
    color: #8B4513;
    font-weight: bold;
}

.pirate-btn:hover {
    background: linear-gradient(to bottom, #FFA500, #FF8C00);
    border-color: #FF8C00;
    color: white;
    transform: scale(1.05);
}

.pirate-accent {
    color: #FFD700;
}

/* Crew-specific colors */
.straw-hat {
    border: 3px solid #FFD700;
    background: rgba(255, 215, 0, 0.05);
}

.heart {
    border-left: 5px solid #00bfff;
}

.firetank {
    border-left: 5px solid #ff4500;
}

.beast {
    border-left: 5px solid #800080;
}

.red-hair {
    border-left: 5px solid #dc143c;
}

.display-4 {
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    font-weight: bold;
    margin-bottom: 1rem;
}

h1, h2, h3, h4, h5, h6 {
    color: #8B4513;
}

.card-title {
    color: #8B4513;
    font-weight: bold;
}

.btn-outline-primary {
    color: #8B4513;
    border-color: #8B4513;
}

.btn-outline-primary:hover {
    background-color: #8B4513;
    color: white;
}

.badge {
    font-size: 1em;
}

.straw-hat-badge {
    background-color: #FFD700;
    color: #8B4513;
}