@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

/* Poes Pas - Driver's License Style Cards with Soft Blue Theme */
.cat-card {
    border: 2px solid #b8d4e8;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    display: flex;
    flex-direction: row;
    min-height: 180px;
}

/* Rarity-specific backgrounds and borders */
.cat-card.rarity-common {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-color: #81c784;
}

.cat-card.rarity-uncommon {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-color: #64b5f6;
}

.cat-card.rarity-rare {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    border-color: #ba68c8;
}

.cat-card.rarity-legendary {
    background:
    radial-gradient(circle, rgba(100,149,237,0.15) 1.5px, transparent 1.5px),
    linear-gradient(135deg, #fff9c4 0%, #fff59d 100%);
    background-size: 15px 15px;
    border-color: #ffd54f;
}

.cat-card.rarity-mythical {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border-color: #ef5350;
}

.cat-card.clickable-card {
    cursor: pointer;
    user-select: none;
}

.cat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
}

.cat-card:hover {
    box-shadow: 0 6px 20px rgba(100, 149, 237, 0.25);
    transform: translateY(-2px);
}

.cat-card.rarity-common:hover {
    box-shadow: 0 6px 20px rgba(129, 199, 132, 0.3);
    border-color: #66bb6a;
}

.cat-card.rarity-uncommon:hover {
    box-shadow: 0 6px 20px rgba(100, 181, 246, 0.3);
    border-color: #42a5f5;
}

.cat-card.rarity-rare:hover {
    box-shadow: 0 6px 20px rgba(186, 104, 200, 0.3);
    border-color: #ab47bc;
}

.cat-card.rarity-legendary:hover {
    box-shadow: 0 6px 20px rgba(255, 213, 79, 0.4);
    border-color: #ffca28;
}

.cat-card.rarity-mythical:hover {
    box-shadow: 0 6px 20px rgba(239, 83, 80, 0.3);
    border-color: #e53935;
}

.cat-card.clickable-card:active {
    transform: translateY(0px);
    box-shadow: 0 2px 8px rgba(100, 149, 237, 0.2);
}

.cat-card-photo-container {
    flex-shrink: 0;
    width: 140px;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.cat-card-image {
    width: 100%;
    height: auto;
    aspect-ratio: 7 / 9;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #90caf9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cat-card-body {
    flex: 1;
    padding: 1.5rem 1.5rem 1.5rem 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.cat-card-header {
    margin-bottom: 0.25rem;
}

.cat-card-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #5c7a96;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.cat-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #1e3a5f;
    line-height: 1.2;
}

.cat-card-location {
    font-size: 0.95rem;
    color: #455a64;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cat-card-location i {
    color: #42a5f5;
}

.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .cat-grid {
        grid-template-columns: 1fr;
    }
    
    .cat-card {
        min-height: 160px;
    }
    
    .cat-card-photo-container {
        width: 110px;
        padding: 0.75rem;
    }
    
    .cat-card-title {
        font-size: 1.25rem;
    }
}

/* Stat Bar Rating Styles */
.stat-bar-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-bar-container {
    display: flex;
    gap: 0.25rem;
    flex: 1;
}

.stat-bar-segment {
    flex: 1;
    height: 24px;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f5f5f5;
}

.stat-bar-segment:hover {
    transform: scale(1.05);
    border-color: #999;
}

.stat-bar-segment.active.pickability {
    background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%);
    border-color: #7b1fa2;
}

.stat-bar-segment.active.pettability {
    background: linear-gradient(135deg, #26a69a 0%, #00897b 100%);
    border-color: #00897b;
}

.stat-bar-segment.active.snackability {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    border-color: #f57c00;
}

.cat-card-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.cat-card-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cat-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cat-stat-label {
    font-size: 0.75rem;
    color: #5c7a96;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 95px;
    flex-shrink: 0;
}

.cat-stat-bars {
    display: flex;
    gap: 0.15rem;
    width: 150px;
    flex-shrink: 0;
}

.cat-stat-bar {
    flex: 1;
    height: 12px;
    border-radius: 3px;
    background: #e0e0e0;
}

.cat-stat-bar.active.pickability {
    background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%);
}

.cat-stat-bar.active.pettability {
    background: linear-gradient(135deg, #26a69a 0%, #00897b 100%);
}

.cat-stat-bar.active.snackability {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
}

/* Photo Gallery Styles */
.photo-gallery-section {
    margin-top: 2rem;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.photo-thumbnail {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.photo-thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.photo-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 0.5rem;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.photo-date, .photo-location {
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

@media (max-width: 768px) {
    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.75rem;
    }
}

/* Rarity Marker Styles for All Cats Map */
.rarity-marker-common {
    background-color: #81c784;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.rarity-marker-uncommon {
    background-color: #64b5f6;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.rarity-marker-rare {
    background-color: #ba68c8;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.rarity-marker-legendary {
    background-color: #ffd54f;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.rarity-marker-mythical {
    background-color: #ef5350;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
