/* /public/css/go.css */

body {
    background-color: #0f172a;
    margin: 0;
    padding-top: 40px;
    min-height: 100vh;
}

.go-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    padding: 10px 0;
}

.header-bar h1 {
    font-size: 2.8rem;
    font-weight: 300;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #ffffff, #90caf9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-panel {
    background: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.add-item-panel {
    padding: 20px;
    margin-bottom: 30px;
}

.add-item-form {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.add-item-form .game-input {
    flex: 1;
    min-width: 200px;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.add-item-form .game-input:focus {
    outline: none;
    border-color: #64b5f6;
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 2px rgba(100, 181, 246, 0.2);
}

.add-item-form .game-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-blue {
    background: linear-gradient(135deg, #64b5f6, #1976d2);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.3);
}

.btn-blue:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(25, 118, 210, 0.4);
}

.section-title {
    color: #9ca3af;
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0 0 15px 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.go-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    margin-bottom: 12px;
    animation: slideIn 0.3s ease-out;
    transition: transform 0.2s ease, background 0.2s ease;
}

.go-item:hover {
    transform: translateX(5px);
    background: rgba(40, 40, 40, 0.8);
}

.item-details {
    flex: 1;
    overflow: hidden;
}

.link-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.item-link {
    text-decoration: none;
    color: #64b5f6;
    font-size: 1.3rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.item-link:hover {
    color: #90caf9;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.visit-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.item-meta {
    font-size: 0.95rem;
    color: #9ca3af;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.item-meta i {
    opacity: 0.7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.description-text {
    color: #cbd5e1;
    font-size: 0.9rem;
}

.item-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-left: 20px;
}

.item-actions .game-btn {
    padding: 10px;
    border-radius: 8px;
    border: none;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-actions .game-btn:hover {
    transform: scale(1.1);
}

.edit-btn {
    color: #64b5f6;
    background: rgba(100, 181, 246, 0.1);
}

.delete-btn {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.1);
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: #9ca3af;
    background: rgba(30, 30, 30, 0.4);
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
}

.empty-state p {
    font-size: 1.2rem;
    margin: 0 0 10px 0;
}

.empty-state .empty-hint {
    font-size: 1rem;
    opacity: 0.6;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #1e1e1e;
    padding: 30px;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.modal-content h3 {
    margin-top: 0;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 500;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.modal-actions {
    display: flex;
    gap: 10px;
}

.cancel-btn {
    background: #4b5563;
    color: white;
}

@media (max-width: 768px) {
    .go-container {
        padding: 15px;
    }
    
    .header-bar h1 {
        font-size: 2.2rem;
    }
    
    .go-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .item-actions {
        margin-left: 0;
        width: 100%;
        justify-content: flex-end;
    }
    
    .add-item-form {
        flex-direction: column;
    }
    
    .add-item-form .game-btn {
        width: 100%;
    }
}