/**
 * 通報システム - フロントエンドCSS
 */

/* 通報ボタン */
.report-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.report-button:hover {
    background: #f8f8f8;
    border-color: #999;
    color: #333;
}

.report-button .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* モーダル */
.report-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
}

.report-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.report-modal-content {
    position: relative;
    width: 90%;
    max-width: 600px;
    margin: 50px auto;
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.report-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    font-size: 30px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0;
    transition: color 0.3s ease;
}

.report-modal-close:hover {
    color: #333;
}

.report-modal h2 {
    margin: 0 0 20px;
    font-size: 24px;
    color: #333;
}

/* フォーム */
.report-modal .form-group {
    margin-bottom: 20px;
}

.report-modal label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.report-modal .required {
    color: #d63638;
}

.report-modal .optional {
    color: #999;
    font-weight: normal;
    font-size: 13px;
}

.report-modal select,
.report-modal textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.report-modal select:focus,
.report-modal textarea:focus {
    outline: none;
    border-color: #2271b1;
}

.report-modal textarea {
    resize: vertical;
    min-height: 100px;
}

.report-modal .description {
    margin-top: 5px;
    font-size: 13px;
    color: #666;
}

.report-modal .notice {
    padding: 12px;
    background: #f0f0f1;
    border-left: 4px solid #2271b1;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* ボタン */
.report-modal .form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 25px;
}

.report-modal .button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.report-modal .button-secondary {
    background: #f0f0f1;
    color: #2c3338;
}

.report-modal .button-secondary:hover {
    background: #dcdcde;
}

.report-modal .button-primary {
    background: #2271b1;
    color: #fff;
}

.report-modal .button-primary:hover {
    background: #135e96;
}

.report-modal .button-primary:disabled {
    background: #999;
    cursor: not-allowed;
}

/* メッセージ */
.report-message {
    margin-top: 20px;
    padding: 12px;
    border-radius: 4px;
    font-size: 14px;
}

.report-message.success {
    background: #d7f0dd;
    border-left: 4px solid #00a32a;
    color: #007017;
}

.report-message.error {
    background: #f8d7da;
    border-left: 4px solid #d63638;
    color: #b32d2e;
}

/* Body固定 */
body.report-modal-open {
    overflow: hidden;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .report-modal-content {
        width: 95%;
        margin: 20px auto;
        padding: 20px;
    }
    
    .report-modal h2 {
        font-size: 20px;
    }
    
    .report-modal .form-actions {
        flex-direction: column;
    }
    
    .report-modal .button {
        width: 100%;
    }
}

/* BuddyPress統合 */
#buddypress .report-button {
    margin: 10px 0;
}

/* Events Manager統合 */
.em-item .report-button {
    margin: 10px 0;
}

/* アニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.report-modal {
    animation: fadeIn 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.report-modal-content {
    animation: slideUp 0.3s ease;
}
