/*
Theme Name: c2p-child
Template: picostrap5-master
Version: 1.0
Description: Child theme for picostrap5
*/



/* BuddyPress Messages Styling - Theme Integration */
.bp-messages {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
    overflow: hidden;
}

.bp-navs {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 1px solid #e9ecef;
    margin: 0;
    padding: 0;
}

.bp-navs .bp-navs-tabs {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    background: transparent;
}

.bp-navs .bp-navs-tabs li {
    flex: 1;
    margin: 0;
}

.bp-navs .bp-navs-tabs a {
    display: block;
    padding: 1rem 1.5rem;
    text-align: center;
    text-decoration: none;
    color: #6c757d;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    background: transparent;
}

.bp-navs .bp-navs-tabs a:hover {
    color: #007bff;
    background: rgba(0, 123, 255, 0.05);
    border-bottom-color: rgba(0, 123, 255, 0.3);
}

.bp-navs .bp-navs-tabs a.current {
    color: #007bff;
    background: rgba(0, 123, 255, 0.1);
    border-bottom-color: #007bff;
    font-weight: 600;
}

.bp-navs .bp-navs-tabs a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.bp-navs .bp-navs-tabs a.current::before {
    transform: scaleX(1);
}

.bp-messages-content {
    padding: 2rem;
    background: #fff;
}

.bp-messages-thread-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bp-messages-thread-list li {
    border-bottom: 1px solid #f1f3f4;
    transition: all 0.3s ease;
    background: #fff;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.bp-messages-thread-list li:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}

.bp-messages-thread-list li:last-child {
    border-bottom: none;
}

.bp-messages-thread-list .thread-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease;
}

.bp-messages-thread-list li:hover .thread-avatar {
    border-color: #007bff;
}

.bp-messages-thread-list .thread-content {
    flex: 1;
}

.bp-messages-thread-list .thread-title {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.bp-messages-thread-list .thread-excerpt {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.bp-messages-thread-list .thread-meta {
    font-size: 0.8rem;
    color: #adb5bd;
}

.bp-messages-thread-list .thread-unread {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: auto;
}

.bp-messages-thread-view {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.bp-messages-thread-view .thread-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.bp-messages-thread-view .thread-header h3 {
    margin: 0;
    color: #495057;
    font-weight: 600;
}

.bp-messages-thread-view .thread-participants {
    color: #6c757d;
    font-size: 0.9rem;
}

.bp-messages-thread-view .message {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f1f3f4;
    transition: background-color 0.3s ease;
}

.bp-messages-thread-view .message:hover {
    background: #f8f9fa;
}

.bp-messages-thread-view .message.sent {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border-left: 4px solid #007bff;
}

.bp-messages-thread-view .message.received {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-left: 4px solid #28a745;
}

.bp-messages-thread-view .message-content {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.bp-messages-thread-view .message-meta {
    font-size: 0.8rem;
    color: #adb5bd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bp-messages-thread-view .message-sender {
    font-weight: 500;
    color: #007bff;
}

.bp-messages-compose {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.bp-messages-compose h3 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.bp-messages-compose .form-group {
    margin-bottom: 1.5rem;
}

.bp-messages-compose label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    display: block;
}

.bp-messages-compose input[type="text"],
.bp-messages-compose textarea,
.bp-messages-compose select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
}

.bp-messages-compose input[type="text"]:focus,
.bp-messages-compose textarea:focus,
.bp-messages-compose select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.bp-messages-compose textarea {
    min-height: 120px;
    resize: vertical;
}

.bp-messages .button,
.bp-messages input[type="submit"],
.bp-messages .btn {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
}

.bp-messages .button:hover,
.bp-messages input[type="submit"]:hover,
.bp-messages .btn:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    color: white;
    text-decoration: none;
}

.bp-messages .button.secondary,
.bp-messages .btn-secondary {
    background: linear-gradient(135deg, #6c757d, #545b62);
    color: white;
}

.bp-messages .button.secondary:hover,
.bp-messages .btn-secondary:hover {
    background: linear-gradient(135deg, #545b62, #3d4449);
    color: white;
}

.bp-messages .message-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.bp-messages .message-actions .button {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.bp-messages .bp-messages-feedback {
    text-align: center;
    padding: 3rem 2rem;
    color: #6c757d;
}

.bp-messages .bp-messages-feedback .bp-icon {
    font-size: 3rem;
    color: #adb5bd;
    margin-bottom: 1rem;
}

.bp-messages .bp-messages-feedback h4 {
    color: #495057;
    margin-bottom: 0.5rem;
}

.bp-messages .unread-count {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border-radius: 50%;
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.bp-messages .thread-status {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.bp-messages .thread-status.online {
    background: #28a745;
}

.bp-messages .thread-status.offline {
    background: #6c757d;
}

.bp-messages .thread-status.away {
    background: #ffc107;
}

.bp-messages h1, .bp-messages h2, .bp-messages h3, .bp-messages h4, .bp-messages h5, .bp-messages h6 {
    color: #495057;
    font-weight: 600;
    line-height: 1.3;
}

.bp-messages p {
    color: #6c757d;
    line-height: 1.6;
}

.bp-messages a:focus,
.bp-messages button:focus,
.bp-messages input:focus,
.bp-messages textarea:focus,
.bp-messages select:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .bp-navs .bp-navs-tabs {
        flex-direction: column;
    }
    
    .bp-navs .bp-navs-tabs li {
        flex: none;
    }
    
    .bp-messages-content {
        padding: 1rem;
    }
    
    .bp-messages-thread-view .thread-header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .bp-messages .message-actions {
        flex-direction: column;
    }
}

/* Additional BuddyPress specific styling */
.bp-messages .bp-messages-feedback {
    text-align: center;
    padding: 3rem 2rem;
    color: #6c757d;
}

.bp-messages .bp-messages-feedback .bp-icon {
    font-size: 3rem;
    color: #adb5bd;
    margin-bottom: 1rem;
}

.bp-messages .bp-messages-feedback h4 {
    color: #495057;
    margin-bottom: 0.5rem;
}

/* Message thread specific styling */
.bp-messages .message-thread {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.bp-messages .message-thread .message {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f1f3f4;
    transition: background-color 0.3s ease;
}

.bp-messages .message-thread .message:last-child {
    border-bottom: none;
}

.bp-messages .message-thread .message.sent {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border-left: 4px solid #007bff;
}

.bp-messages .message-thread .message.received {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-left: 4px solid #28a745;
}

/* Compose form styling */
.bp-messages .bp-messages-compose {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.bp-messages .bp-messages-compose h3 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.bp-messages .bp-messages-compose .form-group {
    margin-bottom: 1.5rem;
}

.bp-messages .bp-messages-compose label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    display: block;
}

.bp-messages .bp-messages-compose input[type="text"],
.bp-messages .bp-messages-compose textarea,
.bp-messages .bp-messages-compose select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
}

.bp-messages .bp-messages-compose input[type="text"]:focus,
.bp-messages .bp-messages-compose textarea:focus,
.bp-messages .bp-messages-compose select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.bp-messages .bp-messages-compose textarea {
    min-height: 120px;
    resize: vertical;
}

