/* Offer Cards & Tier Badge Styles */

/* Tier Legend */
.tier-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
}

.tier-legend .tier {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: #475569;
}

/* Tier Badges */
.tier-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    min-width: 60px;
}

.tier-badge.tier-a, .tier-badge.tier-A {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
}

.tier-badge.tier-b, .tier-badge.tier-B {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    color: white;
}

.tier-badge.tier-c, .tier-badge.tier-C {
    background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%);
    color: white;
}

.tier-badge.tier-tbd, .tier-badge.tier-TBD {
    background: linear-gradient(135deg, #94a3b8 0%, #cbd5e1 100%);
    color: #475569;
}

/* Category Badges */
.category-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.category-badge.core {
    background: #dbeafe;
    color: #1e40af;
}

.category-badge.new-idea {
    background: #fef3c7;
    color: #92400e;
}

/* Offer Grid */
.offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* Offer Card */
.offer-card {
    background: white;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.offer-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

/* Tier-based left border */
.offer-card[data-tier="A"] {
    border-left: 4px solid #10b981;
}

.offer-card[data-tier="B"] {
    border-left: 4px solid #f59e0b;
}

.offer-card[data-tier="C"] {
    border-left: 4px solid #9ca3af;
}

.offer-card[data-tier="TBD"] {
    border-left: 4px solid #cbd5e1;
}

/* Card Header */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Offer Name */
.offer-name {
    color: #1e3a8a;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Offer Description */
.offer-description {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

/* Card Sections */
.card-section {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 4px;
}

.card-section h4 {
    color: #334155;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.card-section p {
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.4;
}

.card-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card-section ul li {
    color: #475569;
    font-size: 0.9rem;
    padding-left: 1rem;
    position: relative;
    margin-bottom: 0.25rem;
}

.card-section ul li::before {
    content: ">";
    position: absolute;
    left: 0;
    color: #3b82f6;
    font-weight: bold;
}

/* Card Footer */
.card-footer {
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem;
    margin-top: auto;
}

/* Ownership */
.ownership {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0.75rem;
}

.ownership span {
    display: flex;
    gap: 0.25rem;
}

.ownership .label {
    font-weight: 500;
    color: #475569;
}

/* Session Links */
.session-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.session-tag {
    background: #e0f2fe;
    color: #0369a1;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

/* Industry Tags */
.industry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.industry-tag {
    background: #f1f5f9;
    color: #64748b;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    font-size: 0.7rem;
}

/* Lifecycle Badge */
.lifecycle-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    background: #f1f5f9;
    color: #475569;
}

/* Revenue Potential */
.revenue-potential {
    font-size: 0.9rem;
    color: #059669;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Card Stats Row */
.card-stats-row {
    display: flex;
    gap: 1.5rem;
    padding: 0.75rem;
    background: #f0f9ff;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.stat-item {
    text-align: center;
}

.stat-item .stat-value {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e3a8a;
}

.stat-item .stat-label {
    font-size: 0.75rem;
    color: #64748b;
}

.stat-item.has-questions .stat-value {
    color: #dc2626;
}

/* Questions List Styling */
.questions-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.questions-list li {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.questions-list li::before {
    content: "?";
    position: absolute;
    left: 0;
    color: #dc2626;
    font-weight: bold;
}

.questions-list .question-text {
    font-size: 0.85rem;
    color: #475569;
}

.questions-list .question-session {
    font-size: 0.7rem;
    color: #94a3b8;
    font-style: italic;
}

.no-questions {
    font-size: 0.85rem;
    color: #10b981;
    font-style: italic;
}

/* Owner Row Styling */
.owner-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    align-items: baseline;
}

.owner-row .label {
    font-weight: 500;
    color: #475569;
    font-size: 0.8rem;
}

.owner-names {
    color: #1e3a8a;
    font-weight: 500;
}

.lead-names {
    color: #64748b;
    font-size: 0.85rem;
}

.owner-row.leads {
    margin-top: 0.25rem;
}

/* View Brief Button */
.view-brief-btn {
    display: inline-block;
    background: #3b82f6;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.view-brief-btn:hover {
    background: #2563eb;
}

.view-brief-btn.disabled {
    background: #cbd5e1;
    cursor: not-allowed;
}

/* Materials Status */
.materials-status {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.material-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
}

.material-indicator.complete {
    background: #d1fae5;
    color: #065f46;
}

.material-indicator.draft {
    background: #fef3c7;
    color: #92400e;
}

.material-indicator.not-started {
    background: #f1f5f9;
    color: #64748b;
}

/* Responsive */
@media (max-width: 768px) {
    .offer-grid {
        grid-template-columns: 1fr;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .tier-legend {
        flex-direction: column;
        gap: 0.75rem;
    }
}
