/* ========================================
   Gameplans View — BJJ Mestre v4.0
   ======================================== */

.gp-container {
    padding: 0 16px 100px;
}

/* Search */
.gp-search-bar {
    margin-bottom: 12px;
}
.gp-search-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: white;
    font-size: 0.92rem;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.gp-search-input:focus {
    border-color: #3b82f6;
}
.gp-search-input::placeholder {
    color: rgba(255,255,255,0.4);
}

/* Filters */
.gp-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.gp-filter-select {
    flex: 1;
    min-width: 100px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: white;
    font-size: 0.82rem;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
}
.gp-filter-select option {
    background: #1e293b;
    color: white;
}

/* Count */
.gp-count {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 10px;
    padding-left: 2px;
}

/* Card List */
.gp-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Card */
.gp-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 16px;
    cursor: pointer;
    transition: transform 0.15s, border-color 0.2s;
}
.gp-card:active {
    transform: scale(0.98);
}
.gp-card:hover {
    border-color: rgba(59,130,246,0.3);
}
.gp-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}
.gp-card-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    flex: 1;
}
.gp-card-badge {
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
    font-weight: 500;
}
.gp-card-badge.free {
    background: rgba(16,185,129,0.15);
    color: #10b981;
}
.gp-card-badge.premium {
    background: rgba(245,158,11,0.15);
    color: #f59e0b;
}
.gp-card-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.55);
    margin-bottom: 8px;
}
.gp-card-desc {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    margin: 0 0 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.gp-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.gp-card-pos {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.5);
}
.gp-card-tags {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}
.gp-tag {
    font-size: 0.68rem;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(59,130,246,0.12);
    color: #60a5fa;
}

/* Empty */
.gp-empty {
    text-align: center;
    padding: 50px 20px;
    color: rgba(255,255,255,0.5);
}
.gp-empty h3 {
    font-size: 1.05rem;
    margin: 0 0 6px;
    color: rgba(255,255,255,0.7);
}
.gp-empty p {
    font-size: 0.85rem;
}

/* ====== DETAIL ====== */
.gp-detail {
    padding: 0 16px 100px;
}
.gp-detail-hero {
    margin-bottom: 20px;
}
.gp-detail-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.3;
}
.gp-detail-author {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 12px;
}
.gp-detail-badge {
    font-size: 0.72rem;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 500;
}
.gp-detail-badge.free { background: rgba(16,185,129,0.15); color: #10b981; }
.gp-detail-badge.premium { background: rgba(245,158,11,0.15); color: #f59e0b; }

.gp-detail-chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.gp-chip {
    font-size: 0.76rem;
    padding: 4px 10px;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
}
.gp-detail-desc {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
    margin: 0 0 8px;
}
.gp-detail-prereq {
    font-size: 0.82rem;
    color: #f59e0b;
    margin: 0;
    padding: 8px 12px;
    background: rgba(245,158,11,0.08);
    border-radius: 8px;
}

/* Plan Steps */
.gp-plan-section {
    margin-bottom: 20px;
}
.gp-plan-step {
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 8px;
}
.gp-plan-step.plan-a {
    background: rgba(59,130,246,0.08);
    border: 1px solid rgba(59,130,246,0.15);
}
.gp-plan-step.plan-b {
    background: rgba(245,158,11,0.08);
    border: 1px solid rgba(245,158,11,0.15);
}
.gp-plan-step.plan-c {
    background: rgba(139,92,246,0.08);
    border: 1px solid rgba(139,92,246,0.15);
}
.gp-step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.gp-step-label {
    font-weight: 600;
    font-size: 0.92rem;
}
.gp-step-icon {
    font-size: 1.2rem;
}
.gp-plan-step p {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.75);
    margin: 0;
    line-height: 1.5;
}
.gp-plan-arrow {
    text-align: center;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.4);
    padding: 6px 0;
}
.gp-plan-reaction {
    text-align: center;
    padding: 12px;
    border-radius: 10px;
    background: rgba(255,255,255,0.03);
    border: 1px dashed rgba(255,255,255,0.1);
    margin-bottom: 8px;
}
.gp-plan-reaction p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    margin: 0;
    font-style: italic;
}

/* Sections */
.gp-section {
    margin-bottom: 18px;
}
.gp-section h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 10px;
}
.gp-drill-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.gp-drill-list li {
    padding: 10px 14px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    margin-bottom: 6px;
    border-left: 3px solid rgba(59,130,246,0.4);
}

/* Actions */
.gp-detail-actions {
    margin-top: 24px;
    padding-bottom: 20px;
}
.gp-add-btn {
    width: 100%;
    font-size: 1rem;
    padding: 16px;
}

/* Success */
.gp-success {
    text-align: center;
    padding: 24px 0;
}
.gp-success h3 {
    font-size: 1.1rem;
    margin: 0 0 6px;
}
.gp-success p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    margin: 0 0 16px;
}
.gp-success-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.btn-primary {
    padding: 14px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
}
.btn-secondary {
    padding: 14px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.05);
    color: white;
    font-weight: 500;
    font-size: 0.88rem;
    cursor: pointer;
}
.btn-tertiary {
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
    background: transparent;
    color: rgba(255,255,255,0.5);
    font-size: 0.82rem;
    cursor: pointer;
}

/* Media */
.gp-media {
    margin-bottom: 18px;
}
.gp-media img {
    max-height: 220px;
    object-fit: cover;
}

/* Icon Button (back) */
.icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

/* Locked Card */
.gp-card.gp-locked {
    border-color: rgba(245,158,11,0.2);
    background: rgba(245,158,11,0.03);
}

/* Premium Lock Section */
.gp-premium-lock {
    background: rgba(245,158,11,0.06);
    border: 2px solid rgba(245,158,11,0.2);
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
    margin: 20px 0 30px;
}

