/* Anime Suggestions Pro - Compact Design */

:root {
    --primary: #e50914;
    --primary-dark: #b20710;
    --bg-dark: #0f0f0f;
    --bg-card: #1a1a1a;
    --text: #ffffff;
    --text-muted: #999;
    --border: #333;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
}

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

.asp-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text);
}

.asp-icon {
    width: 24px;
    height: 24px;
    stroke: var(--primary);
    stroke-width: 2.5;
}

.asp-search-section {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid var(--border);
}

.asp-search-box {
    display: grid;
    grid-template-columns: 1fr 200px 150px auto;
    gap: 10px;
}

.asp-input,
.asp-input-small,
.asp-select {
    background: var(--bg-dark);
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 12px 15px;
    color: var(--text);
    font-size: 14px;
    transition: 0.3s;
}

.asp-input:focus,
.asp-input-small:focus,
.asp-select:focus {
    outline: none;
    border-color: var(--primary);
}

.asp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.asp-btn-search {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.asp-btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229,9,20,0.4);
}

.asp-btn-icon {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
}

.asp-search-results {
    display: grid;
    gap: 15px;
    margin-top: 20px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: 0.4s;
}

.asp-search-results.active {
    max-height: 2000px;
    opacity: 1;
}

.asp-result {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 15px;
    background: var(--bg-dark);
    border-radius: 10px;
    padding: 15px;
    border: 2px solid var(--border);
    transition: 0.3s;
}

.asp-result:hover {
    border-color: var(--primary);
    transform: translateX(4px);
}

.asp-result-img {
    width: 80px;
    height: 110px;
    border-radius: 8px;
    object-fit: cover;
}

.asp-result-info h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.asp-result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.asp-meta-badge {
    background: var(--bg-card);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.asp-result-synopsis {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.asp-btn-suggest {
    background: #4caf50;
    color: white;
    padding: 10px 20px;
    font-size: 13px;
}

.asp-btn-suggest:hover {
    background: #45a049;
    transform: scale(1.05);
}

.asp-suggestions-section {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid var(--border);
}

.asp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.asp-card {
    background: var(--bg-dark);
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid var(--border);
    transition: 0.3s;
}

.asp-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(229,9,20,0.3);
}

.asp-card-img-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 140%;
    overflow: hidden;
    background: var(--bg-card);
}

.asp-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.asp-card:hover .asp-card-img {
    transform: scale(1.1);
}

.asp-card-votes {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.9);
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.asp-card-voted {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #4caf50;
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    z-index: 2;
}

.asp-card-status {
    position: absolute;
    top: 55px;
    right: 10px;
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 10px;
    text-align: center;
    z-index: 2;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.asp-card-status.in_asteptare {
    background: rgba(255, 193, 7, 0.95);
    border: 2px solid #ffc107;
}

.asp-card-status.in_progres {
    background: rgba(33, 150, 243, 0.95);
    border: 2px solid #2196f3;
}

.asp-card-status.finalizat {
    background: rgba(76, 175, 80, 0.95);
    border: 2px solid #4caf50;
}

.asp-card-status.abandonat {
    background: rgba(244, 67, 54, 0.95);
    border: 2px solid #f44336;
}

.asp-card-content {
    padding: 15px;
}

.asp-card-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 38px;
}

.asp-card-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 10px;
}

.asp-card-badge {
    background: var(--bg-card);
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 11px;
    text-align: center;
    border: 1px solid var(--border);
}

.asp-card-badge strong {
    color: var(--primary);
    display: block;
    margin-bottom: 2px;
    font-size: 10px;
}

.asp-card-actions {
    display: flex;
    gap: 8px;
}

.asp-btn-vote {
    flex: 1;
    background: var(--bg-card);
    color: var(--text);
    border: 2px solid var(--primary);
    padding: 10px;
    font-size: 13px;
}

.asp-btn-vote:hover {
    background: var(--primary);
    transform: scale(1.05);
}

.asp-btn-vote.voted {
    background: #4caf50;
    border-color: #4caf50;
    cursor: not-allowed;
    opacity: 0.8;
}

.asp-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    gap: 15px;
}

.asp-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.asp-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-card);
    border: 2px solid;
    border-radius: 10px;
    padding: 15px 20px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
    z-index: 9999;
    min-width: 280px;
    animation: slideIn 0.3s;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.asp-notification.success { border-color: #4caf50; }
.asp-notification.error { border-color: var(--primary); }

.asp-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .asp-container { padding: 15px; }
    .asp-search-box { grid-template-columns: 1fr; }
    .asp-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 15px; }
    .asp-result { grid-template-columns: 60px 1fr; }
    .asp-result-img { width: 60px; height: 84px; }
    .asp-result-action { grid-column: 1 / -1; margin-top: 10px; }
}

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