/* OCP Friends System Styles */

.ocp-friends-container,
.ocp-friend-requests-container {
    margin: 30px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.ocp-friends-container h3,
.ocp-friend-requests-container h3 {
    margin-top: 0;
    color: #333;
    font-size: 1.8em;
    text-align: center;
}

.ocp-friend-item,
.ocp-friend-request-item {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 12px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.ocp-friend-item:hover,
.ocp-friend-request-item:hover {
    transform: translateY(-3px);
}

.ocp-friend-avatar,
.ocp-search-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 3px solid #ffd700;
}

.ocp-friend-info {
    flex: 1;
}

.ocp-friend-info strong {
    display: block;
    font-size: 1.4em;
    color: #333;
}

.ocp-friends-since,
.ocp-request-date {
    color: #888;
    font-size: 0.9em;
}

.ocp-friend-actions button,
.ocp-friend-actions .ocp-btn-accept,
.ocp-friend-actions .ocp-btn-decline,
.ocp-btn-remove-friend {
    padding: 8px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
}

.ocp-btn-accept {
    background: #40b4ff;
    color: #fff;
}

.ocp-btn-decline,
.ocp-btn-remove-friend {
    background: #d63638;
    color: #fff;
}

.ocp-btn-accept:hover { background: #1e97e0; }
.ocp-btn-decline:hover,
.ocp-btn-remove-friend:hover { background: #b52b2d; }

/* Search Modal Specific */
#ocp-friend-search-modal .ocp-modal-content {
    max-height: 90vh;
    overflow-y: auto;
}

#ocp-friend-search-input {
    width: 100%;
    padding: 15px;
    font-size: 1.4em;
    border-radius: 15px;
    border: 3px solid #40b4ff;
    box-sizing: border-box;
}

#ocp-friend-search-results {
    margin-top: 15px;
}

.ocp-search-result-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 12px;
    margin-bottom: 10px;
}

.ocp-search-name {
    flex: 1;
    font-size: 1.4em;
    font-weight: bold;
    color: #333;
}

.ocp-btn-add-friend {
    padding: 10px 25px;
    background: #40b4ff;
    color: #fff;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
}

.ocp-btn-add-friend:disabled {
    background: #aaa;
    cursor: not-allowed;
}

.ocp-btn-add-friend:hover:not(:disabled) {
    background: #1e97e0;
}

.ocp-no-results {
    text-align: center;
    color: #888;
    padding: 20px;
    font-style: italic;
}

/* Open Search Button */
.ocp-open-friend-search {
    display: inline-block;
    padding: 12px 30px;
    background: #40b4ff;
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(64,180,255,0.4);
    transition: all 0.2s;
}

.ocp-open-friend-search:hover {
    background: #1e97e0;
    transform: translateY(-2px);
}