/* Naijabased.fun/assets/css/dashboard.css - UPDATED WITH RESHARE STYLES */
/* dashboard.css */
:root { 
    --ab-card-bg:#fff; 
    --ab-border:#e6e6e6; 
    --ab-text:#222; 
    --ab-sub:#666; 
    --ab-pill:#0d6efd; 
    --primary: #008753;
    --primary-light: #4aa8ff;
    --accent: #0066cc;
    --bg-light: #f8f9fa;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.12);
    --share-color: #17bf63;
    --share-light: #e8f8f0;
}
.ab-container{max-width:720px;margin:16px auto;padding:0 12px;}

/* Composer */
.ab-composer{
    background:var(--ab-card-bg);
    border:1px solid var(--ab-border);
    border-radius:16px;
    padding:12px;
    margin-bottom:16px;
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s ease;
}

.ab-composer:hover {
    box-shadow: var(--shadow-hover);
}

.ab-composer .ab-title{
    width:100%;
    padding:8px 10px;
    margin:6px 0;
    border:1px solid var(--ab-border);
    border-radius:10px;
    background: var(--bg-light);
    transition: border-color 0.2s ease;
}

.ab-composer .ab-title:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
}

.ab-composer .ab-text{
    width:100%;
    padding:10px;
    border:1px solid var(--ab-border);
    border-radius:10px;
    resize:vertical;
    background: var(--bg-light);
    transition: border-color 0.2s ease;
    min-height: 80px;
}

.ab-composer .ab-text:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
}

.ab-counter{font-size:12px;color:var(--ab-sub);text-align:right;margin-top:4px;}
.ab-toolbar{display:flex;align-items:center;gap:10px;justify-content:space-between;margin-top:8px;flex-wrap:wrap;}
.ab-upload input{display:none;}
.ab-upload span{
    cursor:pointer;
    padding:6px 10px;
    border:1px dashed var(--ab-border);
    border-radius:12px;
    transition: all 0.2s ease;
}

.ab-upload span:hover {
    background: var(--bg-light);
    border-color: var(--primary);
}

.ab-post-btn{
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color:#fff;
    border:none;
    border-radius:999px;
    padding:8px 14px;
    cursor:pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(30, 144, 255, 0.3);
}

.ab-post-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(30, 144, 255, 0.4);
}

.ab-post-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.ab-hint{color:var(--ab-sub);font-size:12px;margin-top:6px}

/* Composer Media Preview */
.ab-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}
.ab-preview-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--ab-border);
}
.ab-preview-item img,
.ab-preview-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ab-preview .ab-del{
    position:absolute;
    top:6px;
    right:6px;
    background:#fff;
    border:none;
    border-radius:999px;
    padding:4px 8px;
    cursor:pointer;
    border:1px solid var(--ab-border);
    transition: all 0.2s ease;
}

.ab-preview .ab-del:hover {
    background: #ff4444;
    color: white;
    border-color: #ff4444;
}

/* Feed */
.ab-feed{display:flex;flex-direction:column;gap:12px;margin-bottom:80px}
.ab-card{
    background:var(--ab-card-bg);
    border:1px solid var(--ab-border);
    border-radius:16px;
    padding:12px; 
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s ease;
}

.ab-card:hover {
    box-shadow: var(--shadow-hover);
}

.ab-card-header{display:flex;gap:10px;align-items:flex-start}
.ab-avatar img{
    width:44px;
    height:44px;
    border-radius:50%;
    object-fit:cover;
    border:2px solid var(--primary);
}
.ab-meta{line-height:1.2}
.ab-name{font-weight:600;color:var(--ab-text);text-decoration:none}
.ab-name:hover {
    color: var(--primary);
}
.ab-verified{color:#0a66c2;font-size:12px;margin-left:6px}
.ab-notv{color:#c20a0a;font-size:12px;margin-left:6px}
.ab-sub{color:var(--ab-sub);font-size:12px;margin-top:2px}
.ab-pill{
    background:rgba(13, 110, 253, 0.1);
    color:var(--ab-pill);
    border:1px solid rgba(13, 110, 253, 0.2);
    border-radius:999px;
    padding:2px 8px;
    font-size:11px;
    margin-left:6px;
    font-weight: 600;
}

.ab-title{margin:6px 0 4px 0; font-size: 1.1rem; font-weight: 600;}
.ab-content{margin:0 0 8px 0;white-space:pre-wrap;word-wrap:break-word; line-height: 1.5;}

/* ============================================= */
/* === RESHARE/REPOST SPECIFIC STYLES === */
/* ============================================= */

/* Shared Post Container */
.shared-post {
    border-left: 3px solid var(--share-color);
    background: var(--share-light);
    position: relative;
}

.shared-post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--share-color);
    border-radius: 3px 0 0 3px;
}

/* Share Commentary */
.share-commentary {
    font-style: italic;
    color: #2d3748;
    margin-bottom: 15px;
    padding: 12px;
    background: rgba(23, 191, 99, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--share-color);
    font-size: 14px;
    line-height: 1.4;
}

/* Original Post Content in Share */
.shared-original-content {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    background: white;
    margin-top: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.shared-original-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}

.shared-original-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
}

.shared-original-meta {
    display: flex;
    align-items: center;
    gap: 6px;
}

.shared-original-name {
    font-weight: 600;
    color: #2d3748;
    font-size: 14px;
}

.shared-original-text {
    color: #4a5568;
    line-height: 1.5;
    font-size: 14px;
}

/* Share Pill/Badge */
.share-pill {
    background: var(--share-color) !important;
    color: white !important;
    border-color: var(--share-color) !important;
}

/* Share Button States */
.ab-btn.share {
    position: relative;
    transition: all 0.3s ease;
}

.ab-btn.share:hover {
    color: var(--share-color);
    background: var(--share-light);
    transform: translateY(-1px);
}

.ab-btn.share.active {
    color: var(--share-color);
    background: var(--share-light);
}

.ab-btn.share .ab-ic {
    transition: transform 0.2s ease;
}

.ab-btn.share:hover .ab-ic {
    transform: scale(1.1);
}

.ab-btn.share.active .ab-ic {
    animation: sharePulse 0.6s ease;
}

@keyframes sharePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Share Count */
.ab-btn.share .ab-count {
    font-weight: 600;
    transition: color 0.2s ease;
}

.ab-btn.share:hover .ab-count {
    color: var(--share-color);
}

/* Share Modal Styles */
.share-modal-content {
    max-width: 500px;
    width: 90%;
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.share-modal-content h3 {
    margin: 0 0 16px 0;
    color: #2d3748;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-modal-content h3::before {
    content: '🔁';
    font-size: 1.2em;
}

.share-modal-body {
    margin-bottom: 20px;
}

.share-modal-body textarea {
    width: 100%;
    min-height: 120px;
    padding: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    resize: vertical;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    transition: border-color 0.2s ease;
    background: #f8fafc;
}

.share-modal-body textarea:focus {
    outline: none;
    border-color: var(--share-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(23, 191, 99, 0.1);
}

.share-char-counter {
    text-align: right;
    font-size: 12px;
    color: #718096;
    margin-top: 8px;
}

.share-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* Share Action Buttons */
.ab-btn.primary {
    background: var(--share-color);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ab-btn.primary:hover {
    background: #14a34a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(23, 191, 99, 0.3);
}

.ab-btn.secondary {
    background: #f7fafc;
    color: #4a5568;
    border: 1px solid #e2e8f0;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ab-btn.secondary:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

/* Reshare Success Animation */
.reshare-success {
    animation: reshareSuccess 0.6s ease;
}

@keyframes reshareSuccess {
    0% { background: var(--share-light); }
    50% { background: rgba(23, 191, 99, 0.2); }
    100% { background: var(--share-light); }
}

/* Feed Media Grid */
.ab-media-grid {
    display: grid;
    gap: 5px;
    margin-top: 10px;
    border-radius: 12px;
    overflow: hidden;
}
.ab-media-grid:has(.ab-media-item:first-child:nth-last-child(1)) { grid-template-columns: 1fr; }
.ab-media-grid:has(.ab-media-item:first-child:nth-last-child(2)) { grid-template-columns: 1fr 1fr; }
.ab-media-grid:has(.ab-media-item:first-child:nth-last-child(3)) { grid-template-columns: 1fr 1fr 1fr; }
@media(min-width:520px){
  .ab-media-grid{grid-template-columns:1fr 1fr}
  .ab-media-grid .ab-media-item:first-child:nth-last-child(3){grid-column:span 2}
}
.ab-media-item {
    position: relative;
    width: 100%;
    height: auto;
    max-height: 250px;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.2s ease;
}
.ab-media-item:hover {
    transform: scale(1.02);
}
.ab-media-item img,
.ab-media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

/* Actions */
.ab-actions{
    display:flex;
    gap:12px;
    border-top:1px solid var(--ab-border);
    margin-top:8px;
    padding-top:8px;
}
.ab-btn{
    display:flex;
    align-items:center;
    gap:6px;
    border:none;
    background:transparent;
    cursor:pointer;
    padding:6px;
    border-radius:10px;
    transition: all 0.2s ease;
    color: var(--ab-sub);
}
.ab-btn:hover{
    background:var(--bg-light);
    color: var(--primary);
    transform: translateY(-1px);
}
.ab-btn.liked {
    color: #e74c3c;
}
.ab-btn.liked .ab-ic{
    transform:scale(1.1)
}
.ab-ic{font-size:16px}
.ab-count{font-size:12px; font-weight: 600;}

/* Comments */
.ab-comments{margin-top:8px;border-top:1px solid var(--ab-border);padding-top:8px}
.ab-comment-item {
    display: flex;
    flex-direction: column;
    padding: 8px 15px;
    border-bottom: 1px solid var(--bg-light);
}
.ab-comment-item:last-child {
    border-bottom: none;
}
.ab-comment-author {
    font-weight: bold;
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
}
.ab-comment-author:hover {
    text-decoration: underline;
}
.ab-comment-content {
    font-size: 14px;
    color: var(--ab-text);
    line-height: 1.4;
    margin-top: 4px;
}
.ab-comment{display:flex;gap:8px;margin:8px 0}
.ab-avatar.small img{width:28px;height:28px; border: 1px solid var(--ab-border);}
.ab-cmeta{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--ab-sub)}
.ab-c-report{
    margin-left:auto;
    background:transparent;
    border:none;
    cursor:pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    color: var(--ab-sub);
}
.ab-c-report:hover {
    background: var(--bg-light);
    color: var(--primary);
}
.ab-ctext{margin-top:2px}

/* Load More Button */
.ab-load{
    display:block;
    margin:8px auto 40px auto;
    padding:8px 16px;
    border:1px solid var(--ab-border);
    background:#fff;
    border-radius:12px;
    cursor:pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: var(--shadow);
}
.ab-load:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}
footer{position:relative;z-index:0}

/* Image Modal */
.ab-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    box-sizing: border-box;
    backdrop-filter: blur(5px);
}
.ab-modal-content {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    box-sizing: border-box;
}
.ab-modal-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Ad Styles */
.ab-ad-card {
    background-color: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 16px;
    margin-top: 12px;
    margin-bottom: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.ab-ad-card a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: inherit;
    text-align: center;
}
.ab-ad-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
}
.ab-ad-content {
    padding: 0 10px;
}
.ab-ad-content h3 {
    font-size: 1.2em;
    font-weight: 600;
    color: #222;
    margin: 0 0 5px 0;
}
.ab-ad-content p {
    font-size: 0.9em;
    color: #666;
    margin: 0;
}
.ab-ad-card .ab-pill {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #0d6efd;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 999px;
    text-transform: uppercase;
}

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

.ab-custom-modal-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    text-align: center;
    color: #333;
    border: 1px solid var(--ab-border);
}

.ab-custom-modal-content p {
    margin: 0 0 1.5rem 0;
    font-size: 1rem;
    line-height: 1.5;
}

.ab-custom-modal-content .error-message {
    color: #e74c3c;
    font-weight: bold;
}

.ab-modal-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 1.5rem;
}

.ab-btn-confirm, .ab-btn-cancel, .ab-modal-close-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.ab-btn-confirm {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    box-shadow: 0 2px 4px rgba(30, 144, 255, 0.3);
}

.ab-btn-confirm:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(30, 144, 255, 0.4);
}

.ab-btn-cancel {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #e0e0e0;
}

.ab-btn-cancel:hover {
    background: #e9ecef;
}

.ab-modal-close-btn {
    background: var(--primary);
    color: #fff;
    width: 100%;
}

.ab-modal-close-btn:hover {
    background: var(--primary-light);
}
/* --- End of Custom Modal Styles --- */


/* ============================================= */
/* === NEW STYLES FOR DYNAMIC FEED CARDS === */
/* ============================================= */

.ab-card-body {
    padding: 8px 0;
}

.ab-card-image-full {
    width: calc(100% + 24px); /* (12px padding * 2) */
    margin: 12px -12px 0 -12px;
    max-height: 350px;
    object-fit: cover;
}

.ab-card-footer {
    padding: 10px 0 0 0;
    border-top: 1px solid var(--ab-border);
    text-align: right;
    margin-top: 10px;
}

.ab-btn-link {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--bg-light);
    color: var(--primary);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    border: 1px solid var(--ab-border);
}

.ab-btn-link:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(30, 144, 255, 0.3);
}

/* Specific Card Type Styles */
.blog-card {
    border-left: 4px solid #008753; /* Blue for blogs */
}

.job-card {
    border-left: 4px solid #28a745; /* Green for jobs */
}
.job-card .ab-card-header {
    align-items: center;
}
.job-icon {
    font-size: 28px;
    margin-right: 10px;
}

.event-card {
    border-left: 4px solid #ffc107; /* Yellow for events */
}

.marketplace-card {
    border-left: 4px solid #6f42c1; /* Purple for marketplace */
}

.advert-card {
    border: 2px dashed #6c757d;
}
.advert-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}
.advert-card .ab-card-header.sponsored {
    font-size: 0.8rem;
    color: #6c757d;
    font-style: italic;
}

/* ============================================= */
/* === OPTIMIZED FOLLOW SUGGESTION CARD === */
/* ============================================= */

/* Updated Follow Suggestions Card */
.follow-suggestion-card {
    border: 2px solid rgba(0, 135, 83, 0.1);
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f9ff 100%);
    position: relative;
    overflow: hidden;
}

.follow-suggestion-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
}

.follow-suggestion-card .ab-card-header {
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 135, 83, 0.1);
}

.follow-suggestion-card .discovery-icon {
    background: var(--primary);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 3px 6px rgba(0, 135, 83, 0.2);
}

/* Optimized Follow Suggestion Grid for Desktop */
.follow-suggestion-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns on desktop */
    gap: 12px;
    padding: 0;
}

.follow-suggestion-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 12px 8px;
    border: 1px solid rgba(0, 135, 83, 0.1);
    border-radius: 10px;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.follow-suggestion-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 135, 83, 0.15);
    border-color: var(--primary);
}

/* Updated avatar styling */
.follow-suggestion-item .ab-avatar {
    width: 52px !important;  /* Smaller for desktop */
    height: 52px !important;
    margin-bottom: 8px;
    border-radius: 50% !important;
    border: 2px solid var(--primary);
    object-fit: cover;
    box-shadow: 0 3px 8px rgba(0, 135, 83, 0.2);
}

.follow-suggestion-item a {
    text-decoration: none;
    color: var(--ab-text);
    width: 100%;
    overflow: hidden;
}

.follow-suggestion-item strong {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--ab-text);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.follow-suggestion-item .ab-sub {
    font-size: 0.75rem;
    color: var(--ab-sub);
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 32px;
    min-height: 32px;
}

/* Optimized follow button */
.follow-btn {
    margin-top: auto;
    padding: 6px 12px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    border-radius: 18px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(30, 144, 255, 0.2);
    width: 100%;
    max-width: 100px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.follow-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(30, 144, 255, 0.3);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);
}

.follow-btn.following {
    background: #f0f0f0;
    color: var(--ab-sub);
    box-shadow: none;
    border: 1px solid #e0e0e0;
}

.follow-btn.following:hover {
    background: #e0e0e0;
    color: #666;
    transform: none;
    box-shadow: none;
}

/* General styles for all discovery cards */
.discovery-icon {
    font-size: 24px;
    margin-right: 10px;
}

.member-count, .item-price {
    font-weight: bold;
    margin-top: 8px;
    color: var(--primary);
}

.ab-card-footer {
    padding-top: 10px;
    border-top: 1px solid var(--ab-border);
    margin-top: 10px;
    text-align: right;
}

.ab-btn-link {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--bg-light);
    color: var(--primary);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
    border: 1px solid var(--ab-border);
}

.ab-btn-link:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(30, 144, 255, 0.3);
}

.ab-preview-item { 
    position: relative; 
}

.remove-preview-btn {
    position: absolute;
    top: 5px; 
    right: 5px;
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px; 
    height: 20px;
    line-height: 20px; 
    text-align: center;
    cursor: pointer;
    font-size: 14px; 
    font-weight: bold;
    z-index: 10;
    transition: all 0.2s ease;
}

.remove-preview-btn:hover {
    background: #ff4444;
    transform: scale(1.1);
}

/* ============================================= */
/* === RESPONSIVE ADJUSTMENTS === */
/* ============================================= */

/* Tablet - 2 columns */
@media (max-width: 1024px) {
    .follow-suggestion-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* Mobile - Optimized grid (2 columns on most mobiles) */
@media (max-width: 768px) {
    .follow-suggestion-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
        gap: 8px;
    }
    
    .follow-suggestion-item {
        padding: 10px 6px;
    }
    
    .follow-suggestion-item .ab-avatar {
        width: 48px !important;
        height: 48px !important;
        border-width: 2px;
    }
    
    .follow-suggestion-item strong {
        font-size: 0.85rem;
    }
    
    .follow-suggestion-item .ab-sub {
        font-size: 0.7rem;
        min-height: 28px;
        max-height: 28px;
    }
    
    .follow-btn {
        padding: 5px 10px;
        font-size: 0.75rem;
        max-width: 90px;
        min-height: 28px;
    }
}

/* Small mobile - Switch to 2 columns but more compact */
@media (max-width: 480px) {
    .follow-suggestion-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .follow-suggestion-item {
        padding: 8px 4px;
    }
    
    .follow-suggestion-item .ab-avatar {
        width: 42px !important;
        height: 42px !important;
        border-width: 1.5px;
    }
    
    .follow-suggestion-item strong {
        font-size: 0.8rem;
    }
    
    .follow-btn {
        padding: 4px 8px;
        font-size: 0.7rem;
        max-width: 80px;
        min-height: 26px;
        border-radius: 16px;
    }
}

/* Extra small mobile - still 2 columns but minimal */
@media (max-width: 360px) {
    .follow-suggestion-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
    }
    
    .follow-suggestion-item {
        padding: 6px 3px;
    }
    
    .follow-suggestion-item .ab-avatar {
        width: 38px !important;
        height: 38px !important;
    }
    
    .follow-suggestion-item strong {
        font-size: 0.75rem;
    }
    
    .follow-btn {
        font-size: 0.65rem;
        max-width: 70px;
    }
}

/* Sponsored Post Styles */
.sponsored-post {
    border-left: 3px solid #667eea;
}

.sponsored-badge {
    background: #667eea;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    margin-left: auto;
}

.sponsored-pill {
    background: #667eea !important;
    color: white !important;
}

.why-this-ad {
    font-size: 0.8rem;
    opacity: 0.7;
}

.why-this-ad:hover {
    opacity: 1;
}

/* See More button - mobile only */
.see-more-btn {
    display: none;
    padding: 12px;
    text-align: center;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    border-top: 1px solid var(--ab-border);
    margin-top: 12px;
    transition: all 0.2s ease;
    border-radius: 0 0 12px 12px;
    background: rgba(0, 135, 83, 0.05);
}

.see-more-btn:hover {
    background: var(--bg-light);
    color: var(--primary-light);
}

/* Show only on mobile */
@media (max-width: 768px) {
    .see-more-btn.mobile-only {
        display: block;
    }
}

/* ============================================= */
/* === GUEST USER STYLES === */
/* ============================================= */

/* Guest-specific modal styling */
.ab-custom-modal-overlay.guest-modal .ab-custom-modal-content {
    border: 2px solid #008753;
    background: linear-gradient(135deg, #f8f9ff 0%, #e7f3ff 100%);
}

.ab-custom-modal-overlay.guest-modal h3 {
    color: #008753;
    margin-bottom: 15px;
}

.ab-custom-modal-overlay.guest-modal .ab-btn-confirm {
    background: linear-gradient(135deg, #008753 0%, #4aa8ff 100%);
    font-weight: 700;
}

/* Guest action buttons */
.ab-btn.guest-action {
    opacity: 0.7;
    cursor: not-allowed;
    position: relative;
}

.ab-btn.guest-action:hover {
    background: transparent;
    transform: none;
}

.ab-btn.guest-action::after {
    content: '🔒';
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 10px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ab-border);
}

/* Guest comment form styling */
.guest-comment-prompt {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    margin: 10px 0;
}

.guest-comment-prompt p {
    margin: 0 0 15px 0;
    color: #6c757d;
    font-weight: 500;
}

/* Guest post card styling */
.ab-card.guest-restricted {
    position: relative;
}

.ab-card.guest-restricted::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 144, 255, 0.05) 0%, rgba(30, 144, 255, 0.02) 100%);
    border-radius: 16px;
    pointer-events: none;
}

/* Guest poll styling */
.poll-option-item.guest-restricted {
    opacity: 0.6;
    cursor: not-allowed;
}

.poll-option-item.guest-restricted:hover {
    background: #f8f9fa;
    transform: none;
}

/* Mobile guest styles */
@media (max-width: 768px) {
    .guest-comment-prompt {
        padding: 15px;
        margin: 8px 0;
    }
    
    .ab-btn.guest-action::after {
        top: -3px;
        right: -3px;
        font-size: 8px;
        width: 14px;
        height: 14px;
    }
}

/* ============================================= */
/* === MENTION DROPDOWN STYLES === */
/* ============================================= */

.mention-dropdown {
    position: absolute;
    background: white;
    border: 1px solid var(--ab-border);
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    margin-top: 5px;
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mention-dropdown-list {
    padding: 8px 0;
}

.mention-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--ab-text);
}

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

.mention-item-selected {
    background: var(--primary);
    color: white;
}

.mention-item-selected:hover {
    background: var(--primary-light);
}

.mention-item-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--ab-border);
    flex-shrink: 0;
}

.mention-item-selected .mention-item-avatar {
    border-color: white;
}

.mention-item-info {
    flex: 1;
    min-width: 0;
}

.mention-item-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.mention-item-verified {
    color: #0a66c2;
    font-size: 12px;
}

.mention-item-selected .mention-item-verified {
    color: rgba(255, 255, 255, 0.9);
}

.mention-item-username {
    font-size: 12px;
    color: var(--ab-sub);
    opacity: 0.8;
}

.mention-item-selected .mention-item-username {
    color: rgba(255, 255, 255, 0.8);
}

.mention-loading {
    padding: 20px;
    text-align: center;
    color: var(--ab-sub);
    font-size: 14px;
}

.mention-no-results {
    padding: 20px;
    text-align: center;
    color: var(--ab-sub);
    font-size: 14px;
    font-style: italic;
}

/* Responsive mention dropdown */
@media (max-width: 768px) {
    .mention-dropdown {
        max-width: 90vw;
        left: 5vw !important;
        right: 5vw !important;
        width: auto !important;
    }
    
    .mention-item {
        padding: 8px 12px;
        gap: 10px;
    }
    
    .mention-item-avatar {
        width: 32px;
        height: 32px;
    }
    
    .mention-item-name {
        font-size: 13px;
    }
    
    .mention-item-username {
        font-size: 11px;
    }
}

/* Mention links in comments */
.mention-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    background: rgba(30, 144, 255, 0.1);
    padding: 2px 6px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.mention-link:hover {
    background: var(--primary);
    color: white;
    text-decoration: none;
}

/* Hashtag links in comments */
.hashtag-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    background: rgba(30, 144, 255, 0.05);
    padding: 2px 6px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.hashtag-link:hover {
    background: rgba(30, 144, 255, 0.1);
    text-decoration: underline;
}

/* Essential Modal Styles */
.ab-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.ab-modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    border: 3px solid #1d9bf0;
}

.ab-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.ab-btn-confirm, .ab-btn-cancel, .ab-modal-close-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.ab-btn-confirm {
    background: #1d9bf0;
    color: white;
}

.ab-btn-cancel {
    background: #6c757d;
    color: white;
}

.ab-modal-close-btn {
    background: #1d9bf0;
    color: white;
}

/* Image Modal Specific */
.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.modal-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: -40px;
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================= */
/* === RESPONSIVE DESIGN ENHANCEMENTS === */
/* ============================================= */

@media (max-width: 768px) {
    .ab-container {
        padding: 0 8px;
        margin: 12px auto;
    }
    
    .ab-composer {
        padding: 10px;
        border-radius: 12px;
    }
    
    .ab-card {
        padding: 10px;
        border-radius: 12px;
    }
    
    .ab-actions {
        gap: 8px;
    }
    
    .ab-btn {
        padding: 4px;
        font-size: 14px;
    }
    
    .share-modal-content {
        padding: 20px;
        margin: 20px;
    }
    
    .share-modal-actions {
        flex-direction: column;
    }
    
    .ab-btn.primary,
    .ab-btn.secondary {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .ab-container {
        padding: 0 6px;
    }
    
    .ab-composer {
        padding: 8px;
    }
    
    .ab-card {
        padding: 8px;
    }
    
    .ab-avatar img {
        width: 36px;
        height: 36px;
    }
    
    .shared-original-content {
        padding: 12px;
    }
    
    .share-commentary {
        padding: 10px;
        font-size: 13px;
    }
}
/* ============================================= */
/* === STICKY FEED TABS (TWITTER STYLE) === */
/* ============================================= */

/* Make feed tabs container sticky */
.feed-tabs-container {
    position: sticky;
    top: 0;
    z-index: 1001;
    background: white;
    border-bottom: 1px solid #e1e8ed;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

/* When tabs are sticky, adjust shadow */
.feed-tabs-container.sticky-active {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-radius: 0;
}

/* Ensure the main content area has proper spacing */
.dashboard-main {
    position: relative;
}

/* Adjust composer position when tabs are sticky */
.feed-tabs-container.sticky-active + .ab-composer {
    margin-top: 10px;
}

/* Ensure wallet dashboard stays below tabs */
.wallet-dashboard-card {
    margin-top: 20px;
}

/* Desktop adjustments */
@media (min-width: 769px) {
    .feed-tabs-container {
        top: 20px; /* Account for any top padding/margins */
    }
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
    .feed-tabs-container {
        top: 0;
        margin: -10px -8px 10px -8px;
        padding: 10px 8px 0 8px;
        background: white;
        border-radius: 0;
    }
    
    .feed-tabs-container.sticky-active {
        padding: 10px 8px;
    }
}

/* Remove the previous sticky composer styles - replace with these */
/* We'll keep the composer normal, not sticky */
.sticky-composer-wrapper {
    /* Remove sticky positioning */
    position: static;
    margin-bottom: 15px;
}

/* Remove all the collapsed composer styles since we don't need them */
.ab-composer.collapsed,
.compose-sticky-btn {
    display: none;
}

/* ============================================= */
/* === STICKY FEED TABS (TWITTER STYLE) === */
/* ============================================= */

/* Make feed tabs container sticky */
.feed-tabs-container {
    position: sticky;
    top: 0;
    z-index: 1001;
    background: white;
    border-bottom: 1px solid #e1e8ed;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

/* When tabs are sticky, add shadow */
.feed-tabs-container.sticky-active {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Ensure the main content area has proper spacing */
.dashboard-main {
    position: relative;
}

/* Adjust feed position when tabs are sticky */
.feed-tabs-container.sticky-active ~ #feed {
    padding-top: 5px;
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
    .feed-tabs-container {
        top: 0;
        margin: -10px -8px 10px -8px;
        padding: 10px 8px 0 8px;
        background: white;
    }
    
    .feed-tabs-container.sticky-active {
        padding: 10px 8px;
    }
    
    .feed-tabs-container.sticky-active ~ #feed {
        padding-top: 10px;
    }
}

/* Desktop adjustments */
@media (min-width: 769px) {
    .feed-tabs-container {
        top: 20px; /* Account for any top padding/margins */
    }
}
/* Ensure wallet doesn't interfere with sticky tabs */
.wallet-dashboard-card {
    z-index: 900;
}

/* Make sure feed tabs have higher z-index when sticky */
.feed-tabs-container.sticky-active {
    z-index: 1001;
}

/* ============================================= */
/* === CLEAN BUSINESS-VIEW STYLE SAVE BUTTON === */
/* ============================================= */

/* Make card header positioned relative for absolute positioning */
.ab-card-header {
    position: relative;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

/* Clean, elegant save button - matches business view style */
.save-post-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #ccc;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.2s ease;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10; /* Changed from 20 to 10 */
    margin: 0;
    font-family: 'Font Awesome 5 Free', 'Font Awesome 6 Free', sans-serif; /* Add Font Awesome font */
}

/* Hover state - matches business view with green accent */
.save-post-btn:hover {
    background: rgba(0, 123, 255, 0.1); /* Match business view hover bg */
    color: #008753; /* Match business view green */
}

/* Saved state - gold/yellow color */
.save-post-btn.saved {
    color: #ffc107;
}

.save-post-btn.saved:hover {
    color: #e0a800;
}

/* Icon transitions */
.save-post-btn i {
    transition: all 0.2s ease;
}

.save-post-btn:hover i {
    transform: scale(1.1);
}

.save-post-btn.saved i {
    transform: scale(1.05);
}

/* Hide/show icons based on saved state */
.save-post-btn:not(.saved) i.fas {
    display: none;
}

.save-post-btn.saved i.far {
    display: none;
}

/* Optional: Subtle animation when saving */
@keyframes subtleSave {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
        color: #c9a026;
    }
    100% {
        transform: scale(1);
    }
}

.save-post-btn.saved {
    animation: subtleSave 0.4s ease;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .save-post-btn {
        top: 6px;
        right: 6px;
        width: 36px; /* Slightly smaller on mobile */
        height: 36px;
        font-size: 1.3rem;
        padding: 0.4rem;
        border-radius: 6px; /* Consistent rounded rectangle */
    }
}

/* Ensure save button stays on top of other elements */
.ab-card {
    overflow: visible !important;
}
/* Ensure only one icon renders at a time */
.save-post-btn i {
    display: block;
    margin: 0;
    padding: 0;
    line-height: 1;
}
/* Comment Interactions CSS */
.ab-comment-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    font-size: 13px;
}

.comment-like-btn, .comment-reply-btn, .show-comment-likes {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 16px;
    transition: all 0.2s ease;
}

.comment-like-btn:hover, .comment-reply-btn:hover, .show-comment-likes:hover {
    background: #f0f0f0;
}

.comment-like-btn.liked {
    color: #e74c3c;
}

.comment-like-btn.liked .comment-like-icon {
    color: #e74c3c;
}

.comment-like-count {
    font-size: 12px;
    font-weight: 500;
    margin-left: 2px;
}

.comment-reply-form {
    margin-top: 12px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 3px solid #3498db;
}

.reply-form-inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.comment-reply-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    min-height: 60px;
}

.comment-reply-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.reply-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reply-char-count {
    font-size: 12px;
    color: #666;
}

.reply-buttons {
    display: flex;
    gap: 8px;
}

.comment-replies {
    margin-top: 12px;
    margin-left: 20px;
    border-left: 2px solid #eee;
    padding-left: 12px;
}

/* Likes Modal */
.likers-list {
    max-height: 400px;
    overflow-y: auto;
    margin: 16px 0;
}

.liker-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.liker-item:last-child {
    border-bottom: none;
}

.liker-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.liker-info {
    flex: 1;
}

.liker-name {
    font-weight: 600;
    color: #333;
    text-decoration: none;
}

.liker-name:hover {
    text-decoration: underline;
}

.liker-username {
    font-size: 12px;
    color: #666;
}

.no-likes {
    text-align: center;
    padding: 40px;
    color: #999;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .ab-comment-actions {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .comment-reply-form {
        padding: 10px;
    }
    
    .reply-form-actions {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }
    
    .reply-buttons {
        justify-content: flex-end;
    }
}
/* ============================================= */
/* === SAVE BUTTON STYLES (IN ACTION BAR) === */
/* ============================================= */

/* Save button in action bar */
.ab-btn.save {
    position: relative;
    background: transparent;
    border: none;
    color: #ccc;
    transition: all 0.2s ease;
}

.ab-btn.save:hover {
    color: #008753;
    background: rgba(0, 135, 83, 0.1);
    transform: translateY(-1px);
}

.ab-btn.save.saved {
    color: #ffc107;
}

.ab-btn.save.saved:hover {
    color: #e0a800;
}

.ab-btn.save .ab-ic i {
    font-size: 16px;
    transition: all 0.2s ease;
}

.ab-btn.save:hover .ab-ic i {
    transform: scale(1.1);
}

.ab-btn.save.saved .ab-ic i {
    transform: scale(1.05);
}

/* Hide/show icons based on saved state */
.ab-btn.save:not(.saved) i.fas {
    display: none;
}

.ab-btn.save.saved i.far {
    display: none;
}

/* Optional: Subtle animation when saving */
@keyframes subtleSave {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
        color: #c9a026;
    }
    100% {
        transform: scale(1);
    }
}

.ab-btn.save.saved {
    animation: subtleSave 0.4s ease;
}

/* Remove old save button styles from header */
.save-post-btn {
    display: none !important;
}
/* ============================================= */
/* === SOCIAL SHARE MODAL - FIXED LAYOUT === */
/* ============================================= */

.social-share-modal {
    max-width: 500px;
    width: 90%;
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow: hidden;
}

.social-share-modal h3 {
    margin: 0 0 20px 0;
    color: #2d3748;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Main content area */
.social-share-content {
    flex: 1;
    overflow-y: auto;
    padding-right: 5px;
    margin-bottom: 20px;
}

/* Comment section - MOVED TO TOP */
.share-commentary {
    margin-bottom: 20px;
    width: 100%;
}

.share-commentary textarea {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    resize: vertical;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.5;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.share-commentary textarea:focus {
    outline: none;
    border-color: #008753;
    box-shadow: 0 0 0 3px rgba(0, 135, 83, 0.1);
}

.char-counter {
    text-align: right;
    font-size: 14px;
    color: #718096;
    margin-top: 8px;
}

/* Social buttons grid - MOVED BELOW TEXTAREA */
.social-share-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 15px;
}

.social-share-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 8px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 6px;
    min-height: 80px;
}

.social-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #008753;
}

.social-share-btn i {
    font-size: 24px;
    margin-bottom: 4px;
}

.social-share-btn span {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

/* Platform colors */
.social-share-btn.facebook { color: #1877f2; border-color: #1877f2; }
.social-share-btn.twitter { color: #1da1f2; border-color: #1da1f2; }
.social-share-btn.linkedin { color: #0077b5; border-color: #0077b5; }
.social-share-btn.whatsapp { color: #25d366; border-color: #25d366; }
.social-share-btn.instagram { color: #e4405f; border-color: #e4405f; }
.social-share-btn.snapchat { color: #fffc00; border-color: #fffc00; background: #000; }
.social-share-btn.copy { color: #6c757d; border-color: #6c757d; }

/* Action buttons - FIXED FOR MOBILE */
.social-share-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
    flex-shrink: 0;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.social-share-actions button {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    min-width: 120px;
    text-align: center;
}

#cancelShare {
    background: #f8f9fa;
    color: #6c757d;
    border-color: #e2e8f0;
}

#cancelShare:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

#shareInternally {
    background: #008753;
    color: white;
    border-color: #008753;
}

#shareInternally:hover {
    background: #006e44;
    border-color: #006e44;
    transform: translateY(-1px);
}

/* Responsive fixes */
@media (max-width: 768px) {
    .social-share-modal {
        width: 95%;
        padding: 20px;
        max-height: 85vh;
    }
    
    .social-share-content {
        padding-right: 0;
    }
    
    .social-share-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .social-share-btn {
        padding: 12px 6px;
        min-height: 70px;
    }
    
    .social-share-btn i {
        font-size: 20px;
    }
    
    .social-share-btn span {
        font-size: 11px;
    }
    
    /* Stack buttons on mobile */
    .social-share-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .social-share-actions button {
        width: 100%;
        min-width: 0;
        padding: 14px;
    }
    
    .share-commentary textarea {
        min-height: 100px;
        font-size: 14px;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .social-share-modal {
        padding: 15px;
    }
    
    .social-share-options {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .social-share-btn {
        min-height: 65px;
        padding: 10px 4px;
    }
    
    .social-share-btn i {
        font-size: 18px;
    }
    
    .social-share-btn span {
        font-size: 10px;
    }
}

/* Ensure everything is visible */
.social-share-modal * {
    box-sizing: border-box;
}

/* Scrollbar styling */
.social-share-content::-webkit-scrollbar {
    width: 6px;
}

.social-share-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.social-share-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.social-share-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}


/* Twitter-style verified badge for mention dropdown */
.twitter-verified-badge.mention-verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
    vertical-align: middle;
}

.twitter-verified-badge.mention-verified-badge .twitter-verified-icon {
    width: 14px;
    height: 14px;
    fill: #1d9bf0;
}

/* Mention dropdown item styling */
.mention-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.mention-item:hover {
    background-color: #f7f9f9;
}

.mention-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

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

.mention-display-name {
    font-weight: 700;
    color: #0f1419;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.mention-username {
    font-size: 13px;
    color: #536471;
    margin-top: 2px;
}
.suggestion-name {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.twitter-verified-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 3px;
}

.twitter-verified-icon {
    width: 14px;
    height: 14px;
}