/* Share Board List Component Styles - Based on board-list.css but adapted for public sharing */

/* Column title sizing to match featured board */
.column-title {
    font-size: 1.75rem !important;
    font-weight: 500 !important;
}

/* Card content sizing to match dashboard - high specificity */
.board-column .card .card-title,
.board-column .card h5.card-title,
.card .card-title,
h5.card-title {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
}

.board-column .card .card-text,
.board-column .card .card-body,
.board-column .card .card-body p,
.board-column .card .card-body div,
.card .card-text,
.card .card-body,
.card .card-body p,
.card .card-body div,
.card-text {
    font-size: 1.1rem !important;
    line-height: 1.5 !important;
}

/* Ensure all text content in cards uses dashboard font size */
.board-column .card,
.card {
    font-size: 1.1rem !important;
}

.board-column .card *,
.card * {
    font-size: inherit !important;
}

/* Card drag handle styling for public sharing */
.card .drag-handle {
    color: var(--bs-light) !important;
    opacity: 1 !important;
}

.card:hover .drag-handle {
    color: var(--bs-light) !important;
}

/* Main board list section - removed translucent box styling for dashboard consistency */
.board-list-section {
    /* Remove padding to match dashboard width - padding creates extra space around content */
    padding: 0;
    margin-bottom: 1rem;
    position: relative;
    min-height: 200px;
    /* Override dashboard height constraints for public sharing */
    height: auto !important;
    max-height: none !important;
    flex: none !important;
    min-width: auto !important;
}

/* Featured board styling (same as dashboard) */
.board-list-section .featured-board {
    background: rgba(var(--bs-primary-rgb), 0.15) !important;
    border: 1px solid rgba(var(--bs-primary-rgb), 0.3) !important;
    color: #ffffff !important;
    font-weight: 600;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
}

.board-list-section .featured-board:hover {
    background: rgba(var(--bs-primary-rgb), 0.2) !important;
    border-color: rgba(var(--bs-primary-rgb), 0.4) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(var(--bs-primary-rgb), 0.2);
}

.board-list-section .featured-board .board-icon {
    color: var(--bs-primary);
    font-size: 1.1rem;
}

/* Share board description section */
.share-board-description {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 1rem;
    margin: 0.5rem 0;
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
}

.share-board-description:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.share-board-description .description-header h6 {
    margin: 0 0 0.75rem 0;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.share-board-description .description-header i {
    color: var(--bs-info);
}

.share-board-description .description-content {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Markdown content styling */
.share-board-description .description-content h1,
.share-board-description .description-content h2,
.share-board-description .description-content h3,
.share-board-description .description-content h4,
.share-board-description .description-content h5,
.share-board-description .description-content h6 {
    color: rgba(255, 255, 255, 0.95);
    margin: 1rem 0 0.5rem 0;
    font-weight: 600;
    background: none !important;
    border: none !important;
    padding: 0 !important;
}

.share-board-description .description-content h1 { font-size: 1.25rem; }
.share-board-description .description-content h2 { font-size: 1.1rem; }
.share-board-description .description-content h3 { font-size: 1rem; }
.share-board-description .description-content h4 { font-size: 0.95rem; }
.share-board-description .description-content h5 { font-size: 0.9rem; }
.share-board-description .description-content h6 { font-size: 0.85rem; }

.share-board-description .description-content p {
    margin: 0.125rem 0;
    color: rgba(255, 255, 255, 0.8);
}

.share-board-description .description-content strong,
.share-board-description .description-content b {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    background: none !important;
    border: none !important;
    padding: 0 !important;
}

.share-board-description .description-content em,
.share-board-description .description-content i {
    color: rgba(255, 255, 255, 0.85);
    font-style: italic;
}

.share-board-description .description-content code:not(pre code) {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    padding: 0.125rem 0.25rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
}

.share-board-description .description-content pre {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 0.75rem;
    margin: 1rem 0;
    overflow-x: auto;
}

.share-board-description .description-content pre code {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.8rem;
}

.share-board-description .description-content ul,
.share-board-description .description-content ol {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.share-board-description .description-content li {
    margin: 0.25rem 0;
}

.share-board-description .description-content blockquote {
    border-left: 3px solid var(--bs-primary);
    padding-left: 1rem;
    margin: 1rem 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.75);
}

.share-board-description .description-content a {
    color: var(--bs-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.share-board-description .description-content a:hover {
    text-decoration: underline;
    filter: brightness(1.1);
}

/* Share creator profile section */
.share-creator-profile {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    margin: 0.5rem 0;
    transition: all 0.2s ease;
}

.share-creator-profile:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.share-creator-profile .profile-header h6 {
    margin: 0 0 0.75rem 0;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.share-creator-profile .profile-header i {
    color: var(--bs-success);
}

/* Creator info section */
.creator-info {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 1rem;
    margin: 0.5rem 0;
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
}

.creator-info:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.creator-info .creator-name {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.creator-info .creator-username {
    margin-bottom: 0.5rem;
}

.creator-info .creator-username a {
    color: var(--bs-primary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.creator-info .creator-username a:hover {
    text-decoration: underline;
    color: var(--bs-primary);
    filter: brightness(1.1);
}

.creator-info .creator-bio {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.4;
    font-style: italic;
}

/* Call-to-action container (same as dashboard) */
.add-column-container {
    min-height: 120px;
    background: rgba(255, 255, 255, 0.02);
    border: 2px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.add-column-container:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.2);
}

/* CTA buttons */
.add-column-container .btn {
    font-weight: 600;
    border-radius: 7px !important;
    transition: all 0.2s ease;
}

.add-column-container .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.add-column-container .text-muted {
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Button icon and text positioning */
.add-column-container .btn > i,
.add-column-container .btn > svg,
.add-column-container .btn > span,
.add-column-container .btn > small {
    position: relative;
    top: -1px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .board-list-section {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .share-board-description,
    .share-creator-profile {
        padding: 0.75rem;
        margin: 0.375rem 0;
    }
    
    .share-board-description .description-content,
    .creator-info .creator-bio {
        font-size: 0.8rem;
    }
    
    .add-column-container {
        min-height: 100px;
        margin-top: 0.75rem;
    }
}

/* Animation for content loading */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.share-board-description,
.share-creator-profile {
    animation: fadeInUp 0.3s ease-out;
}

.share-board-description {
    animation-delay: 0.1s;
}

.share-creator-profile {
    animation-delay: 0.2s;
}
