/* =====================================================
   ADVANCED FEATURES CSS - v7.0
   ===================================================== */

/* =====================================================
   NOTIFICATION SYSTEM
   ===================================================== */
.alp-notification-dropdown {
    position: relative;
}

.alp-notification-btn {
    position: relative;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
}

.alp-notif-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    background: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.alp-notification-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 360px;
    max-height: 480px;
    background: var(--alp-white);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    z-index: 1000;
    overflow: hidden;
}

.alp-notification-menu.show {
    display: block;
}

.alp-notif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--alp-border);
}

.alp-notif-header strong {
    font-size: 15px;
}

.alp-mark-all-read {
    font-size: 12px;
    color: var(--alp-primary);
}

.alp-notif-list {
    max-height: 360px;
    overflow-y: auto;
}

.alp-notif-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--alp-bg);
    transition: background 0.2s;
}

.alp-notif-item:hover {
    background: var(--alp-bg-light);
}

.alp-notif-item.unread {
    background: #eff6ff;
}

.alp-notif-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.alp-notif-content {
    flex: 1;
    min-width: 0;
}

.alp-notif-content strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
}

.alp-notif-content p {
    font-size: 12px;
    color: var(--alp-text-light);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.alp-notif-time {
    font-size: 11px;
    color: var(--alp-text-muted);
}

.alp-notif-footer {
    display: block;
    text-align: center;
    padding: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--alp-primary);
    border-top: 1px solid var(--alp-border);
}

.alp-notif-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--alp-text-muted);
}

/* =====================================================
   DOCUMENTS SECTION
   ===================================================== */
.alp-documents-section {
    background: var(--alp-white);
    border-radius: 12px;
    padding: 20px;
}

.alp-tabs-mini {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    background: var(--alp-bg);
    padding: 4px;
    border-radius: 8px;
}

.alp-tab-btn {
    flex: 1;
    padding: 8px 12px;
    background: none;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.alp-tab-btn.active {
    background: var(--alp-white);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.alp-tab-content {
    display: none;
}

.alp-tab-content.active {
    display: block;
}

.alp-documents-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.alp-document-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--alp-bg-light);
    border-radius: 10px;
}

.alp-document-item.expired {
    opacity: 0.6;
}

.alp-doc-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.alp-doc-info {
    flex: 1;
    min-width: 0;
}

.alp-doc-info strong {
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.alp-doc-info span {
    font-size: 12px;
    color: var(--alp-text-muted);
}

.alp-doc-info p {
    font-size: 12px;
    color: var(--alp-text-light);
    margin: 4px 0 0;
}

.alp-doc-status {
    display: inline-block;
    margin-left: 8px;
    font-size: 11px;
    color: var(--alp-success);
}

.alp-badge-expired {
    padding: 4px 10px;
    background: #fef2f2;
    color: #dc2626;
    font-size: 11px;
    border-radius: 12px;
}

/* =====================================================
   LEGAL GUIDES
   ===================================================== */
.alp-guides-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.alp-guides-header {
    text-align: center;
    margin-bottom: 32px;
}

.alp-guides-header h1 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px;
}

.alp-guides-header p {
    color: var(--alp-text-light);
    margin: 0;
}

.alp-guides-featured {
    margin-bottom: 32px;
}

.alp-guides-featured h2 {
    font-size: 18px;
    margin-bottom: 16px;
}

.alp-featured-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.alp-featured-card {
    position: relative;
    display: block;
    background: var(--alp-white);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--alp-shadow-md);
}

.alp-featured-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.alp-featured-content {
    padding: 20px;
}

.alp-staff-pick-badge {
    display: inline-block;
    padding: 4px 10px;
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 12px;
    margin-bottom: 8px;
}

.alp-featured-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.4;
}

.alp-featured-card p {
    font-size: 14px;
    color: var(--alp-text-light);
    margin: 0 0 12px;
}

.alp-featured-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.alp-guides-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.alp-filter-tag {
    padding: 8px 16px;
    background: var(--alp-bg);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--alp-text);
    text-decoration: none;
    transition: all 0.2s;
}

.alp-filter-tag:hover,
.alp-filter-tag.active {
    background: var(--alp-primary);
    color: white;
}

.alp-guides-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.alp-guide-card {
    display: flex;
    flex-direction: column;
    background: var(--alp-white);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--alp-shadow-sm);
    transition: all 0.2s;
}

.alp-guide-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--alp-shadow-md);
}

.alp-guide-thumb {
    height: 160px;
    overflow: hidden;
}

.alp-guide-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.alp-guide-content {
    padding: 16px;
}

.alp-guide-cat {
    display: inline-block;
    padding: 4px 10px;
    background: var(--alp-primary-light);
    color: var(--alp-primary);
    font-size: 11px;
    font-weight: 600;
    border-radius: 10px;
    margin-bottom: 8px;
}

.alp-guide-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 6px;
    line-height: 1.4;
}

.alp-guide-card p {
    font-size: 13px;
    color: var(--alp-text-light);
    margin: 0 0 10px;
}

.alp-guide-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--alp-text-muted);
}

/* Guide Detail */
.alp-guide-detail {
    max-width: 1000px;
    margin: 0 auto;
}

.alp-guide-hero {
    position: relative;
    margin-bottom: 32px;
}

.alp-guide-hero-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 16px;
}

.alp-guide-hero-content {
    padding: 20px 0;
}

.alp-guide-category {
    display: inline-block;
    padding: 6px 14px;
    background: var(--alp-primary);
    color: white;
    font-size: 12px;
    font-weight: 600;
    border-radius: 14px;
    margin-bottom: 12px;
}

.alp-guide-hero h1 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 16px;
}

.alp-guide-author-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.alp-guide-author {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.alp-guide-author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.alp-guide-author strong {
    display: block;
    font-size: 15px;
}

.alp-guide-author span {
    font-size: 13px;
    color: var(--alp-text-muted);
}

.alp-guide-stats {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--alp-text-muted);
}

.alp-guide-body {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.alp-guide-content-main {
    flex: 1;
}

.alp-guide-excerpt {
    font-size: 18px;
    font-weight: 500;
    color: var(--alp-text);
    line-height: 1.6;
    padding: 20px;
    background: var(--alp-bg-light);
    border-radius: 12px;
    margin-bottom: 24px;
}

.alp-guide-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--alp-text);
}

.alp-guide-text h2 {
    font-size: 22px;
    margin: 32px 0 16px;
}

.alp-guide-text h3 {
    font-size: 18px;
    margin: 24px 0 12px;
}

.alp-guide-text p {
    margin-bottom: 16px;
}

.alp-guide-text ul, .alp-guide-text ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.alp-guide-text li {
    margin-bottom: 8px;
}

.alp-guide-actions {
    display: flex;
    gap: 12px;
    margin: 32px 0;
    padding: 20px 0;
    border-top: 1px solid var(--alp-border);
    border-bottom: 1px solid var(--alp-border);
}

.alp-guide-disclaimer {
    padding: 16px;
    background: #fef3c7;
    border-radius: 10px;
    font-size: 13px;
    color: #92400e;
}

.alp-guide-sidebar {
    width: 100%;
}

.alp-author-card-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--alp-bg-light);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
}

.alp-author-card-mini img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.alp-author-card-mini strong {
    display: block;
    font-size: 14px;
}

.alp-author-card-mini span {
    font-size: 12px;
    color: var(--alp-primary);
}

.alp-related-guide {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--alp-border);
    text-decoration: none;
    color: inherit;
}

.alp-related-guide:last-child {
    border-bottom: none;
}

.alp-related-guide strong {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
}

.alp-related-guide p {
    font-size: 12px;
    color: var(--alp-text-muted);
    margin: 0;
}

/* =====================================================
   SCORE BADGE
   ===================================================== */
.alp-score-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 14px;
    background: linear-gradient(135deg, var(--score-color), color-mix(in srgb, var(--score-color) 80%, black));
    border-radius: 10px;
    color: white;
}

.alp-score-badge .alp-score-number {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.alp-score-badge .alp-score-label {
    font-size: 10px;
    opacity: 0.9;
}

.alp-score-badge-lg {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--score-color), color-mix(in srgb, var(--score-color) 80%, black));
    border-radius: 14px;
    color: white;
}

.alp-score-badge-lg .alp-score-number {
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
}

.alp-score-badge-lg .alp-score-label {
    font-size: 13px;
    margin-top: 4px;
}

/* Score Breakdown */
.alp-score-breakdown {
    padding: 20px;
}

.alp-score-header {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 24px;
}

.alp-score-total {
    font-size: 56px;
    font-weight: 700;
    color: var(--alp-primary);
    line-height: 1;
}

.alp-score-header span {
    font-size: 24px;
    color: var(--alp-text-muted);
}

.alp-score-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.alp-score-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.alp-score-item-label {
    width: 120px;
    font-size: 13px;
    color: var(--alp-text-light);
    flex-shrink: 0;
}

.alp-score-bar {
    flex: 1;
    height: 8px;
    background: var(--alp-border);
    border-radius: 4px;
    overflow: hidden;
}

.alp-score-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--alp-primary), #60a5fa);
    border-radius: 4px;
}

.alp-score-item-value {
    width: 50px;
    font-size: 12px;
    font-weight: 600;
    text-align: right;
    color: var(--alp-text);
}

.alp-score-info {
    margin-top: 20px;
    padding: 14px;
    background: var(--alp-bg-light);
    border-radius: 10px;
    font-size: 13px;
    color: var(--alp-text-light);
}

/* =====================================================
   CASE MATCHING
   ===================================================== */
.alp-case-matching {
    max-width: 1000px;
    margin: 0 auto;
}

.alp-case-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.alp-cases-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.alp-case-card {
    position: relative;
    background: var(--alp-white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--alp-shadow-sm);
}

.alp-case-card.urgent {
    border-left: 4px solid #ef4444;
}

.alp-case-card.warning {
    border-left: 4px solid #f59e0b;
}

.alp-case-card.match {
    background: linear-gradient(135deg, #eff6ff, #f0fdf4);
}

.alp-urgency-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 12px;
    background: #fef2f2;
    color: #dc2626;
}

.alp-match-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #dcfce7;
    color: #16a34a;
    font-size: 11px;
    font-weight: 600;
    border-radius: 12px;
    margin-bottom: 8px;
}

.alp-case-card h3 {
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 10px;
    padding-right: 80px;
}

.alp-case-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--alp-text-muted);
}

.alp-case-cat {
    padding: 4px 10px;
    background: var(--alp-primary-light);
    color: var(--alp-primary);
    border-radius: 10px;
    font-weight: 500;
}

.alp-case-desc {
    font-size: 14px;
    color: var(--alp-text-light);
    line-height: 1.6;
    margin: 0 0 14px;
}

.alp-case-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--alp-border);
}

.alp-case-offers {
    font-size: 13px;
    color: var(--alp-text-muted);
}

.alp-case-budget {
    font-size: 13px;
    font-weight: 600;
    color: var(--alp-success);
}

.alp-case-footer .alp-btn {
    margin-left: auto;
}

/* Case Detail */
.alp-case-detail {
    padding: 20px;
}

.alp-back-link {
    display: inline-block;
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--alp-primary);
}

.alp-case-header {
    margin-bottom: 24px;
}

.alp-urgency-badge-lg {
    display: inline-block;
    padding: 6px 14px;
    background: #fef2f2;
    color: #dc2626;
    font-size: 13px;
    font-weight: 600;
    border-radius: 14px;
    margin-bottom: 12px;
}

.alp-case-header h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 12px;
}

.alp-case-meta-lg {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 14px;
    color: var(--alp-text-muted);
}

.alp-case-description {
    background: var(--alp-white);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.alp-case-description h3 {
    font-size: 16px;
    margin: 0 0 12px;
}

.alp-case-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--alp-text);
}

.alp-offer-form-section {
    background: var(--alp-white);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.alp-offer-form-section h3 {
    font-size: 16px;
    margin: 0 0 16px;
}

.alp-my-offer {
    background: #f0fdf4;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.alp-offers-section {
    background: var(--alp-white);
    border-radius: 12px;
    padding: 20px;
}

.alp-offers-section h3 {
    font-size: 16px;
    margin: 0 0 16px;
}

.alp-offers-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.alp-offer-card {
    padding: 16px;
    background: var(--alp-bg-light);
    border-radius: 10px;
}

.alp-offer-card.accepted {
    background: #f0fdf4;
    border: 2px solid #22c55e;
}

.alp-offer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.alp-offer-lawyer {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.alp-offer-lawyer img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.alp-offer-lawyer strong {
    display: block;
    font-size: 14px;
}

.alp-mini-score {
    font-size: 11px;
    color: var(--alp-primary);
    font-weight: 600;
}

.alp-offer-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--alp-success);
}

.alp-offer-message {
    font-size: 14px;
    line-height: 1.6;
    color: var(--alp-text);
    margin: 0 0 10px;
}

.alp-offer-timeline {
    font-size: 13px;
    color: var(--alp-text-muted);
}

.alp-offer-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.alp-accepted-badge {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 12px;
    background: #22c55e;
    color: white;
    font-size: 12px;
    font-weight: 600;
    border-radius: 12px;
}

/* =====================================================
   DASHBOARD
   ===================================================== */
.alp-dashboard {
    padding: 20px;
}

.alp-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.alp-dashboard-header h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

.alp-dashboard-period {
    font-size: 13px;
    color: var(--alp-text-muted);
}

.alp-metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.alp-metric-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    background: var(--alp-white);
    border-radius: 12px;
    box-shadow: var(--alp-shadow-sm);
}

.alp-metric-icon {
    font-size: 28px;
}

.alp-metric-data {
    display: flex;
    flex-direction: column;
}

.alp-metric-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--alp-text);
    line-height: 1;
}

.alp-metric-label {
    font-size: 12px;
    color: var(--alp-text-muted);
    margin-top: 4px;
}

.alp-dashboard-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.alp-dashboard-card {
    background: var(--alp-white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--alp-shadow-sm);
}

.alp-dashboard-card h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 16px;
}

/* Simple Chart */
.alp-simple-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 120px;
    gap: 8px;
}

.alp-chart-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.alp-bar-fill {
    width: 100%;
    background: linear-gradient(180deg, var(--alp-primary), #60a5fa);
    border-radius: 4px 4px 0 0;
    position: relative;
    min-height: 4px;
    transition: height 0.3s ease;
}

.alp-bar-value {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: 600;
    color: var(--alp-text);
}

.alp-bar-label {
    margin-top: 8px;
    font-size: 11px;
    color: var(--alp-text-muted);
}

/* Referrers */
.alp-referrers-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.alp-referrer-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: var(--alp-bg-light);
    border-radius: 8px;
}

.alp-referrer-domain {
    font-size: 13px;
    color: var(--alp-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.alp-referrer-count {
    font-size: 13px;
    font-weight: 600;
    color: var(--alp-primary);
}

/* Dashboard Tips */
.alp-dashboard-tips {
    background: linear-gradient(135deg, #eff6ff, #f0fdf4);
    border-radius: 12px;
    padding: 20px;
}

.alp-dashboard-tips h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 16px;
}

.alp-tips-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.alp-tip-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--alp-white);
    border-radius: 10px;
}

.alp-tip-item span {
    font-size: 24px;
}

.alp-tip-item p {
    font-size: 13px;
    color: var(--alp-text);
    margin: 0;
}

/* =====================================================
   BADGES
   ===================================================== */
.alp-badges-grid-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.alp-badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.alp-badge-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.alp-badge-name {
    font-size: 10px;
    color: var(--alp-text-muted);
    text-align: center;
    max-width: 60px;
}

.alp-link-sm {
    display: block;
    margin-top: 14px;
    font-size: 13px;
    color: var(--alp-primary);
}

/* Profile Badges */
.alp-profile-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.alp-badge-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 14px;
}

.alp-badge-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--alp-bg);
    border-radius: 50%;
    font-size: 11px;
    font-weight: 600;
    color: var(--alp-text-muted);
}

/* All Badges Page */
.alp-badges-page {
    padding: 20px;
}

.alp-badge-category {
    margin-bottom: 32px;
}

.alp-badge-category h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--alp-bg);
}

.alp-badges-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.alp-badge-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    background: var(--alp-white);
    border-radius: 12px;
    box-shadow: var(--alp-shadow-sm);
}

.alp-badge-card.locked {
    opacity: 0.5;
}

.alp-badge-icon-lg {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}

.alp-badge-info {
    flex: 1;
}

.alp-badge-info strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
}

.alp-badge-info p {
    font-size: 13px;
    color: var(--alp-text-light);
    margin: 0 0 6px;
}

.alp-badge-points {
    font-size: 12px;
    font-weight: 600;
    color: var(--alp-primary);
}

.alp-badge-earned {
    font-size: 12px;
    font-weight: 600;
    color: var(--alp-success);
}

/* =====================================================
   RESPONSIVE - TABLET (768px+)
   ===================================================== */
@media (min-width: 768px) {
    .alp-notification-menu {
        width: 400px;
    }
    
    .alp-featured-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .alp-guides-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .alp-guide-hero-img {
        height: 350px;
    }
    
    .alp-guide-author-info {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .alp-guide-body {
        flex-direction: row;
    }
    
    .alp-guide-content-main {
        flex: 1;
    }
    
    .alp-guide-sidebar {
        width: 300px;
    }
    
    .alp-metrics-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .alp-dashboard-row {
        flex-direction: row;
    }
    
    .alp-dashboard-card {
        flex: 1;
    }
    
    .alp-tips-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .alp-badges-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =====================================================
   RESPONSIVE - DESKTOP (1024px+)
   ===================================================== */
@media (min-width: 1024px) {
    .alp-guides-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .alp-badges-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
