/* PullList - Beautiful Comic Book Tracker Styles */

:root {
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --dark: #1f2937;
    --light: #f9fafb;
}

/* Series Cards */
.series-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}

.series-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.series-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.series-card h3 {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.series-card a {
    text-decoration: none;
    color: inherit;
}

/* Progress Bar */
.progress-bar {
    background-color: #e5e7eb;
    border-radius: 12px;
    height: 24px;
    overflow: hidden;
    margin: 1rem 0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    background: linear-gradient(90deg, var(--primary), var(--primary-hover));
    height: 100%;
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 0.5rem;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Issue Table */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 1rem 0;
}

table thead {
    background: linear-gradient(135deg, var(--dark), #374151);
    color: white;
}

table thead th {
    padding: 1rem;
    font-weight: 600;
    text-align: left;
    border: none;
}

table tbody tr {
    transition: all 0.2s;
    border-bottom: 1px solid #e5e7eb;
}

table tbody tr:hover {
    background-color: #f3f4f6;
    transform: scale(1.01);
}

table tbody td {
    padding: 1rem;
    vertical-align: middle;
}

/* Next Up Highlighting */
tr.next-up {
    background: linear-gradient(90deg, #fef3c7, #fef3c7);
    border-left: 4px solid var(--warning);
    font-weight: 600;
}

tr.next-up:hover {
    background: linear-gradient(90deg, #fde68a, #fde68a);
}

/* Issue Cover Images */
.issue-cover {
    width: 60px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

.issue-cover:hover {
    transform: scale(1.5);
    z-index: 100;
}

/* Checkboxes */
input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Buttons */
button, [type="submit"] {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: white;
}

button:hover, [type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

button:active {
    transform: translateY(0);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    border-radius: 6px;
    background: var(--primary);
}

.badge-success {
    background: var(--success);
}

.badge-error {
    background: var(--danger);
}

/* Stats Cards */
.stat-card {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #f3f4f6, #ffffff);
    border-radius: 12px;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
    font-size: 3rem;
    margin: 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card p {
    margin: 0.5rem 0 0 0;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
}

/* Calendar */
.calendar-day {
    border: 1px solid #e5e7eb;
    padding: 0.75rem;
    min-height: 120px;
    background: white;
    transition: all 0.2s;
    border-radius: 8px;
}

.calendar-day:hover {
    background: #f9fafb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.calendar-day.today {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border: 2px solid var(--primary);
    font-weight: bold;
}

.calendar-day ul {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0 0;
}

.calendar-day li {
    font-size: 0.875rem;
    margin: 0.5rem 0;
    padding: 0.25rem 0.5rem;
    background: #f3f4f6;
    border-radius: 4px;
    transition: background 0.2s;
}

.calendar-day li:hover {
    background: #e5e7eb;
}

/* Navigation */
nav {
    background: linear-gradient(135deg, var(--dark), #374151);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

nav a {
    transition: all 0.2s;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Loading Indicators */
.htmx-indicator {
    display: none;
}

.htmx-request .htmx-indicator {
    display: inline;
}

.spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Message Alerts */
.success {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border-left: 4px solid var(--success);
    color: #065f46;
}

.error {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    border-left: 4px solid var(--danger);
    color: #991b1b;
}

.warning {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-left: 4px solid var(--warning);
    color: #92400e;
}

/* Search Results Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

/* Series Detail Header */
.series-header {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.series-header img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
    }
    
    .series-header {
        grid-template-columns: 1fr;
    }
    
    table {
        font-size: 0.875rem;
    }
    
    .issue-cover {
        width: 40px;
    }
    
    .calendar-day {
        min-height: 80px;
        font-size: 0.875rem;
    }
    
    .stat-card h3 {
        font-size: 2rem;
    }
}

/* Typography */
h1 {
    background: linear-gradient(135deg, var(--dark), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

/* Forms */
input[type="text"],
input[type="password"],
input[type="number"],
input[type="search"] {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="search"]:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Footer */
footer {
    margin-top: 4rem;
    padding: 2rem 0;
    border-top: 2px solid #e5e7eb;
    color: #6b7280;
}
